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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54505-no-literals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54505-no-literals.stderr
issue-54505-no-std.rs rustc_hir_analysis: add a helper to check function the signature mismatches 2023-09-19 18:15:23 +02:00
issue-54505-no-std.stderr add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
issue-54505.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54505.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54505.stderr
issue-73553-misinterp-range-literal.rs
issue-73553-misinterp-range-literal.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
range_traits-3.rs
range_traits-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
range_traits-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
range_traits-5.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
range_traits-6.rs
range_traits-6.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
range_traits-7.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
range-inclusive-pattern-precedence.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
range-pattern-out-of-bounds-issue-68972.stderr Stabilize exclusive_range 2024-05-02 19:42:31 -04:00