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 Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
binary-op-not-allowed-issue-125631.stderr Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
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 Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
binop-consume-args.rs
binop-consume-args.stderr Mention when type parameter could be Clone 2024-04-24 22:21:15 +00:00
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 Peel off explicit (or implicit) deref before suggesting clone on move error in borrowck 2024-07-26 14:41:56 -04:00
binop-mul-bool.rs
binop-mul-bool.stderr
binop-mul-i32-f32.rs
binop-mul-i32-f32.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
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 Only suppress binop error in favor of semicolon suggestion if we're in an assignment statement 2024-05-23 19:22:55 -04:00
nested-assignment-may-be-deref.stderr Only suppress binop error in favor of semicolon suggestion if we're in an assignment statement 2024-05-23 19:22:55 -04:00
operator-multidispatch.rs
operator-overloading.rs
placement-syntax.rs
placement-syntax.stderr
shift-various-bad-types.rs
shift-various-bad-types.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
structured-compare.rs