rust/tests/ui/range
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
..
exclusive-range-patterns-2021.rs
exclusive-range-patterns-2021.stderr
impossible_range.fixed Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
impossible_range.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
impossible_range.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
issue-54505-no-literals.fixed
issue-54505-no-literals.rs
issue-54505-no-literals.stderr
issue-54505-no-std.rs
issue-54505-no-std.stderr add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
issue-54505.fixed
issue-54505.rs
issue-54505.stderr
issue-73553-misinterp-range-literal.rs
issue-73553-misinterp-range-literal.stderr
misleading-field-access-hint.rs Fix #131471, range misleading field access 2024-10-18 17:27:28 +02:00
misleading-field-access-hint.stderr Fix #131471, range misleading field access 2024-10-18 17:27:28 +02:00
range_inclusive.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
range_traits-1.rs
range_traits-1.stderr
range_traits-2.rs
range_traits-2.stderr
range_traits-3.rs
range_traits-3.stderr
range_traits-4.rs
range_traits-5.rs
range_traits-6.rs
range_traits-6.stderr
range_traits-7.rs
range-1.rs
range-1.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
range-inclusive-pattern-precedence2.rs
range-inclusive-pattern-precedence2.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
range-inclusive-pattern-precedence.fixed
range-inclusive-pattern-precedence.rs
range-inclusive-pattern-precedence.stderr Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
range-pattern-out-of-bounds-issue-68972.rs
range-pattern-out-of-bounds-issue-68972.stderr