os-rust/tests/ui/traits/suggest-dereferences
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
..
dont-suggest-unsize-deref.rs Ensure that dyn trait bounds stay sorted 2023-09-07 06:57:08 +00:00
dont-suggest-unsize-deref.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
invalid-suggest-deref-issue-127590.rs add test for issue 127590 2024-07-16 22:01:10 +08:00
invalid-suggest-deref-issue-127590.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-39029.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-39029.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-39029.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-62530.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62530.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-62530.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multiple-0.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
multiple-0.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
multiple-0.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
multiple-1.rs
multiple-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
root-obligation.fixed Remove generic lifetime parameter of trait Pattern 2024-07-15 12:12:44 +02:00
root-obligation.rs Remove generic lifetime parameter of trait Pattern 2024-07-15 12:12:44 +02:00
root-obligation.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
suggest-dereferencing-receiver-argument.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-dereferencing-receiver-argument.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggest-dereferencing-receiver-argument.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00