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 | ||
allow_internal_unstable.rs | ||
bad-const-wf-doesnt-specialize.rs | ||
bad-const-wf-doesnt-specialize.stderr | ||
dyn-trait-assoc-types.rs | ||
dyn-trait-assoc-types.stderr | ||
ice-const-not-fully-resolved-113045.rs | ||
ice-const-not-fully-resolved-113045.stderr | ||
impl_specialization_trait.rs | ||
impl_specialization_trait.stderr | ||
impl-on-nonexisting.rs | ||
impl-on-nonexisting.stderr | ||
impl-on-opaque2.rs | ||
impl-on-opaque2.stderr | ||
impl-on-opaque.rs | ||
implcit-well-formed-bounds.rs | ||
issue-79224.rs | ||
issue-79224.stderr | ||
repeated_projection_type.rs | ||
repeated_projection_type.stderr | ||
repeating_lifetimes.rs | ||
repeating_lifetimes.stderr | ||
repeating_param.rs | ||
repeating_param.stderr | ||
spec-iter.rs | ||
spec-marker-supertraits.rs | ||
spec-marker-supertraits.stderr | ||
spec-reference.rs | ||
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 | ||
specialize_on_spec_trait.rs | ||
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 |