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 Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
bad-suggestion-on-missing-assoc.stderr Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
basic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
basic.stderr
binder-defaults-112547.rs Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
binder-defaults-112547.stderr Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
binder-defaults-118697.rs
binder-defaults-118697.stderr
binder-defaults-119489.rs Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
binder-defaults-119489.stderr Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
bounds-on-type-binders.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bounds-on-type-binders.stderr
disqualifying-object-candidates.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
drop-impl-pred.no.stderr
drop-impl-pred.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
late-const-param-wf.stderr Just totally fully deny late-bound consts 2024-07-20 19:45:24 -04:00
method-probe.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
object-lifetime-default-for-late.stderr
on-dyn.rs
on-dyn.stderr
on-ptr.rs
on-ptr.stderr
on-rpit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
on-rpit.stderr
placeholders-dont-outlive-static.bad.stderr
placeholders-dont-outlive-static.good.stderr
placeholders-dont-outlive-static.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
shadowed.rs Detect non-lifetime binder params shadowing item params 2024-07-29 14:26:21 -04:00
shadowed.stderr Detect non-lifetime binder params shadowing item params 2024-07-29 14:26:21 -04:00
sized-late-bound-issue-114872.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
sized-late-bound-issue-114872.stderr
supertrait-dyn-compatibility.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
supertrait-dyn-compatibility.stderr UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
type-match-with-late-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-match-with-late-bound.stderr Consolidate WF for aliases 2024-03-14 12:17:00 -04:00
unifying-placeholders-in-query-response-2.current.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
unifying-placeholders-in-query-response-2.next.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
unifying-placeholders-in-query-response-2.rs Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
unifying-placeholders-in-query-response.current.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
unifying-placeholders-in-query-response.next.stderr Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
unifying-placeholders-in-query-response.rs Ignore tests w/ current/next revisions from compare-mode=next-solver 2024-03-10 21:18:41 -04:00
universe-error1.rs
universe-error1.stderr