rust/tests/ui/auto-traits
Esteban Küber 5b54286640 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`
```
2024-10-29 16:26:57 +00:00
..
assoc-ty.current.stderr Don't ICE when auto trait has assoc ty in old solver 2024-07-24 17:19:44 -04:00
assoc-ty.next.stderr Don't ICE when auto trait has assoc ty in old solver 2024-07-24 17:19:44 -04:00
assoc-ty.rs Don't ICE when auto trait has assoc ty in old solver 2024-07-24 17:19:44 -04:00
auto-is-contextual.rs
auto-trait-projection-recursion.rs
auto-trait-validation.fixed
auto-trait-validation.rs
auto-trait-validation.stderr
auto-traits.rs
auto-traits.stderr
bad-generics-on-dyn.rs
bad-generics-on-dyn.stderr
has-arguments.rs
has-arguments.stderr
issue-23080-2.current.stderr
issue-23080-2.next.stderr
issue-23080-2.rs
issue-23080.rs
issue-23080.stderr
issue-83857-ub.rs
issue-83857-ub.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-84075.rs
issue-84075.stderr
issue-117789.rs
issue-117789.stderr
pre-cfg.rs
pre-cfg.stderr
str-contains-slice-conceptually.rs
str-contains-slice-conceptually.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
typeck-auto-trait-no-supertraits-2.rs
typeck-auto-trait-no-supertraits-2.stderr
typeck-auto-trait-no-supertraits.rs
typeck-auto-trait-no-supertraits.stderr
typeck-default-trait-impl-constituent-types-2.rs
typeck-default-trait-impl-constituent-types-2.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
typeck-default-trait-impl-constituent-types.rs
typeck-default-trait-impl-constituent-types.stderr
typeck-default-trait-impl-negation.rs
typeck-default-trait-impl-negation.stderr
typeck-default-trait-impl-precedence.rs
typeck-default-trait-impl-precedence.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00