rust/tests/ui/impl-trait/in-trait
Esteban Küber 8c04999226 On object safety error, mention new enum as alternative
When we encounter a `dyn Trait` that isn't object safe, look for its
implementors. If there's one, mention using it directly If there are
less than 9, mention the possibility of creating a new enum and using
that instead.

Account for object unsafe `impl Trait on dyn Trait {}`.  Make a
distinction between public and sealed traits.

Fix #80194.
2023-10-29 23:55:46 +00:00
..
auxiliary Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
anonymize-binders-for-refine.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
assumed-wf-bounds-in-impl.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
bad-item-bound-within-rpitit-2.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
bad-item-bound-within-rpitit-2.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
bad-item-bound-within-rpitit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
bad-item-bound-within-rpitit.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
box-coerce-span-in-default.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
check-wf-on-non-defaulted-rpitit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
check-wf-on-non-defaulted-rpitit.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
deep-match-works.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
deep-match.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
deep-match.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
default-body-type-err-2.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
default-body-type-err-2.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
default-body-type-err.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
default-body-type-err.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
default-body-with-rpit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
default-body.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
default-method-binder-shifting.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
default-method-constraint.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
doesnt-satisfy.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
doesnt-satisfy.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
dont-project-to-rpitit-with-no-value.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
dont-project-to-rpitit-with-no-value.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
early.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
encode.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
foreign-dyn-error.rs
foreign-dyn-error.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
foreign.rs Don't emit refining_impl_trait for private items 2023-09-07 01:31:32 +00:00
gat-outlives.rs Fix outlives suggestion for GAT in RPITIT 2023-10-16 15:42:26 +00:00
gat-outlives.stderr Fix outlives suggestion for GAT in RPITIT 2023-10-16 15:42:26 +00:00
generics-mismatch.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
generics-mismatch.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102140.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102140.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102301.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
issue-102571.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
issue-102571.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
lifetime-in-associated-trait-bound.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
method-signature-matches.lt.stderr Tweak wording of type errors involving type params 2023-10-18 23:53:18 +00:00
method-signature-matches.mismatch.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
method-signature-matches.mismatch_async.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
method-signature-matches.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
method-signature-matches.too_few.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
method-signature-matches.too_many.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-lt-outlives-in-rpitit-114274.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-lt-outlives-in-rpitit-114274.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
nested-rpitit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
object-safety-sized.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
object-safety.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
object-safety.stderr On object safety error, mention new enum as alternative 2023-10-29 23:55:46 +00:00
opaque-in-impl-is-opaque.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
opaque-in-impl-is-opaque.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
opaque-in-impl.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
opaque-variances.rs Relate AliasTy considering variance 2023-10-04 04:22:04 +00:00
outlives-in-nested-rpit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
refine.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
refine.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-dont-satisfy-bounds.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-dont-satisfy-bounds.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
reveal.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rpitit-hidden-types-self-implied-wf-via-param.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rpitit-hidden-types-self-implied-wf-via-param.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rpitit-hidden-types-self-implied-wf.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rpitit-hidden-types-self-implied-wf.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rpitit-shadowed-by-missing-adt.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
rpitit-shadowed-by-missing-adt.stderr Insert RPITITs that were shadowed by missing ADTs that resolve to type error 2023-07-27 22:32:58 +00:00
sibling-function-constraint.rs Test that RPITITs have RPIT scope and not impl-wide scope 2023-10-13 21:01:36 +00:00
sibling-function-constraint.stderr Test that RPITITs have RPIT scope and not impl-wide scope 2023-10-13 21:01:36 +00:00
signature-mismatch.failure.stderr Implement refinement lint for RPITIT 2023-09-07 00:49:09 +00:00
signature-mismatch.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
specialization-broken.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
specialization-broken.stderr Tweak wording of type errors involving type params 2023-10-18 23:53:18 +00:00
specialization-substs-remap.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
success.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
suggest-missing-item.fixed Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
suggest-missing-item.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
suggest-missing-item.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
trait-more-generics-than-impl.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
trait-more-generics-than-impl.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
unconstrained-lt.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
unconstrained-lt.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
variance.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
variance.stderr Test variances of opaque captures 2023-08-28 01:05:34 +00:00
variances-of-gat.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
wf-bounds.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
wf-bounds.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
where-clause.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00