5b54286640
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` ``` |
||
---|---|---|
.. | ||
auxiliary | ||
check-immutable-mut-slices.rs | ||
check-immutable-mut-slices.stderr | ||
check-recursion-foreign.rs | ||
check-values-constraints.rs | ||
check-values-constraints.stderr | ||
const_generics.rs | ||
issue-14227.rs | ||
issue-14227.stderr | ||
issue-15261.rs | ||
issue-15261.stderr | ||
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 | ||
missing_lifetime.stderr | ||
mutable_memory_validation.rs | ||
mutable_memory_validation.stderr | ||
nested_struct.rs | ||
nested_thread_local.rs | ||
nested_thread_local.stderr | ||
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 | ||
static-mut-xc.stderr | ||
static-promotion.rs | ||
static-recursive.rs | ||
static-recursive.stderr | ||
uninhabited-static.rs | ||
uninhabited-static.stderr | ||
unsized_type2.rs | ||
unsized_type2.stderr | ||
unsizing-wfcheck-issue-127299.rs | ||
unsizing-wfcheck-issue-127299.stderr |