rust/tests/ui/traits/alias
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
ambiguous.rs
ambiguous.stderr
basic.rs
bounds.rs
bounds.stderr
cross-crate.rs
cross-crate.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
dont-elaborate-non-self.rs
dont-elaborate-non-self.stderr On implicit Sized bound on fn argument, point at type instead of pattern 2024-09-27 00:45:02 +00:00
generic-default-in-dyn.rs
generic-default-in-dyn.stderr
impl.rs
impl.stderr
import-cross-crate.rs
import.rs
issue-60021-assoc-method-resolve.rs
issue-60755.rs
issue-72415-assoc-const-resolve.rs
issue-75983.rs
issue-83613.rs stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
issue-83613.stderr stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
issue-107747-do-not-assemble-supertraits.rs
issue-108072-unmet-trait-alias-bound.rs
issue-108072-unmet-trait-alias-bound.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-108132-unmet-trait-alias-bound-on-generic-impl.rs
issue-108132-unmet-trait-alias-bound-on-generic-impl.stderr Use fulfillment, not evaluate, during method probe 2024-04-21 20:10:12 -04:00
maybe-bound.rs
no-duplicates.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
no-duplicates.stderr
no-extra-traits.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
no-extra-traits.stderr
not-a-marker.rs Don't record trait aliases as marker traits 2024-07-25 00:38:50 -04:00
not-a-marker.stderr Don't record trait aliases as marker traits 2024-07-25 00:38:50 -04:00
object-fail.rs
object-fail.stderr Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
object-wf.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
object.rs
only-maybe-bound.rs
only-maybe-bound.stderr
only-require-assocs-from-supertraits.rs
self-in-const-generics.rs
self-in-const-generics.stderr
self-in-generics.rs Update (doc) comments 2024-03-22 06:31:51 +01:00
self-in-generics.stderr
style_lint.rs
style_lint.stderr
suggest-trait-alias-instead-of-type.fixed
suggest-trait-alias-instead-of-type.rs
suggest-trait-alias-instead-of-type.stderr
syntax-fail.rs
syntax-fail.stderr
syntax.rs
wf.rs
wf.stderr