diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-09-13 21:20:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-13 21:20:42 +0200 |
| commit | 84d65fee0e57830153601c798f4c946c6df72040 (patch) | |
| tree | 183ecb07a0fee3fc4ccf16f5901718ba31f9eeae /compiler/rustc_codegen_llvm/src | |
| parent | f10fc2152b4c661e3b59504abff28d22d7345ee0 (diff) | |
| parent | 3f0e69591934bdc90577f2af41c0981ea2d1651b (diff) | |
| download | rust-84d65fee0e57830153601c798f4c946c6df72040.tar.gz rust-84d65fee0e57830153601c798f4c946c6df72040.zip | |
Rollup merge of #88894 - FabianWolff:issue-88818, r=estebank
Improve error message for missing trait in trait impl
Fixes #88818. For the following example:
```rust
struct S { }
impl for S { }
```
the current output is:
```
error: missing trait in a trait impl
--> t1.rs:2:5
|
2 | impl for S { }
| ^
```
With my changes, I get:
```
error: missing trait in a trait impl
--> t1.rs:2:5
|
2 | impl for S { }
| ^
|
help: add a trait here
|
2 | impl Trait for S { }
| +++++
help: for an inherent impl, drop this `for`
|
2 - impl for S { }
2 + impl S { }
|
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
