diff options
| author | Dmitry Kadashev <dkadashev@gmail.com> | 2019-10-31 17:20:33 +0700 |
|---|---|---|
| committer | Dmitry Kadashev <dkadashev@gmail.com> | 2019-11-02 12:48:24 +0700 |
| commit | 036f1828041c80842129b28695b60ba31a74403a (patch) | |
| tree | b16d33d70b01ca1b19abd29a8116fc612cdb4e8c /src/libsyntax/parse/parser | |
| parent | 6a30ce639f9eeba7d085721d219553635f32c280 (diff) | |
| download | rust-036f1828041c80842129b28695b60ba31a74403a.tar.gz rust-036f1828041c80842129b28695b60ba31a74403a.zip | |
Show type param definitions in type mismatch errors
Fixes #47319.
Shows the type parameter definition(s) on type mismatch errors so the
context is clearer. Pretty much changes the following:
```
LL | bar1(t);
| ^
| |
| expected enum `std::option::Option`, found type parameter `T`
```
into:
```
LL | fn foo1<T>(t: T) {
| - this type parameter
LL | bar1(t);
| ^
| |
| expected enum `std::option::Option`, found type parameter `T`
```
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
