rust/tests/ui/binop
Esteban Küber 5b54286640 Remove detail from label/note that is already available in other note
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`
```
2024-10-29 16:26:57 +00:00
..
binary-minus-without-space.rs
binary-op-not-allowed-issue-125631.rs
binary-op-not-allowed-issue-125631.stderr
binary-op-on-double-ref.fixed
binary-op-on-double-ref.rs
binary-op-on-double-ref.stderr
binary-op-on-fn-ptr-eq.rs
binary-op-suggest-deref.rs
binary-op-suggest-deref.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
binop-bitxor-str.rs
binop-bitxor-str.stderr
binop-consume-args.rs
binop-consume-args.stderr
binop-fail-3.rs
binop-logic-float.rs
binop-logic-float.stderr
binop-logic-int.rs
binop-logic-int.stderr
binop-move-semantics.rs
binop-move-semantics.stderr
binop-mul-bool.rs
binop-mul-bool.stderr
binop-mul-i32-f32.rs
binop-mul-i32-f32.stderr
binop-panic.rs
binop-typeck.rs
binop-typeck.stderr
binops-issue-22743.rs
binops.rs
borrow-suggestion-109352-2.rs
borrow-suggestion-109352-2.stderr
borrow-suggestion-109352.fixed
borrow-suggestion-109352.rs
borrow-suggestion-109352.stderr
eq-arr.rs
eq-arr.stderr
eq-vec.rs
eq-vec.stderr
false-binop-caused-by-missing-semi.fixed
false-binop-caused-by-missing-semi.rs
false-binop-caused-by-missing-semi.stderr
issue-3820.rs
issue-3820.stderr
issue-25916.rs
issue-28837.rs
issue-28837.stderr
issue-62375.rs
issue-62375.stderr
issue-77910-1.rs
issue-77910-1.stderr
issue-77910-2.rs
issue-77910-2.stderr
issue-93927.rs
issue-93927.stderr
multiply-is-deref-on-rhs.rs
multiply-is-deref-on-rhs.stderr
nested-assignment-may-be-deref.rs
nested-assignment-may-be-deref.stderr
operator-multidispatch.rs
operator-overloading.rs
placement-syntax.rs
placement-syntax.stderr
shift-various-bad-types.rs
shift-various-bad-types.stderr
structured-compare.rs