about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-11-05 09:49:58 +0100
committerGitHub <noreply@github.com>2019-11-05 09:49:58 +0100
commit1d5cb17ebec9723f5d24e6bc41835a24dbb373cb (patch)
tree740e715c2d4538817c3a8a1f2e06f64e69f38342 /src/libsyntax/parse/parser
parentd32a262ab8ec6d81f443b5d73b549361221c8d4e (diff)
parent8c909344ed19c9f9a51f82c8e270ded09671fd8b (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions