rust/tests/ui/specialization/min_specialization
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
allow_internal_unstable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-const-wf-doesnt-specialize.rs Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
bad-const-wf-doesnt-specialize.stderr Re-enable ConstArgKind::Path lowering by default 2024-09-12 13:56:01 -04:00
dyn-trait-assoc-types.rs
dyn-trait-assoc-types.stderr
ice-const-not-fully-resolved-113045.rs add test for ICE: min_specialization: Ok(['?0, Const { ty: usize, kind: Leaf(0x0000000000000000) }]) is not fully resolved #113045 2024-03-24 10:19:25 +01:00
ice-const-not-fully-resolved-113045.stderr add test for ICE: min_specialization: Ok(['?0, Const { ty: usize, kind: Leaf(0x0000000000000000) }]) is not fully resolved #113045 2024-03-24 10:19:25 +01:00
impl_specialization_trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl_specialization_trait.stderr
impl-on-nonexisting.rs
impl-on-nonexisting.stderr
impl-on-opaque2.rs Specialization already rejects defining opaque types 2024-04-04 10:01:45 +00:00
impl-on-opaque2.stderr Specialization already rejects defining opaque types 2024-04-04 10:01:45 +00:00
impl-on-opaque.rs Specialization already rejects defining opaque types 2024-04-04 10:01:45 +00:00
implcit-well-formed-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-79224.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-79224.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
repeated_projection_type.rs
repeated_projection_type.stderr
repeating_lifetimes.rs
repeating_lifetimes.stderr
repeating_param.rs
repeating_param.stderr
spec-iter.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
spec-marker-supertraits.rs
spec-marker-supertraits.stderr
spec-reference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
specialization_marker.rs
specialization_marker.stderr
specialization_super_trait.rs
specialization_super_trait.stderr
specialization_trait.rs
specialization_trait.stderr
specialize_nothing.rs
specialize_nothing.stderr
specialize_on_marker.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
specialize_on_spec_trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
specialize_on_static.rs
specialize_on_static.stderr
specialize_on_trait.rs
specialize_on_trait.stderr
specialize_on_type_error.rs
specialize_on_type_error.stderr
specialize_with_generalize_lifetimes.rs
specialize_with_generalize_lifetimes.stderr
specialize-associated-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00