-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
refactor ProjectionTy to store def-id of associated item + substs #42171
Comments
Quick question - for storing |
@tschottdorf How would the two options differ? What do you mean by "sharing"? |
@eddyb Niko mentioned above that for now, the |
Maybe he wasn't clear on the fact that |
Sorry, didn't phrase that well - I'm aware that |
Part of rust-lang#42171, in preparation for downgrading the contained `TraitRef` to only its `substs`.
Upgrade ProjectionTy's Name to a DefId Part of rust-lang#42171, in preparation for downgrading the contained `TraitRef` to only its `substs`. Some inline questions in the diff. Look for `FIXME(tschottdorf)`. These comments should be addressed before merging.
Upgrade ProjectionTy's Name to a DefId Part of rust-lang#42171, in preparation for downgrading the contained `TraitRef` to only its `substs`. Some inline questions in the diff. Look for `FIXME(tschottdorf)`. These comments should be addressed before merging.
WIP: please review the FIXME(tschottdorf) code comments, in particular the last remaining use of `deprecated_trait_ref`. ---- Addresses the second part of rust-lang#42171 by removing the `TraitRef` from `ProjectionTy`, and directly storing its `Substs`. Closes rust-lang#42171.
Addresses the second part of rust-lang#42171 by removing the `TraitRef` from `ProjectionTy`, and directly storing its `Substs`. Closes rust-lang#42171.
Addresses the second part of rust-lang#42171 by removing the `TraitRef` from `ProjectionTy`, and directly storing its `Substs`. Closes rust-lang#42171.
In preparation for ATC, we should refactor
ProjectionTy
to store theDefId
of the trait associated item along with a set of substs for that item. (Currently, it stores a trait-ref (trait def-id + substs) and item name.) Currently, these substs will always be the same as the substs for the trait, but once ATC lands they will include additional items.cc @tschottdorf, who has started in on this
cc @eddyb, who has a vague interest in this :)
The text was updated successfully, but these errors were encountered: