rust/tests/ui/associated-types
Matthias Krüger 35f6eee51a
Rollup merge of #121826 - estebank:e0277-root-obligation-2, r=oli-obk
Use root obligation on E0277 for some cases

When encountering trait bound errors that satisfy some heuristics that tell us that the relevant trait for the user comes from the root obligation and not the current obligation, we use the root predicate for the main message.

This allows to talk about "X doesn't implement Pattern<'_>" over the most specific case that just happened to fail, like  "char doesn't implement Fn(&mut char)" in
`tests/ui/traits/suggest-dereferences/root-obligation.rs`

The heuristics are:

 - the type of the leaf predicate is (roughly) the same as the type from the root predicate, as a proxy for "we care about the root"
 - the leaf trait and the root trait are different, so as to avoid talking about `&mut T: Trait` and instead remain talking about `T: Trait` instead
 - the root trait is not `Unsize`, as to avoid talking about it in `tests/ui/coercion/coerce-issue-49593-box-never.rs`.

```
error[E0277]: the trait bound `&char: Pattern<'_>` is not satisfied
  --> $DIR/root-obligation.rs:6:38
   |
LL |         .filter(|c| "aeiou".contains(c))
   |                             -------- ^ the trait `Fn<(char,)>` is not implemented for `&char`, which is required by `&char: Pattern<'_>`
   |                             |
   |                             required by a bound introduced by this call
   |
   = note: required for `&char` to implement `FnOnce<(char,)>`
   = note: required for `&char` to implement `Pattern<'_>`
note: required by a bound in `core::str::<impl str>::contains`
  --> $SRC_DIR/core/src/str/mod.rs:LL:COL
help: consider dereferencing here
   |
LL |         .filter(|c| "aeiou".contains(*c))
   |                                      +
```

Fix #79359, fix #119983, fix #118779, cc #118415 (the suggestion needs to change), cc #121398 (doesn't fix the underlying issue).
2024-03-05 06:40:31 +01:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
cache [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associate-type-bound-normalization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-item-long-paths.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-type-destructuring-assignment.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-type-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-type-macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-type-projection-ambig-between-bound-and-where-clause.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
associated-type-projection-ambig-between-bound-and-where-clause.stderr Unify suggestion wording 2023-10-17 17:33:55 +00:00
associated-type-projection-from-multiple-supertraits.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
associated-type-projection-from-multiple-supertraits.stderr Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
associated-type-projection-from-supertrait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-type-projection-from-supertrait.stderr diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
associated-type-shadowed-from-non-local-supertrait.rs Point out shadowed associated types 2023-12-06 11:05:22 +01:00
associated-type-shadowed-from-non-local-supertrait.stderr Point out shadowed associated types 2023-12-06 11:05:22 +01:00
associated-type-shadowed-from-supertrait.rs Point out shadowed associated types 2023-12-06 11:05:22 +01:00
associated-type-shadowed-from-supertrait.stderr Point out shadowed associated types 2023-12-06 11:05:22 +01:00
associated-type-struct-construction.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-type-tuple-struct-construction.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-type-tuple-struct-construction.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-basic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-binding-in-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-binding-in-where-clause.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-binding-to-type-defined-in-supertrait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-binding-to-type-defined-in-supertrait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-bound-ambiguity.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-bound-failure.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-bound-failure.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-bound-failure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-bound.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-cc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-coherence-failure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-coherence-failure.stderr Extend impl's def_span to include where clauses 2023-10-09 11:47:02 +00:00
associated-types-conditional-dispatch.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-constant-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-doubleendediterator-object.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-duplicate-binding-in-env-hrtb.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-duplicate-binding-in-env.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-enum-field-named.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-enum-field-numbered.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-eq-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-eq-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-eq-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-eq-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-eq-3.rs Modify primary span label for E0308 2023-01-30 20:12:19 +00:00
associated-types-eq-3.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
associated-types-eq-expr-path.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-eq-expr-path.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-eq-hr.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
associated-types-eq-hr.stderr Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
associated-types-eq-obj.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-for-unimpl-trait.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-for-unimpl-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-for-unimpl-trait.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-from-supertrait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-ICE-when-projecting-out-of-err.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-ICE-when-projecting-out-of-err.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-impl-redirect.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-in-ambiguous-context.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-in-ambiguous-context.stderr Unify suggestion wording 2023-10-17 17:33:55 +00:00
associated-types-in-bound-type-arg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-in-default-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-in-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-in-impl-generics.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-in-inherent-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-incomplete-object.rs Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
associated-types-incomplete-object.stderr Detect object safety errors when assoc type is missing 2023-10-30 22:12:07 +00:00
associated-types-invalid-trait-ref-issue-18865.rs Remove unnecessary select_obligations_where_possible and redundant errors 2023-08-26 19:35:54 +00:00
associated-types-invalid-trait-ref-issue-18865.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-issue-17359.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-issue-17359.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-issue-20220.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-issue-20220.stderr Update tests 2024-02-07 10:42:01 +08:00
associated-types-issue-20346.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-issue-20346.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-issue-20371.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-issue-21212.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-iterator-binding.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-multiple-types-one-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-multiple-types-one-trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-nested-projections.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-nested-projections.stderr Update tests 2024-02-07 10:42:01 +08:00
associated-types-no-suitable-bound.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-no-suitable-bound.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-no-suitable-supertrait-2.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-no-suitable-supertrait-2.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-no-suitable-supertrait.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-no-suitable-supertrait.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
associated-types-normalize-in-bounds-binding.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-normalize-in-bounds-ufcs.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-normalize-in-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-normalize-unifield-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-outlives.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-outlives.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-overridden-binding-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-overridden-binding-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-overridden-binding.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-overridden-binding.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-overridden-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-path-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-path-1.stderr Unify suggestion wording 2023-10-17 17:33:55 +00:00
associated-types-path-2.rs Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
associated-types-path-2.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
associated-types-project-from-hrtb-in-fn-body.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-project-from-hrtb-in-fn-body.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-project-from-hrtb-in-fn.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-project-from-hrtb-in-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-project-from-hrtb-in-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-project-from-hrtb-in-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-project-from-hrtb-in-struct.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-project-from-hrtb-in-trait-method.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-project-from-hrtb-in-trait-method.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-project-from-hrtb-in-trait-method.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-project-from-type-param-via-bound-in-where.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-bound-ambiguity.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-bound-in-supertraits.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-from-known-type-in-impl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-from-known-type-in-impl.stderr Update tests 2024-02-07 10:42:01 +08:00
associated-types-projection-in-object-type.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-in-supertrait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-in-where-clause.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-to-unrelated-trait-in-method-without-default.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-to-unrelated-trait-in-method-without-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-projection-to-unrelated-trait-in-method-without-default.stderr Update tests 2024-02-07 10:42:01 +08:00
associated-types-projection-to-unrelated-trait.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-qualified-path-with-trait-with-type-parameters.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-ref-from-struct.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-ref-in-struct-literal.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-region-erasure-issue-20582.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-resolve-lifetime.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-return.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-simple.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-stream.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-struct-field-named.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-struct-field-numbered.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-subtyping-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-subtyping-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-sugar-path.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-unconstrained.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
associated-types-unconstrained.stderr Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
associated-types-unsized.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-unsized.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
associated-types-unsized.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
associated-types-where-clause-impl-ambiguity.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound-lifetime-constrained.clause.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-lifetime-constrained.func.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-lifetime-constrained.object.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-lifetime-constrained.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound-lifetime-in-binding-only.angle.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-lifetime-in-binding-only.elision.stderr Rollup merge of #117914 - estebank:issue-85843, r=wesleywiser 2023-12-12 17:40:53 +01:00
bound-lifetime-in-binding-only.ok.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bound-lifetime-in-binding-only.paren.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-lifetime-in-binding-only.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound-lifetime-in-return-only.elision.stderr Rollup merge of #117914 - estebank:issue-85843, r=wesleywiser 2023-12-12 17:40:53 +01:00
bound-lifetime-in-return-only.local.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bound-lifetime-in-return-only.ok.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bound-lifetime-in-return-only.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bound-lifetime-in-return-only.sig.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound-lifetime-in-return-only.structure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
default-associated-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defaults-cyclic-fail-1.rs Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
defaults-cyclic-fail-1.stderr Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
defaults-cyclic-fail-2.rs Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
defaults-cyclic-fail-2.stderr Reorder check_item_type diagnostics so they occur next to the corresponding check_well_formed diagnostics 2024-01-02 14:17:56 +00:00
defaults-cyclic-pass-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defaults-cyclic-pass-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defaults-in-other-trait-items-pass.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
defaults-in-other-trait-items.rs Use can_eq to compare types for default assoc type error 2023-01-25 21:25:42 +01:00
defaults-in-other-trait-items.stderr Use can_eq to compare types for default assoc type error 2023-01-25 21:25:42 +01:00
defaults-mixed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-mixed.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-specialization.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-specialization.stderr Tweak expected message to explain what it's actually signifying 2023-09-23 00:57:17 +00:00
defaults-suitability.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-suitability.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
defaults-unsound-62211-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-unsound-62211-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-unsound-62211-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-unsound-62211-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-wf.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
defaults-wf.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
dont-suggest-cyclic-constraint.rs Revert PR #114052 to fix invalid suggestion 2023-08-17 14:33:33 +02:00
dont-suggest-cyclic-constraint.stderr recurse into refs when comparing tys for diagnostics 2023-12-07 23:00:46 -05:00
higher-ranked-projection.bad.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
higher-ranked-projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
hr-associated-type-bound-1.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-1.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
hr-associated-type-bound-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
hr-associated-type-bound-object.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-object.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-1.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-1.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-2.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-2.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-3.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-3.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-4.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-4.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-5.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-5.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-6.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-bound-param-6.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-projection-1.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
hr-associated-type-projection-1.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
impl-trait-return-missing-constraint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-trait-return-missing-constraint.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-wf-cycle-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-wf-cycle-1.stderr Account for trailing comma in removal suggestion 2024-01-19 23:55:05 +00:00
impl-wf-cycle-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-wf-cycle-2.stderr Account for single where bound being removed 2024-01-22 17:52:36 +00:00
impl-wf-cycle-3.rs Provide more context on recursive impl evaluation overflow 2024-01-19 23:55:05 +00:00
impl-wf-cycle-3.stderr Provide more context on recursive impl evaluation overflow 2024-01-19 23:55:05 +00:00
impl-wf-cycle-4.rs Provide more context on recursive impl evaluation overflow 2024-01-19 23:55:05 +00:00
impl-wf-cycle-4.stderr Provide more context on recursive impl evaluation overflow 2024-01-19 23:55:05 +00:00
impl-wf-cycle-5.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-wf-cycle-5.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-wf-cycle-5.stderr Update tests 2024-02-07 10:42:01 +08:00
impl-wf-cycle-6.fixed If suggestion would leave an empty line, delete it 2024-03-01 13:48:20 +00:00
impl-wf-cycle-6.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
impl-wf-cycle-6.stderr Update tests 2024-02-07 10:42:01 +08:00
issue-18655.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-19081.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-19883.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-19883.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-20005.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-20005.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-20825-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-20825.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-20825.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-21363.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-21726.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-22037.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-22037.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-22066.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-22560.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-22560.stderr Sort errors 2023-10-30 22:19:17 +00:00
issue-22828.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-23208.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-23595-1.rs Taint more aggressively in astconv 2024-01-11 09:03:26 +00:00
issue-23595-1.stderr Taint more aggressively in astconv 2024-01-11 09:03:26 +00:00
issue-23595-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-23595-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-24159.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-24204.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-24338.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-25339.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-25700-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-25700-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-25700.rs Adjust compiler tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
issue-25700.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-26262.rs Move tests 2024-03-03 16:30:48 -03:00
issue-26262.stderr Move tests 2024-03-03 16:30:48 -03:00
issue-26681.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-26681.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-27675-unchecked-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-27675-unchecked-bounds.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-27901.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-28871.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-31597.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-32323.rs Move tests 2023-08-28 17:47:37 -03:00
issue-32323.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-32350.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36499.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-36499.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-37808.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-37883.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-38821.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-38821.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-38917.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-39532.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-40093.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-41868.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-43475.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-43784-associated-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-43784-associated-type.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-43924.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-43924.stderr Tweak use of trimmed paths 2023-01-30 20:12:21 +00:00
issue-44153.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-44153.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-47139-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-47139-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-47385.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-47814.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47814.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-48010.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-48551.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-50301.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54108.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-54108.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-54182-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54182-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54467.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-55846.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-59324.rs Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-59324.stderr Continue compilation after check_mod_type_wf errors 2024-02-14 11:00:30 +00:00
issue-62200.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-62200.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-63591.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-63593.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-63593.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-64848.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64855-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-64855.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-64855.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-65774-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-65774-1.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-65774-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-65774-2.stderr Note base types of coercion 2023-05-12 00:10:52 +00:00
issue-65934.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-67684.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-69398.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-71113.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-72806.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-72806.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-76179.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-82079.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-85103-layout-debug.rs better spans for WF errors 2023-09-09 18:00:13 +02:00
issue-85103-layout-debug.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-87261.rs Mention fn coercion rules (needs to be expanded) 2023-01-30 21:51:33 +00:00
issue-87261.stderr Mention fn coercion rules (needs to be expanded) 2023-01-30 21:51:33 +00:00
issue-88856.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91069.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91231.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-91234.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-associated-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
missing-associated-types.stderr Avoid iterating over hashmaps in astconv 2023-11-19 17:45:02 +01:00
normalization-debruijn-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-debruijn-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-debruijn-3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-generality-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-generality.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalization-probe-cycle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalize-cycle-in-eval-no-region.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
normalize-cycle-in-eval.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
object-method-numbering.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
object-normalization.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
param-env-normalize-cycle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
point-at-type-on-obligation-failure-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
point-at-type-on-obligation-failure-2.stderr Point out if a local trait has no implementations 2023-09-10 21:20:36 +00:00
point-at-type-on-obligation-failure.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
point-at-type-on-obligation-failure.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
project-defer-unification.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
project-recursion-limit-non-fatal.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
substs-ppaux.normal.stderr Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
substs-ppaux.rs Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
substs-ppaux.verbose.stderr Use root obligation on E0277 for some cases 2024-03-03 18:53:35 +00:00
trait-with-supertraits-needing-sized-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trait-with-supertraits-needing-sized-self.stderr On E0277 be clearer about implicit Sized bounds on type params and assoc types 2024-02-01 03:30:26 +00:00
wf-cycle-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
wf-cycle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00