rust/tests/ui/async-await/in-trait
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
..
auxiliary [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-associated-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-default-fn-overridden.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-example-desugared-boxed-in-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-example-desugared-boxed-in-trait.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
async-example-desugared-boxed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-example-desugared-boxed.stderr Split refining_impl_trait lint into _reachable, _internal variants 2024-03-05 16:19:16 -08:00
async-example-desugared-extra.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
async-example-desugared-in-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-example-desugared-manual.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-example-desugared-manual.stderr Split refining_impl_trait lint into _reachable, _internal variants 2024-03-05 16:19:16 -08:00
async-example-desugared.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-example.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-generics-and-bounds.rs Cleanup some known-bug issues 2024-09-27 18:15:37 +00:00
async-generics-and-bounds.stderr Cleanup some known-bug issues 2024-09-27 18:15:37 +00:00
async-generics.rs Cleanup some known-bug issues 2024-09-27 18:15:37 +00:00
async-generics.stderr Cleanup some known-bug issues 2024-09-27 18:15:37 +00:00
async-lifetimes-and-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-lifetimes.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-recursive-generic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-recursive-generic.stderr Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
async-recursive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-recursive.stderr Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
bad-region.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-region.stderr Don't expect early-bound region to be local in RPITIT well-formedness 2024-02-06 16:01:54 +00:00
bad-signatures.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-signatures.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
coherence-constrained.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
coherence-constrained.stderr Avoid emitting trait bound errors of incoherent traits 2024-02-05 08:19:59 +00:00
dont-project-to-specializable-projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dont-project-to-specializable-projection.stderr Tweak wording of "implemented trait isn't imported" suggestion 2024-02-22 18:05:27 +00:00
dyn-compatibility.rs UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
dyn-compatibility.stderr UI tests: Rename "object safe" to "dyn compatible" 2024-10-10 01:13:29 +02:00
early-bound-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
early-bound-2.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
fn-not-async-err2.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
fn-not-async-err.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
fn-not-async-err.stderr Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
generics-mismatch.rs Differentiate between methods and associated functions 2024-08-10 00:54:16 +00:00
generics-mismatch.stderr Differentiate between methods and associated functions 2024-08-10 00:54:16 +00:00
hir-hash.rs Fill in HIR hash for associated opaque types 2024-03-14 23:29:12 +03:00
implied-bounds.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
indirect-recursion-issue-112047.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
indirect-recursion-issue-112047.stderr Make cycle error more resilient to where it starts 2024-01-08 20:30:24 +00:00
issue-102138.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
issue-102219.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
issue-102310.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
issue-104678.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
lifetime-mismatch.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lifetime-mismatch.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
missing-feature-flag.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-feature-flag.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-send-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-send-bound.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
nested-rpit.rs Remove some unnecessary allow(incomplete_features) 2024-03-11 19:42:04 +00:00
normalize-opaque-with-bound-vars.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-not-existing-pair.rs make type_flags(ReError) & HAS_ERROR 2024-03-20 17:29:58 +00:00
return-not-existing-pair.stderr make type_flags(ReError) & HAS_ERROR 2024-03-20 17:29:58 +00:00
return-not-existing-type-wrapping-rpitit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-not-existing-type-wrapping-rpitit.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
return-type-suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
return-type-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
returning-possibly-unsized-self.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-on-async-fn-in-trait.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-on-async-fn-in-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-on-async-fn-in-trait.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
send-on-foreign-async-fn-in-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
send-on-foreign-async-fn-in-trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unconstrained-impl-region.rs Consider param-env candidates even if they have errors 2024-10-24 01:48:44 +00:00
unconstrained-impl-region.stderr Consider param-env candidates even if they have errors 2024-10-24 01:48:44 +00:00
warn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
warn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00