1. 20 11月, 2016 2 次提交
  2. 17 11月, 2016 7 次提交
  3. 10 11月, 2016 11 次提交
  4. 09 11月, 2016 2 次提交
    • E
      Group unused import warnings per path list · a820d99e
      Esteban Küber 提交于
      Given a file
      
      ```rust
      use std::collections::{BinaryHeap, BTreeMap, BTreeSet};
      
      fn main() {}
      ```
      
      Show a single warning, instead of three for each unused import:
      
      ```nocode
      warning: unused imports, #[warn(unused_imports)] on by default
       --> foo.rs:1:24
        |
      1 | use std::collections::{BinaryHeap, BTreeMap, BTreeSet};
        |                        ^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^
      ```
      
      Include support for lints pointing at `MultilineSpan`s, instead of just
      `Span`s.
      a820d99e
    • E
      Point to type argument span when used as trait · 3edb4fc5
      Esteban Küber 提交于
      Given the following code:
      
      ```rust
      struct Foo<T: Clone>(T);
      
      use std::ops::Add;
      
      impl<T: Clone, Add> Add for Foo<T> {
          type Output = usize;
      
          fn add(self, rhs: Self) -> Self::Output {
            unimplemented!();
          }
      }
      ```
      
      present the following output:
      
      ```nocode
      error[E0404]: `Add` is not a trait
       --> file3.rs:5:21
        |
      5 | impl<T: Clone, Add> Add for Okok<T> {
        |                ---  ^^^ expected trait, found type parameter
        |                |
        |                type parameter defined here
      ```
      3edb4fc5
  5. 08 11月, 2016 1 次提交
  6. 03 11月, 2016 1 次提交
  7. 02 11月, 2016 1 次提交
  8. 31 10月, 2016 3 次提交
  9. 28 10月, 2016 1 次提交
    • V
      Preparations and cleanup · a9f91b1b
      Vadim Petrochenkov 提交于
      Diagnostics for struct path resolution errors in resolve and typeck are unified.
      Self type is treated as a type alias in few places (not reachable yet).
      Unsafe cell is seen in constants even through type aliases.
      All checks for struct paths in typeck work on type level.
      a9f91b1b
  10. 27 10月, 2016 1 次提交
    • R
      Add semicolon to "Maybe a missing `extern crate foo`" message · de5172ce
      Robin Stocker 提交于
      I had it a couple of times that I was missing the "extern crate" line
      after I introduced a new dependency. So I copied the text from the
      message and inserted it into the beginning of my code, only to find the
      compiler complaining that I was missing the semicolon. (I forgot to add
      it after the text that I had pasted.)
      
      There's a similar message which does include the semicolon, namely
      "help: you can import it into scope: `use foo::Bar;`". I think the two
      messages should be consistent, so this change adds it for "extern
      crate".
      de5172ce
  11. 26 10月, 2016 3 次提交
  12. 25 10月, 2016 1 次提交
  13. 24 10月, 2016 3 次提交
  14. 23 10月, 2016 1 次提交
  15. 19 10月, 2016 2 次提交