Uh oh!
There was an error while loading. Please reload this page.
HirIdification: kill off NodeId stragglers - #59068
Conversation
rust-highfive
commented
Mar 10, 2019
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
ljedrz
commented
Mar 10, 2019
r? @Zoxc |
Zoxc
commented
Mar 10, 2019
@bors r+ |
bors
commented
Mar 10, 2019
📌 Commit 584d61a has been approved by |
Zoxc
commented
Mar 10, 2019
Where do you get stuck on these? |
ljedrz
commented
Mar 11, 2019
With
I can give them another shot and send a WIP PR for further investigation. |
Zoxc
commented
Mar 11, 2019
@ljedrz For Feel free to open PRs for the other ones. |
I've tried the generic |
Zoxc
commented
Mar 12, 2019
What do you mean by messy?
That will land soon at least. |
There are other objects containing |
eddyb
commented
Mar 13, 2019
How so? I suspect that you can partition most of them into "used during/produced by As an aside, I should reiterate that the Also, things could be slightly nicer by having the HIR represent uses of local variables (including upvars) as a separate |
ljedrz
commented
Mar 13, 2019
Hmm, I guess I can give it another shot as soon as #56864 lands 👍. |
#56864 has already landed? EDIT: ah, it landed 3 hours after your post 😛 |
…r=Zoxc HirIdification: kill off NodeId stragglers The final stages of HirIdification (rust-lang#57578). This PR, along with rust-lang#59042, should finalize the HirIdification process (at least the more straightforward bits). - replace `NodeId` with `HirId` in `trait_impls` - remove all `NodeId`s from `borrowck` - remove all `NodeId`s from `typeck` - remove all `NodeId`s from `mir` - remove `trait_auto_impl` (unused) I would be cool to also remove `NodeId` from `hir::def::Def`, `middle::privacy::AccessLevel` and `hir::ItemId`, but I don't know if this is feasible. I'll be happy to do more if I've missed anything.
…r=Zoxc HirIdification: kill off NodeId stragglers The final stages of HirIdification (rust-lang#57578). This PR, along with rust-lang#59042, should finalize the HirIdification process (at least the more straightforward bits). - replace `NodeId` with `HirId` in `trait_impls` - remove all `NodeId`s from `borrowck` - remove all `NodeId`s from `typeck` - remove all `NodeId`s from `mir` - remove `trait_auto_impl` (unused) I would be cool to also remove `NodeId` from `hir::def::Def`, `middle::privacy::AccessLevel` and `hir::ItemId`, but I don't know if this is feasible. I'll be happy to do more if I've missed anything.
bors
commented
Mar 23, 2019
⌛ Testing commit 584d61a with merge c3182db4e8af03d6af9504e6a5389d1d4f4e861c... |
bors
commented
Mar 23, 2019
☀️ Test successful - checks-travis, status-appveyor |
bors
commented
Mar 23, 2019
👀 Test was successful, but fast-forwarding failed: 422 Update is not a fast forward |
Zoxc
commented
Mar 23, 2019
@bors retry |
bors
commented
Mar 23, 2019
HirIdification: kill off NodeId stragglers The final stages of HirIdification (#57578). This PR, along with #59042, should finalize the HirIdification process (at least the more straightforward bits). - replace `NodeId` with `HirId` in `trait_impls` - remove all `NodeId`s from `borrowck` - remove all `NodeId`s from `typeck` - remove all `NodeId`s from `mir` - remove `trait_auto_impl` (unused) I would be cool to also remove `NodeId` from `hir::def::Def`, `middle::privacy::AccessLevel` and `hir::ItemId`, but I don't know if this is feasible. I'll be happy to do more if I've missed anything.
bors
commented
Mar 23, 2019
☀️ Test successful - checks-travis, status-appveyor |
Zoxc
commented
Apr 2, 2019
@ljedrz Did you try dealing with |
ljedrz
commented
Apr 3, 2019
Zoxc
commented
Apr 4, 2019
@ljedrz I made some progress in https://github.com/Zoxc/rust/tree/hiridify_def_id, but I run into issues lowering |
eddyb
commented
Apr 4, 2019
@Zoxc Can't you allocate the |
The final stages of HirIdification (#57578).
This PR, along with #59042, should finalize the HirIdification process (at least the more straightforward bits).
NodeIdwithHirIdintrait_implsNodeIds fromborrowckNodeIds fromtypeckNodeIds frommirtrait_auto_impl(unused)I would be cool to also remove
NodeIdfromhir::def::Def,middle::privacy::AccessLevelandhir::ItemId, but I don't know if this is feasible.I'll be happy to do more if I've missed anything.