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 | ||
async-associated-types.rs | ||
async-default-fn-overridden.rs | ||
async-example-desugared-boxed-in-trait.rs | ||
async-example-desugared-boxed-in-trait.stderr | ||
async-example-desugared-boxed.rs | ||
async-example-desugared-boxed.stderr | ||
async-example-desugared-extra.rs | ||
async-example-desugared-in-trait.rs | ||
async-example-desugared-manual.rs | ||
async-example-desugared-manual.stderr | ||
async-example-desugared.rs | ||
async-example.rs | ||
async-generics-and-bounds.rs | ||
async-generics-and-bounds.stderr | ||
async-generics.rs | ||
async-generics.stderr | ||
async-lifetimes-and-bounds.rs | ||
async-lifetimes.rs | ||
async-recursive-generic.rs | ||
async-recursive-generic.stderr | ||
async-recursive.rs | ||
async-recursive.stderr | ||
bad-region.rs | ||
bad-region.stderr | ||
bad-signatures.rs | ||
bad-signatures.stderr | ||
coherence-constrained.rs | ||
coherence-constrained.stderr | ||
dont-project-to-specializable-projection.rs | ||
dont-project-to-specializable-projection.stderr | ||
dyn-compatibility.rs | ||
dyn-compatibility.stderr | ||
early-bound-1.rs | ||
early-bound-2.rs | ||
fn-not-async-err2.rs | ||
fn-not-async-err.rs | ||
fn-not-async-err.stderr | ||
generics-mismatch.rs | ||
generics-mismatch.stderr | ||
hir-hash.rs | ||
implied-bounds.rs | ||
indirect-recursion-issue-112047.rs | ||
indirect-recursion-issue-112047.stderr | ||
issue-102138.rs | ||
issue-102219.rs | ||
issue-102310.rs | ||
issue-104678.rs | ||
lifetime-mismatch.rs | ||
lifetime-mismatch.stderr | ||
missing-feature-flag.rs | ||
missing-feature-flag.stderr | ||
missing-send-bound.rs | ||
missing-send-bound.stderr | ||
nested-rpit.rs | ||
normalize-opaque-with-bound-vars.rs | ||
return-not-existing-pair.rs | ||
return-not-existing-pair.stderr | ||
return-not-existing-type-wrapping-rpitit.rs | ||
return-not-existing-type-wrapping-rpitit.stderr | ||
return-type-suggestion.rs | ||
return-type-suggestion.stderr | ||
returning-possibly-unsized-self.rs | ||
send-on-async-fn-in-trait.fixed | ||
send-on-async-fn-in-trait.rs | ||
send-on-async-fn-in-trait.stderr | ||
send-on-foreign-async-fn-in-trait.rs | ||
send-on-foreign-async-fn-in-trait.stderr | ||
unconstrained-impl-region.rs | ||
unconstrained-impl-region.stderr | ||
warn.rs | ||
warn.stderr |