rust/tests/ui/traits/non_lifetime_binders
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
..
bad-copy-cond.rs
bad-copy-cond.stderr
bad-sized-cond.rs
bad-sized-cond.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
bad-suggestion-on-missing-assoc.rs
bad-suggestion-on-missing-assoc.stderr
basic.rs
basic.stderr
binder-defaults-112547.rs
binder-defaults-112547.stderr
binder-defaults-118697.rs
binder-defaults-118697.stderr
binder-defaults-119489.rs
binder-defaults-119489.stderr
bounds-on-type-binders.rs
bounds-on-type-binders.stderr
disqualifying-object-candidates.rs
drop-impl-pred.no.stderr
drop-impl-pred.rs
drop-impl-pred.yes.stderr
fail.rs
fail.stderr
foreach-partial-eq.rs
foreach-partial-eq.stderr
late-bound-in-anon-ct.rs
late-bound-in-anon-ct.stderr
late-const-param-wf.rs
late-const-param-wf.stderr
method-probe.rs
method-probe.stderr
missing-assoc-item.rs
missing-assoc-item.stderr
nested-apit-mentioning-outer-bound-var.rs
nested-apit-mentioning-outer-bound-var.stderr
object-lifetime-default-for-late.rs
object-lifetime-default-for-late.stderr
on-dyn.rs
on-dyn.stderr
on-ptr.rs
on-ptr.stderr
on-rpit.rs
on-rpit.stderr
placeholders-dont-outlive-static.bad.stderr
placeholders-dont-outlive-static.good.stderr
placeholders-dont-outlive-static.rs
shadowed.rs
shadowed.stderr
sized-late-bound-issue-114872.rs
sized-late-bound-issue-114872.stderr
supertrait-dyn-compatibility.rs
supertrait-dyn-compatibility.stderr
type-match-with-late-bound.rs
type-match-with-late-bound.stderr
unifying-placeholders-in-query-response-2.current.stderr
unifying-placeholders-in-query-response-2.next.stderr
unifying-placeholders-in-query-response-2.rs
unifying-placeholders-in-query-response.current.stderr
unifying-placeholders-in-query-response.next.stderr
unifying-placeholders-in-query-response.rs
universe-error1.rs
universe-error1.stderr