rust/tests/ui/associated-types
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
cache
associate-type-bound-normalization.rs
associated-item-long-paths.rs
associated-type-destructuring-assignment.rs
associated-type-macro.rs
associated-type-macro.stderr
associated-type-projection-ambig-between-bound-and-where-clause.rs
associated-type-projection-ambig-between-bound-and-where-clause.stderr
associated-type-projection-from-multiple-supertraits.rs
associated-type-projection-from-multiple-supertraits.stderr
associated-type-projection-from-supertrait.rs
associated-type-projection-from-supertrait.stderr
associated-type-shadowed-from-non-local-supertrait.rs
associated-type-shadowed-from-non-local-supertrait.stderr
associated-type-shadowed-from-supertrait.rs
associated-type-shadowed-from-supertrait.stderr
associated-type-struct-construction.rs
associated-type-tuple-struct-construction.rs
associated-type-tuple-struct-construction.stderr
associated-types-basic.rs
associated-types-binding-in-trait.rs
associated-types-binding-in-where-clause.rs
associated-types-binding-to-type-defined-in-supertrait.rs
associated-types-binding-to-type-defined-in-supertrait.stderr
associated-types-bound-ambiguity.rs
associated-types-bound-failure.fixed
associated-types-bound-failure.rs
associated-types-bound-failure.stderr
associated-types-bound.rs
associated-types-cc.rs
associated-types-coherence-failure.rs
associated-types-coherence-failure.stderr stabilize -Znext-solver=coherence 2024-10-15 13:11:00 +02:00
associated-types-conditional-dispatch.rs
associated-types-constant-type.rs
associated-types-doubleendediterator-object.rs
associated-types-duplicate-binding-in-env-hrtb.rs
associated-types-duplicate-binding-in-env.rs
associated-types-enum-field-named.rs
associated-types-enum-field-numbered.rs
associated-types-eq-1.rs
associated-types-eq-1.stderr
associated-types-eq-2.rs Update Tests 2024-06-05 20:08:00 -04:00
associated-types-eq-2.stderr Fix associated item removal suggestion 2024-07-17 21:30:40 +00:00
associated-types-eq-3.rs
associated-types-eq-3.stderr
associated-types-eq-expr-path.rs Automatically taint when reporting errors from ItemCtxt 2024-07-09 07:44:17 +00:00
associated-types-eq-expr-path.stderr Automatically taint when reporting errors from ItemCtxt 2024-07-09 07:44:17 +00:00
associated-types-eq-hr.rs
associated-types-eq-hr.stderr
associated-types-eq-obj.rs
associated-types-for-unimpl-trait.fixed
associated-types-for-unimpl-trait.rs
associated-types-for-unimpl-trait.stderr
associated-types-from-supertrait.rs
associated-types-ICE-when-projecting-out-of-err.rs
associated-types-ICE-when-projecting-out-of-err.stderr
associated-types-impl-redirect.rs
associated-types-in-ambiguous-context.rs
associated-types-in-ambiguous-context.stderr
associated-types-in-bound-type-arg.rs
associated-types-in-default-method.rs
associated-types-in-fn.rs
associated-types-in-impl-generics.rs
associated-types-in-inherent-method.rs
associated-types-incomplete-object.rs
associated-types-incomplete-object.stderr
associated-types-invalid-trait-ref-issue-18865.rs
associated-types-invalid-trait-ref-issue-18865.stderr Remove invalid further restricting for type bound 2024-07-17 19:08:37 +08:00
associated-types-issue-17359.rs
associated-types-issue-17359.stderr
associated-types-issue-20220.rs
associated-types-issue-20220.stderr
associated-types-issue-20346.rs
associated-types-issue-20346.stderr
associated-types-issue-20371.rs
associated-types-issue-21212.rs
associated-types-iterator-binding.rs
associated-types-method.rs
associated-types-multiple-types-one-trait.rs
associated-types-multiple-types-one-trait.stderr
associated-types-nested-projections.rs
associated-types-nested-projections.stderr
associated-types-no-suitable-bound.rs
associated-types-no-suitable-bound.stderr
associated-types-no-suitable-supertrait-2.rs
associated-types-no-suitable-supertrait-2.stderr
associated-types-no-suitable-supertrait.rs
associated-types-no-suitable-supertrait.stderr
associated-types-normalize-in-bounds-binding.rs
associated-types-normalize-in-bounds-ufcs.rs
associated-types-normalize-in-bounds.rs
associated-types-normalize-unifield-struct.rs
associated-types-outlives.rs
associated-types-outlives.stderr Peel off explicit (or implicit) deref before suggesting clone on move error in borrowck 2024-07-26 14:41:56 -04:00
associated-types-overridden-binding-2.rs
associated-types-overridden-binding-2.stderr
associated-types-overridden-binding.rs
associated-types-overridden-binding.stderr
associated-types-overridden-default.rs
associated-types-path-1.rs
associated-types-path-1.stderr
associated-types-path-2.rs
associated-types-path-2.stderr
associated-types-project-from-hrtb-in-fn-body.rs
associated-types-project-from-hrtb-in-fn-body.stderr
associated-types-project-from-hrtb-in-fn.fixed
associated-types-project-from-hrtb-in-fn.rs
associated-types-project-from-hrtb-in-fn.stderr
associated-types-project-from-hrtb-in-struct.rs
associated-types-project-from-hrtb-in-struct.stderr
associated-types-project-from-hrtb-in-trait-method.fixed
associated-types-project-from-hrtb-in-trait-method.rs
associated-types-project-from-hrtb-in-trait-method.stderr
associated-types-project-from-type-param-via-bound-in-where.rs
associated-types-projection-bound-ambiguity.rs
associated-types-projection-bound-in-supertraits.rs
associated-types-projection-from-known-type-in-impl.rs
associated-types-projection-from-known-type-in-impl.stderr
associated-types-projection-in-object-type.rs
associated-types-projection-in-supertrait.rs
associated-types-projection-in-where-clause.rs
associated-types-projection-to-unrelated-trait-in-method-without-default.fixed
associated-types-projection-to-unrelated-trait-in-method-without-default.rs
associated-types-projection-to-unrelated-trait-in-method-without-default.stderr
associated-types-projection-to-unrelated-trait.rs
associated-types-qualified-path-with-trait-with-type-parameters.rs
associated-types-ref-from-struct.rs
associated-types-ref-in-struct-literal.rs
associated-types-region-erasure-issue-20582.rs
associated-types-resolve-lifetime.rs
associated-types-return.rs
associated-types-simple.rs
associated-types-stream.rs
associated-types-struct-field-named.rs
associated-types-struct-field-numbered.rs
associated-types-subtyping-1.rs
associated-types-subtyping-1.stderr
associated-types-sugar-path.rs
associated-types-unconstrained.rs
associated-types-unconstrained.stderr
associated-types-unsized.fixed
associated-types-unsized.rs
associated-types-unsized.stderr
associated-types-where-clause-impl-ambiguity.rs
bound-lifetime-constrained.clause.stderr
bound-lifetime-constrained.func.stderr
bound-lifetime-constrained.object.stderr
bound-lifetime-constrained.ok.stderr
bound-lifetime-constrained.rs
bound-lifetime-in-binding-only.angle.stderr
bound-lifetime-in-binding-only.elision.stderr
bound-lifetime-in-binding-only.ok.stderr
bound-lifetime-in-binding-only.paren.stderr
bound-lifetime-in-binding-only.rs
bound-lifetime-in-return-only.elision.stderr
bound-lifetime-in-return-only.local.stderr
bound-lifetime-in-return-only.ok.stderr
bound-lifetime-in-return-only.rs
bound-lifetime-in-return-only.sig.stderr
bound-lifetime-in-return-only.structure.stderr
default-associated-types.rs
defaults-cyclic-fail-1.rs
defaults-cyclic-fail-1.stderr
defaults-cyclic-fail-2.rs
defaults-cyclic-fail-2.stderr
defaults-cyclic-pass-1.rs
defaults-cyclic-pass-2.rs
defaults-in-other-trait-items-pass.rs
defaults-in-other-trait-items.rs
defaults-in-other-trait-items.stderr
defaults-mixed.rs
defaults-mixed.stderr
defaults-specialization.rs
defaults-specialization.stderr Use verbose suggestion for changing arg type 2024-07-05 20:58:33 +00:00
defaults-suitability.current.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
defaults-suitability.next.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
defaults-suitability.rs
defaults-unsound-62211-1.current.stderr
defaults-unsound-62211-1.next.stderr Check that alias-relate terms are WF if reporting an error in alias-relate 2024-06-13 08:52:35 -04:00
defaults-unsound-62211-1.rs Check that alias-relate terms are WF if reporting an error in alias-relate 2024-06-13 08:52:35 -04:00
defaults-unsound-62211-2.current.stderr
defaults-unsound-62211-2.next.stderr Check that alias-relate terms are WF if reporting an error in alias-relate 2024-06-13 08:52:35 -04:00
defaults-unsound-62211-2.rs Check that alias-relate terms are WF if reporting an error in alias-relate 2024-06-13 08:52:35 -04:00
defaults-wf.rs
defaults-wf.stderr
dont-suggest-cyclic-constraint.rs
dont-suggest-cyclic-constraint.stderr
higher-ranked-projection.bad.stderr
higher-ranked-projection.rs
hr-associated-type-bound-1.rs
hr-associated-type-bound-1.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
hr-associated-type-bound-2.rs
hr-associated-type-bound-2.stderr
hr-associated-type-bound-object.rs
hr-associated-type-bound-object.stderr
hr-associated-type-bound-param-1.rs
hr-associated-type-bound-param-1.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
hr-associated-type-bound-param-2.rs
hr-associated-type-bound-param-2.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
hr-associated-type-bound-param-3.rs
hr-associated-type-bound-param-3.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
hr-associated-type-bound-param-4.rs
hr-associated-type-bound-param-4.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
hr-associated-type-bound-param-5.rs
hr-associated-type-bound-param-5.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
hr-associated-type-bound-param-6.rs
hr-associated-type-bound-param-6.stderr
hr-associated-type-projection-1.rs
hr-associated-type-projection-1.stderr
impl-trait-return-missing-constraint.rs
impl-trait-return-missing-constraint.stderr Stop inverting expectation in normalization errors 2024-10-16 13:44:56 -04:00
impl-wf-cycle-1.rs
impl-wf-cycle-1.stderr
impl-wf-cycle-2.rs
impl-wf-cycle-2.stderr
impl-wf-cycle-3.rs
impl-wf-cycle-3.stderr
impl-wf-cycle-4.rs
impl-wf-cycle-4.stderr
impl-wf-cycle-5.fixed
impl-wf-cycle-5.rs
impl-wf-cycle-5.stderr
impl-wf-cycle-6.fixed
impl-wf-cycle-6.rs
impl-wf-cycle-6.stderr
imply-relevant-nested-item-bounds-2.rs Collect relevant item bounds from trait clauses for nested rigid projections, GATs 2024-09-25 13:13:04 -04:00
imply-relevant-nested-item-bounds-for-gat.rs Collect relevant item bounds from trait clauses for nested rigid projections, GATs 2024-09-25 13:13:04 -04:00
imply-relevant-nested-item-bounds.rs Collect relevant item bounds from trait clauses for nested rigid projections, GATs 2024-09-25 13:13:04 -04:00
issue-18655.rs
issue-19081.rs
issue-19129-1.rs
issue-19129-2.rs
issue-19883.rs
issue-19883.stderr
issue-20005.rs
issue-20005.stderr
issue-20763-1.rs
issue-20763-2.rs
issue-20825-2.rs
issue-20825.rs
issue-20825.stderr
issue-21363.rs
issue-21726.rs
issue-22037.rs
issue-22037.stderr
issue-22066.rs
issue-22560.rs
issue-22560.stderr Better suggestion span for missing type parameter 2024-07-04 02:41:13 +00:00
issue-22828.rs
issue-23208.rs
issue-23595-1.rs
issue-23595-1.stderr
issue-23595-2.rs
issue-23595-2.stderr
issue-24159.rs
issue-24204.rs
issue-24338.rs
issue-25339.rs
issue-25700-1.rs
issue-25700-2.rs
issue-25700.rs
issue-25700.stderr
issue-26262.rs
issue-26262.stderr
issue-26681.rs
issue-26681.stderr
issue-27675-unchecked-bounds.rs
issue-27675-unchecked-bounds.stderr
issue-27901.rs
issue-28871.rs
issue-31597.rs
issue-32323.rs
issue-32323.stderr
issue-32350.rs
issue-36499.rs
issue-36499.stderr
issue-37808.rs
issue-37883.rs
issue-38821.rs
issue-38821.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-38917.rs
issue-39532.rs
issue-40093.rs
issue-41868.rs
issue-43475.rs
issue-43784-associated-type.rs
issue-43784-associated-type.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-43924.rs
issue-43924.stderr
issue-44153.rs
issue-44153.stderr
issue-47139-1.rs
issue-47139-2.rs
issue-47385.rs
issue-47814.rs
issue-47814.stderr
issue-48010.rs
issue-48551.rs
issue-50301.rs
issue-54108.current.stderr
issue-54108.next.stderr Check that alias-relate terms are WF if reporting an error in alias-relate 2024-06-13 08:52:35 -04:00
issue-54108.rs Check that alias-relate terms are WF if reporting an error in alias-relate 2024-06-13 08:52:35 -04:00
issue-54182-1.rs
issue-54182-2.rs
issue-54467.rs
issue-55846.rs
issue-59324.rs
issue-59324.stderr On implicit Sized bound on fn argument, point at type instead of pattern 2024-09-27 00:45:02 +00:00
issue-62200.rs
issue-62200.stderr
issue-63591.rs
issue-63593.current.stderr
issue-63593.next.stderr
issue-63593.rs
issue-64848.rs
issue-64855-2.rs
issue-64855.rs
issue-64855.stderr
issue-65774-1.rs
issue-65774-1.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
issue-65774-2.rs
issue-65774-2.stderr
issue-65934.rs
issue-67684.rs
issue-69398.rs
issue-71113.rs
issue-72806.rs
issue-72806.stderr
issue-76179.rs
issue-82079.rs
issue-85103-layout-debug.rs
issue-85103-layout-debug.stderr
issue-87261.rs
issue-87261.stderr
issue-88856.rs
issue-91069.rs
issue-91231.rs
issue-91234.rs
missing-associated-types.rs
missing-associated-types.stderr
normalization-debruijn-1.rs
normalization-debruijn-2.rs
normalization-debruijn-3.rs
normalization-generality-2.rs
normalization-generality.rs
normalization-probe-cycle.rs
normalize-cycle-in-eval-no-region.rs
normalize-cycle-in-eval.rs
object-method-numbering.rs
object-normalization.rs
param-env-normalize-cycle.rs
point-at-type-on-obligation-failure-2.rs
point-at-type-on-obligation-failure-2.stderr
point-at-type-on-obligation-failure.rs
point-at-type-on-obligation-failure.stderr
project-defer-unification.rs
project-recursion-limit-non-fatal.rs
remove-invalid-type-bound-suggest-issue-127555.rs Move ty::Error branch into super_combine_tys 2024-10-10 06:07:51 -04:00
remove-invalid-type-bound-suggest-issue-127555.stderr Move ty::Error branch into super_combine_tys 2024-10-10 06:07:51 -04:00
substs-ppaux.normal.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
substs-ppaux.rs
substs-ppaux.verbose.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
trait-with-supertraits-needing-sized-self.rs
trait-with-supertraits-needing-sized-self.stderr
wf-cycle-2.rs
wf-cycle.rs