mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
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` ``` |
||
---|---|---|
.. | ||
array-of-ranges.rs | ||
array.rs | ||
bound.rs | ||
bound.stderr | ||
collect-into-array.rs | ||
collect-into-array.stderr | ||
collect-into-slice.rs | ||
collect-into-slice.stderr | ||
float_iterator_hint.rs | ||
float_iterator_hint.stderr | ||
integral.rs | ||
integral.stderr | ||
into-iter-on-arrays-2018.rs | ||
into-iter-on-arrays-2018.stderr | ||
into-iter-on-arrays-2021.rs | ||
into-iter-on-arrays-lint.fixed | ||
into-iter-on-arrays-lint.rs | ||
into-iter-on-arrays-lint.stderr | ||
into-iter-on-boxed-slices-2021.rs | ||
into-iter-on-boxed-slices-2021.stderr | ||
into-iter-on-boxed-slices-2024.rs | ||
into-iter-on-boxed-slices-lint.fixed | ||
into-iter-on-boxed-slices-lint.rs | ||
into-iter-on-boxed-slices-lint.stderr | ||
into-iterator-type-inference-shift.rs | ||
invalid-iterator-chain-fixable.fixed | ||
invalid-iterator-chain-fixable.rs | ||
invalid-iterator-chain-fixable.stderr | ||
invalid-iterator-chain-with-int-infer.rs | ||
invalid-iterator-chain-with-int-infer.stderr | ||
invalid-iterator-chain.rs | ||
invalid-iterator-chain.stderr | ||
issue-28098.rs | ||
issue-28098.stderr | ||
issue-58952-filter-type-length.rs | ||
iter-cloned-type-inference.rs | ||
iter-count-overflow-debug.rs | ||
iter-count-overflow-ndebug.rs | ||
iter-map-fold-type-length.rs | ||
iter-position-overflow-debug.rs | ||
iter-position-overflow-ndebug.rs | ||
iter-range.rs | ||
iter-step-overflow-debug.rs | ||
iter-step-overflow-ndebug.rs | ||
iter-sum-overflow-debug.rs | ||
iter-sum-overflow-ndebug.rs | ||
iter-sum-overflow-overflow-checks.rs | ||
ranges.rs | ||
ranges.stderr | ||
rsplit-clone.rs | ||
skip-count-overflow.rs | ||
string.rs | ||
string.stderr | ||
vec-on-unimplemented.fixed | ||
vec-on-unimplemented.rs | ||
vec-on-unimplemented.stderr |