Skip to content

Commit

Permalink
Auto merge of rust-lang#101679 - compiler-errors:rpitit-default-body,…
Browse files Browse the repository at this point in the history
… r=nikomatsakis

Support default-body trait functions with return-position `impl Trait` in traits

Introduce a new `Trait` candidate kind for the `ImplTraitInTrait` projection candidate, which just projects an RPITIT down to its opaque type form.

This is a hack until we lower RPITITs to regular associated types, after which we will need to rework how these default bodies are type-checked, so comments are left in a few places for us to clean up later.

Fixes rust-lang#101665
  • Loading branch information
bors committed Oct 12, 2022
2 parents 0eb1c0c + 0c5a645 commit 823485f
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 823485f

Please sign in to comment.