rust/tests/ui/union
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
field_checks.rs
field_checks.stderr
issue-41073.rs
issue-41073.stderr
issue-81199.rs raw pointer metadata API: data address -> data pointer 2024-01-29 07:56:38 +01:00
issue-81199.stderr
issue-99375.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
projection-as-union-type-error-2.rs
projection-as-union-type-error-2.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
projection-as-union-type-error.rs
projection-as-union-type-error.stderr
projection-as-union-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-align.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-backcomp.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-basic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-borrow-move-parent-sibling.rs
union-borrow-move-parent-sibling.stderr Mention when type parameter could be Clone 2024-04-24 22:21:15 +00:00
union-const-codegen.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-const-eval-field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-const-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-const-pat.rs
union-const-pat.stderr
union-copy.rs
union-copy.stderr
union-deref.rs
union-deref.stderr
union-derive-clone.rs
union-derive-clone.stderr Use single label for method not found due to unmet bound 2024-01-26 20:47:19 +00:00
union-derive-eq.rs
union-derive-eq.stderr
union-derive-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-derive.rs
union-derive.stderr
union-drop-assign.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
union-drop.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
union-empty.rs
union-empty.stderr
union-fields-1.rs
union-fields-1.stderr
union-fields-2.rs
union-fields-2.stderr
union-generic-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-generic.rs
union-generic.stderr
union-inherent-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-lint-dead-code.rs
union-lint-dead-code.stderr
union-macro.rs Allow unused fields in some tests 2024-03-12 10:59:41 +01:00
union-manuallydrop-rpass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-move.rs
union-move.stderr Mention when type parameter could be Clone 2024-04-24 22:21:15 +00:00
union-nodrop.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-nonrepresentable.rs
union-nonrepresentable.stderr
union-nonzero.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-overwrite.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-packed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-pat-refutability.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-repr-c.rs
union-repr-c.stderr
union-sized-field.rs
union-sized-field.stderr
union-suggest-field.rs
union-suggest-field.stderr
union-trait-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-transmute.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
union-unsafe.rs
union-unsafe.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
union-unsized.rs
union-unsized.stderr Stabilize THIR unsafeck 2024-01-05 10:00:59 +00:00
union-with-drop-fields.rs
union-with-drop-fields.stderr
unresolved-field-isnt-copy.rs
unresolved-field-isnt-copy.stderr