diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-11-05 09:49:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-05 09:49:58 +0100 |
| commit | 1d5cb17ebec9723f5d24e6bc41835a24dbb373cb (patch) | |
| tree | 740e715c2d4538817c3a8a1f2e06f64e69f38342 /src/libsyntax/parse/parser/expr.rs | |
| parent | d32a262ab8ec6d81f443b5d73b549361221c8d4e (diff) | |
| parent | 8c909344ed19c9f9a51f82c8e270ded09671fd8b (diff) | |
| download | rust-1d5cb17ebec9723f5d24e6bc41835a24dbb373cb.tar.gz rust-1d5cb17ebec9723f5d24e6bc41835a24dbb373cb.zip | |
Rollup merge of #66042 - ohadravid:suggest-correct-code-when-ref-current-trait, r=estebank
Suggest correct code when encountering an incorrect trait bound referencing the current trait
Fixes #65985 and also improves the suggestion for code like this:
```
trait Grab {
type Value;
fn grab(&self) -> Grab::Value;
}
```
To suggest `<Self as Grab>::Value`.
I wasn't sure which of the syntax versions is better (`<Self as ..>::` vs `Self::`), so I used the former simply because it was less change to the existing code.
r? @estebank
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
