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
async-associated-types.rs
async-default-fn-overridden.rs
async-example-desugared-boxed-in-trait.rs
async-example-desugared-boxed-in-trait.stderr
async-example-desugared-boxed.rs
async-example-desugared-boxed.stderr
async-example-desugared-extra.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
async-example-desugared-in-trait.rs
async-example-desugared-manual.rs
async-example-desugared-manual.stderr
async-example-desugared.rs
async-example.rs
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
async-lifetimes.rs
async-recursive-generic.rs
async-recursive-generic.stderr
async-recursive.rs
async-recursive.stderr
bad-region.rs
bad-region.stderr
bad-signatures.rs
bad-signatures.stderr
coherence-constrained.rs
coherence-constrained.stderr
dont-project-to-specializable-projection.rs
dont-project-to-specializable-projection.stderr
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
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
indirect-recursion-issue-112047.stderr
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
lifetime-mismatch.stderr
missing-feature-flag.rs
missing-feature-flag.stderr
missing-send-bound.rs
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
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
return-not-existing-type-wrapping-rpitit.stderr
return-type-suggestion.rs
return-type-suggestion.stderr
returning-possibly-unsized-self.rs
send-on-async-fn-in-trait.fixed
send-on-async-fn-in-trait.rs
send-on-async-fn-in-trait.stderr
send-on-foreign-async-fn-in-trait.rs
send-on-foreign-async-fn-in-trait.stderr
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
warn.stderr