rust/tests/ui/recursion
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
..
auxiliary
instantiable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-23122-1.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-23122-1.stderr Move some tests 2024-04-21 15:43:43 -03:00
issue-23122-2.rs Move some tests 2024-04-21 15:43:43 -03:00
issue-23122-2.stderr Move some tests 2024-04-21 15:43:43 -03:00
issue-23302-1.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23302-1.stderr Move tests 2024-04-07 17:38:07 -03:00
issue-23302-2.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23302-2.stderr Move tests 2024-04-07 17:38:07 -03:00
issue-23302-3.rs Move tests 2024-04-07 17:38:07 -03:00
issue-23302-3.stderr Move tests 2024-04-07 17:38:07 -03:00
issue-26548-recursion-via-normalize.rs
issue-26548-recursion-via-normalize.stderr
issue-38591-non-regular-dropck-recursion.polonius.stderr
issue-38591-non-regular-dropck-recursion.rs
issue-38591-non-regular-dropck-recursion.stderr
issue-83150.rs Gate the type length limit check behind a nightly flag 2024-07-12 21:16:09 -04:00
issue-83150.stderr Gate the type length limit check behind a nightly flag 2024-07-12 21:16:09 -04:00
issue-86784.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-95134.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursion.polonius.stderr
recursion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursion.stderr
recursive-enum.rs
recursive-enum.stderr
recursive-reexports.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
recursive-reexports.stderr
recursive-requirements.rs
recursive-requirements.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
recursive-static-definition.rs
recursive-static-definition.stderr
recursive-types-are-not-uninhabited.rs
recursive-types-are-not-uninhabited.stderr