Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support higher-ranked types for chalk #49810

Closed
nikomatsakis opened this Issue Apr 9, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@nikomatsakis
Copy link
Contributor

nikomatsakis commented Apr 9, 2018

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 with DebruijnIndex. This will take a few steps, each of which I plan to describe in its own sub-issue:

  • Cleanup Binder fields (#49814)
  • Make DebruijnIndex 0-based (#49813)
  • Unify CanonicalVar and DebruijnIndex (#49887)
  • Maybe cleanup how regions are handled to use distinct indices for each region, rather than names (somewhat separate)
@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Apr 11, 2018

@scalexm

This comment has been minimized.

Copy link
Member

scalexm commented Nov 25, 2018

I believe this can be closed, in light of #55330, #55649 and #55921.

@scalexm scalexm closed this Nov 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.