diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-29 18:38:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 18:38:58 +0100 |
| commit | f9fdd63cf4b7172110f19b6c89ff6697f8fdbd46 (patch) | |
| tree | 700860b1948fce3aa2d25b780cea7bc759bd5597 /compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | |
| parent | 5dc36391fe72d3e6e6b65657b119faa1fc3b3e5a (diff) | |
| parent | 5b542866400ad4a294f468cfa7e059d95c27a079 (diff) | |
| download | rust-f9fdd63cf4b7172110f19b6c89ff6697f8fdbd46.tar.gz rust-f9fdd63cf4b7172110f19b6c89ff6697f8fdbd46.zip | |
Rollup merge of #132157 - estebank:long-types-3, r=jieyouxu
Remove detail from label/note that is already available in other note
Remove the "which is required by `{root_obligation}`" post-script in
"the trait `X` is not implemented for `Y`" explanation in E0277. This
information is already conveyed in the notes explaining requirements,
making it redundant while making the text (particularly in labels)
harder to read.
```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
--> $DIR/wf-static-type.rs:10:13
|
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`
|
= note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
--> $DIR/wf-static-type.rs:7:17
|
LL | struct IsCopy<T:Copy> { t: T }
| ^^^^ required by this bound in `IsCopy`
```
vs the prior
```
error[E0277]: the trait bound `NotCopy: Copy` is not satisfied
--> $DIR/wf-static-type.rs:10:13
|
LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None };
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `NotCopy`, which is required by `Option<NotCopy>: Copy`
|
= note: required for `Option<NotCopy>` to implement `Copy`
note: required by a bound in `IsCopy`
--> $DIR/wf-static-type.rs:7:17
|
LL | struct IsCopy<T:Copy> { t: T }
| ^^^^ required by this bound in `IsCopy`
```
*Ignore first three commits from https://github.com/rust-lang/rust/pull/132086.*
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/mod.rs')
0 files changed, 0 insertions, 0 deletions
