rust/tests/ui/traits/const-traits/effects
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
const_closure-const_trait_impl-ice-113381.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
const_closure-const_trait_impl-ice-113381.stderr Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
effect-param-infer.rs
fallback.rs
group-traits.rs
helloworld.rs
ice-112822-expected-type-for-param.rs Deny calls to non-#[const_trait] methods in MIR constck 2024-10-26 11:35:56 +08:00
ice-112822-expected-type-for-param.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
ice-113375-index-out-of-bounds-generics.rs
infer-fallback.rs
minicore.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
minicore.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
mismatched_generic_args.rs
mismatched_generic_args.stderr
no-explicit-const-params-cross-crate.rs
no-explicit-const-params-cross-crate.stderr Implement const effect predicate in new solver 2024-10-24 09:46:36 +00:00
no-explicit-const-params.rs Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
no-explicit-const-params.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
project.rs
span-bug-issue-121418.rs
span-bug-issue-121418.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
spec-effectvar-ice.rs Be better at enforcing that const_conditions is only called on const items 2024-10-24 09:46:36 +00:00
spec-effectvar-ice.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00
trait-fn-const.rs
trait-fn-const.stderr Hack out effects support for old solver 2024-10-28 21:42:14 +00:00