support higher-ranked types for chalk #49810
Labels
A-trait-system
Area: Trait system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-traits
Working group: Traits, https://internals.rust-lang.org/t/announcing-traits-working-group/6804
As discussed in the WG-traits planning meeting today, we need to decide how we will represent higher-ranked types in rustc. We decided to try for using debruijn indexing more universally, much as it is done in chalk. The plan is to generalize the existing
CanonicalVar
so that it represents a "bound" thing -- probably it just gets unified withDebruijnIndex
. This will take a few steps, each of which I plan to describe in its own sub-issue:Binder
fields (cleanup Binder fields #49814)DebruijnIndex
0-based (Refactor DebruijnIndex to be 0-based #49813)CanonicalVar
andDebruijnIndex
(UnifyCanonicalVar
andDebruijnIndex
#49887)The text was updated successfully, but these errors were encountered: