Commit graph

7 commits

Author SHA1 Message Date
Esteban Küber eb478e2381 Add extra whitespace for suggestions 2017-07-06 14:36:48 -07:00
Esteban Küber 7c84914635 Make suggestion include the line number
When there're more than one suggestions in the same diagnostic, they are
displayed in their own block, instead of inline. In order to reduce
confusion, those blocks now display the line number.
2017-07-06 14:36:48 -07:00
Guillaume Gomez a333be7cfe Add new error code 2017-05-30 19:19:34 +02:00
Oliver Schneider e2f781c7ea
Example usage of multiple suggestions 2017-05-10 13:20:27 +02:00
Esteban Küber 2883186180 Use multiline Diagnostic for candidate in other module 2017-01-18 16:33:25 -08:00
Vadim Petrochenkov 09aba18e10 More systematic error reporting in path resolution 2016-12-26 15:01:49 +03:00
Esteban Küber 3edb4fc563 Point to type argument span when used as trait
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
```
2016-11-08 14:17:18 -08:00