rust/tests/ui/associated-consts
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
assoc-const-eq-ambiguity.rs
assoc-const-eq-ambiguity.stderr
assoc-const-eq-bound-var-in-ty-not-wf.rs
assoc-const-eq-bound-var-in-ty-not-wf.stderr
assoc-const-eq-bound-var-in-ty.rs
assoc-const-eq-esc-bound-var-in-ty.rs
assoc-const-eq-esc-bound-var-in-ty.stderr
assoc-const-eq-missing.rs
assoc-const-eq-missing.stderr
assoc-const-eq-param-in-ty.rs
assoc-const-eq-param-in-ty.stderr
assoc-const-eq-supertraits.rs
assoc-const-eq-ty-alias-noninteracting.rs
assoc-const-ty-mismatch.rs
assoc-const-ty-mismatch.stderr
assoc-const.rs
associated-const-ambiguity-report.rs
associated-const-ambiguity-report.stderr
associated-const-array-len.rs
associated-const-array-len.stderr
associated-const-const-eval.rs
associated-const-cross-crate-const-eval.rs
associated-const-cross-crate-defaults.rs
associated-const-cross-crate.rs
associated-const-dead-code.rs
associated-const-dead-code.stderr
associated-const-generic-obligations.rs
associated-const-generic-obligations.stderr
associated-const-impl-wrong-lifetime.rs
associated-const-impl-wrong-lifetime.stderr
associated-const-impl-wrong-type.rs
associated-const-impl-wrong-type.stderr
associated-const-in-global-const.rs
associated-const-in-trait.rs
associated-const-in-trait.stderr Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
associated-const-inherent-impl.rs
associated-const-marks-live-code.rs
associated-const-match-patterns.rs
associated-const-no-item.rs
associated-const-no-item.stderr
associated-const-outer-ty-refs.rs
associated-const-overwrite-default.rs
associated-const-private-impl.rs
associated-const-private-impl.stderr
associated-const-public-impl.rs
associated-const-range-match-patterns.rs
associated-const-resolution-order.rs
associated-const-self-type.rs
associated-const-trait-bound.rs
associated-const-type-parameter-arrays-2.rs
associated-const-type-parameter-arrays-2.stderr
associated-const-type-parameter-arrays.rs
associated-const-type-parameter-arrays.stderr
associated-const-type-parameter-pattern.rs avoid creating an Instance only to immediately disassemble it again 2024-07-18 11:58:16 +02:00
associated-const-type-parameter-pattern.stderr avoid creating an Instance only to immediately disassemble it again 2024-07-18 11:58:16 +02:00
associated-const-type-parameters.rs
associated-const-type-parameters.stderr
associated-const-ufcs-infer-trait.rs
associated-const-use-default.rs
associated-const-use-impl-of-same-trait.rs
associated-const.rs
defaults-cyclic-fail.rs
defaults-cyclic-fail.stderr
defaults-cyclic-pass.rs
defaults-not-assumed-fail.rs
defaults-not-assumed-fail.stderr
defaults-not-assumed-pass.rs
double-elided.rs Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
freeze.rs
infer-placeholder-in-non-suggestable-pos.rs Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
infer-placeholder-in-non-suggestable-pos.stderr Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope 2024-06-14 11:05:35 -04:00
issue-24949-assoc-const-static-recursion-impl.rs
issue-24949-assoc-const-static-recursion-impl.stderr
issue-24949-assoc-const-static-recursion-trait-default.rs
issue-24949-assoc-const-static-recursion-trait-default.stderr
issue-24949-assoc-const-static-recursion-trait.rs
issue-24949-assoc-const-static-recursion-trait.stderr
issue-47814.rs
issue-47814.stderr
issue-58022.rs
issue-58022.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-63496.rs
issue-63496.stderr
issue-69020-assoc-const-arith-overflow.noopt.stderr
issue-69020-assoc-const-arith-overflow.opt_with_overflow_checks.stderr
issue-69020-assoc-const-arith-overflow.opt.stderr
issue-69020-assoc-const-arith-overflow.rs
issue-88599-ref-self.rs
issue-93775.rs
issue-93835.rs
issue-93835.stderr
issue-102335-const.rs
issue-102335-const.stderr Fix associated item removal suggestion 2024-07-17 21:30:40 +00:00
issue-105330.rs
issue-105330.stderr
issue-110933.rs
mismatched_impl_ty_1.rs
mismatched_impl_ty_2.rs
mismatched_impl_ty_3.rs
projection-unspecified-but-bounded.rs
projection-unspecified-but-bounded.stderr
shadowed-const.rs
shadowed-const.stderr
wrong-projection-self-ty-invalid-bivariant-arg2.rs Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
wrong-projection-self-ty-invalid-bivariant-arg2.stderr Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
wrong-projection-self-ty-invalid-bivariant-arg.rs Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00
wrong-projection-self-ty-invalid-bivariant-arg.stderr Relate receiver invariantly in method probe for Mode::Path 2024-09-16 10:55:07 -04:00