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 | ||
built-in-proc-macro-scope.rs | ||
built-in-proc-macro-scope.stdout | ||
coerce-pointee-bounds-issue-127647.rs | ||
derive-no-std.rs | ||
derive-partialord-correctness.rs | ||
deriving-all-codegen.rs | ||
deriving-all-codegen.stdout | ||
deriving-associated-types.rs | ||
deriving-bounds.rs | ||
deriving-clone-array.rs | ||
deriving-clone-enum.rs | ||
deriving-clone-generic-enum.rs | ||
deriving-clone-generic-struct.rs | ||
deriving-clone-generic-tuple-struct.rs | ||
deriving-clone-struct.rs | ||
deriving-clone-tuple-struct.rs | ||
deriving-cmp-generic-enum.rs | ||
deriving-cmp-generic-struct-enum.rs | ||
deriving-cmp-generic-struct.rs | ||
deriving-cmp-generic-tuple-struct.rs | ||
deriving-cmp-shortcircuit.rs | ||
deriving-coerce-pointee-expanded.rs | ||
deriving-coerce-pointee-expanded.stdout | ||
deriving-coerce-pointee-neg.rs | ||
deriving-coerce-pointee-neg.stderr | ||
deriving-coerce-pointee.rs | ||
deriving-copyclone.rs | ||
deriving-default-box.rs | ||
deriving-default-enum.rs | ||
deriving-enum-single-variant.rs | ||
deriving-eq-ord-boxed-slice.rs | ||
deriving-hash.rs | ||
deriving-in-fn.rs | ||
deriving-in-macro.rs | ||
deriving-meta-multiple.rs | ||
deriving-meta.rs | ||
deriving-self-lifetime-totalord-totaleq.rs | ||
deriving-show-2.rs | ||
deriving-show.rs | ||
deriving-via-extension-c-enum.rs | ||
deriving-via-extension-enum.rs | ||
deriving-via-extension-hash-enum.rs | ||
deriving-via-extension-hash-struct.rs | ||
deriving-via-extension-struct-empty.rs | ||
deriving-via-extension-struct-like-enum-variant.rs | ||
deriving-via-extension-struct-tuple.rs | ||
deriving-via-extension-struct.rs | ||
deriving-via-extension-type-params.rs | ||
deriving-with-helper.rs | ||
deriving-with-repr-packed.rs | ||
issue-3935.rs | ||
issue-6341.rs | ||
issue-15689-1.rs | ||
issue-15689-2.rs | ||
issue-18738.rs | ||
issue-19358.rs | ||
issue-58319.rs | ||
issue-89188-gat-hrtb.rs | ||
issue-103157.rs | ||
issue-103157.stderr | ||
multiple-defaults.rs | ||
multiple-defaults.stderr | ||
proc-macro-attribute-mixing.rs | ||
proc-macro-attribute-mixing.stdout |