rust/tests/ui/statics
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 Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
check-immutable-mut-slices.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
check-immutable-mut-slices.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
check-recursion-foreign.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
check-values-constraints.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
check-values-constraints.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
const_generics.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
issue-14227.rs
issue-14227.stderr
issue-15261.rs
issue-15261.stderr Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
issue-17233.rs
issue-17718-static-sync.rs
issue-17718-static-sync.stderr
issue-17718-static-unsafe-interior.rs
issue-44373-2.rs
issue-44373.rs
issue-44373.stderr
issue-91050-1.rs
issue-91050-2.rs
missing_lifetime.rs Avoid follow-up errors and ICEs after missing lifetime errors on data structures 2024-07-11 11:00:15 +00:00
missing_lifetime.stderr Avoid follow-up errors and ICEs after missing lifetime errors on data structures 2024-07-11 11:00:15 +00:00
mutable_memory_validation.rs Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
mutable_memory_validation.stderr Stabilize const_refs_to_static 2024-09-26 13:21:15 +02:00
nested_struct.rs [Refactor] Rename Lint and LintGroup\'s is_loaded to is_externally_loaded 2024-04-29 15:57:09 +02:00
nested_thread_local.rs also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
nested_thread_local.stderr also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
nested-allocations-dont-inherit-codegen-attrs.rs
recursive_interior_mut.rs
static-fn-inline-xc.rs
static-fn-trait-xc.rs
static-function-pointer-xc.rs
static-function-pointer.rs
static-impl.rs
static-impl.stderr
static-method-in-trait-with-tps-intracrate.rs
static-method-xcrate.rs
static-methods-in-traits2.rs
static-methods-in-traits.rs
static-mut-xc.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
static-mut-xc.stderr Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
static-promotion.rs
static-recursive.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
static-recursive.stderr Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
uninhabited-static.rs
uninhabited-static.stderr
unsized_type2.rs Taint const qualifs if a static is referenced that didn't pass wfcheck 2024-04-16 10:43:41 +00:00
unsized_type2.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
unsizing-wfcheck-issue-127299.rs WF-check struct field types at construction site 2024-08-05 17:37:12 -07:00
unsizing-wfcheck-issue-127299.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00