rust/tests/ui/impl-trait/in-trait
Matthias Krüger 63635880f6
Rollup merge of #108583 - compiler-errors:rpitit-default-method-with-nested-rpitits, r=spastorino
Account for binders correctly when adding default RPITIT method assumption

As of #108203, we install extra projection predicates into the param-env of a default trait method when it has return-position `impl Trait` (or is async).

The implementation didn't account for the fact that it's walking into and out of binders, so we just need to shift all the debruijn indices accordingly when constructing the projection predicates.

Fixes #108579

r? types
2023-03-07 19:57:44 +01:00
..
auxiliary
new-lowering-strategy Add simple trait test 2023-03-02 16:48:49 -03:00
box-coerce-span-in-default.rs
box-coerce-span-in-default.stderr
deep-match-works.rs
deep-match.rs
deep-match.stderr
default-body-type-err-2.rs
default-body-type-err-2.stderr
default-body-type-err.rs
default-body-type-err.stderr
default-body-with-rpit.rs
default-body.rs
default-method-binder-shifting.rs Shift vars for default RPITIT methods correctly 2023-02-28 21:34:59 +00:00
default-method-binder-shifting.stderr Shift vars for default RPITIT methods correctly 2023-02-28 21:34:59 +00:00
default-method-constraint.rs
default-method-constraint.stderr
doesnt-satisfy.rs
doesnt-satisfy.stderr
dont-project-to-rpitit-with-no-value.rs Don't project to RPITIT that has no default value 2023-03-04 18:36:02 +00:00
dont-project-to-rpitit-with-no-value.stderr Don't project to RPITIT that has no default value 2023-03-04 18:36:02 +00:00
early.rs
encode.rs
foreign.rs
generics-mismatch.rs
generics-mismatch.stderr
issue-102140.rs
issue-102140.stderr
issue-102301.rs
issue-102571.rs
issue-102571.stderr
method-signature-matches.rs
method-signature-matches.stderr
nested-rpitit.rs
object-safety.rs
object-safety.stderr
opaque-in-impl-is-opaque.rs
opaque-in-impl-is-opaque.stderr
opaque-in-impl.rs
reveal.rs
signature-mismatch.rs
signature-mismatch.stderr
specialization-broken.rs Descriptive error when users try to combine RPITIT/AFIT with specialization 2023-02-28 02:03:43 +00:00
specialization-broken.stderr Descriptive error when users try to combine RPITIT/AFIT with specialization 2023-02-28 02:03:43 +00:00
specialization-substs-remap.rs
success.rs
trait-more-generics-than-impl.rs
trait-more-generics-than-impl.stderr
wf-bounds.rs
wf-bounds.stderr
where-clause.rs