diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-08-31 06:29:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-31 06:29:11 -0700 |
| commit | 2040d19b940ead1dc3faf16552f6725e7a40a248 (patch) | |
| tree | 36c964d2dbc6b6e47e2f3f0dbda8dcdfa659551d /src/rustllvm/RustWrapper.cpp | |
| parent | 6631d8e9c6c67253f4c52a8ee5ac29e695fc9fdf (diff) | |
| parent | 69f0cee85dab86b8a27321cfce45adcb1f549d0c (diff) | |
| download | rust-2040d19b940ead1dc3faf16552f6725e7a40a248.tar.gz rust-2040d19b940ead1dc3faf16552f6725e7a40a248.zip | |
Rollup merge of #36148 - birryree:E0194_bonus_format, r=jonathandturner
Bonus format for E0194
Bonus fix for #35280. Part of #35233. Fixes #36057. Adding expanded notes/context for what trait a parameter shadows as part of E0194 error messages.
Errors for E0194 now look like this:
```
$> ./build/x86_64-apple-darwin/stage1/bin/rustc src/test/compile-fail/E0194.rs
error[E0194]: type parameter `T` shadows another type parameter of the same name
--> src/test/compile-fail/E0194.rs:13:26
|
11 | trait Foo<T> { //~ NOTE first `T` declared here
| - first `T` declared here
12 | fn do_something(&self) -> T;
13 | fn do_something_else<T: Clone>(&self, bar: T);
| ^ shadows another type parameter
error: aborting due to previous error
```
r? @jonathandturner
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
