rust/tests/ui/iterators
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
..
array-of-ranges.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
array.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound.rs
bound.stderr Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
collect-into-array.rs
collect-into-array.stderr
collect-into-slice.rs On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
collect-into-slice.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
float_iterator_hint.rs
float_iterator_hint.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
integral.rs
integral.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
into-iter-on-arrays-2018.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
into-iter-on-arrays-2018.stderr Backticks 2024-05-20 19:16:36 -04:00
into-iter-on-arrays-2021.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
into-iter-on-arrays-lint.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
into-iter-on-arrays-lint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
into-iter-on-arrays-lint.stderr Backticks 2024-05-20 19:16:36 -04:00
into-iter-on-boxed-slices-2021.rs Implement BOXED_SLICE_INTO_ITER 2024-05-20 19:21:30 -04:00
into-iter-on-boxed-slices-2021.stderr Implement BOXED_SLICE_INTO_ITER 2024-05-20 19:21:30 -04:00
into-iter-on-boxed-slices-2024.rs Implement BOXED_SLICE_INTO_ITER 2024-05-20 19:21:30 -04:00
into-iter-on-boxed-slices-lint.fixed Implement BOXED_SLICE_INTO_ITER 2024-05-20 19:21:30 -04:00
into-iter-on-boxed-slices-lint.rs Implement BOXED_SLICE_INTO_ITER 2024-05-20 19:21:30 -04:00
into-iter-on-boxed-slices-lint.stderr Implement BOXED_SLICE_INTO_ITER 2024-05-20 19:21:30 -04:00
into-iterator-type-inference-shift.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-iterator-chain-fixable.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-iterator-chain-fixable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-iterator-chain-fixable.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
invalid-iterator-chain-with-int-infer.rs
invalid-iterator-chain-with-int-infer.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
invalid-iterator-chain.rs
invalid-iterator-chain.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
issue-28098.rs Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
issue-28098.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-58952-filter-type-length.rs Gate the type length limit check behind a nightly flag 2024-07-12 21:16:09 -04:00
iter-cloned-type-inference.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-count-overflow-debug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-count-overflow-ndebug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-map-fold-type-length.rs Re-implement a type-size based limit 2024-07-02 15:48:48 -04:00
iter-position-overflow-debug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-position-overflow-ndebug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-range.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-step-overflow-debug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-step-overflow-ndebug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-sum-overflow-debug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-sum-overflow-ndebug.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
iter-sum-overflow-overflow-checks.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ranges.rs
ranges.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
rsplit-clone.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
skip-count-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
string.rs
string.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
vec-on-unimplemented.fixed Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
vec-on-unimplemented.rs Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00
vec-on-unimplemented.stderr Be more lax in .into_iter() suggestion when encountering Iterator methods on non-Iterator 2024-03-03 18:53:36 +00:00