Use NodeId/HirId instead of DefId for local variables.#44316
Use NodeId/HirId instead of DefId for local variables.#44316bors merged 1 commit intorust-lang:masterfrom
Conversation
5027135 to
b175d84
Compare
michaelwoerister
left a comment
There was a problem hiding this comment.
Nice! It's a bit unfortunate that Def::def_id() can't be used as universally anymore but that's OK. Having fewer DefIds is definitely a win.
One question though: Won't we run into trouble with MIR inlining here as it potentially mixes in locals from other crates?
src/librustc_save_analysis/lib.rs
Outdated
There was a problem hiding this comment.
OK.. :D
rls_data::Id should arguably be switched to a (DefPathHash, LocalId) anyway at some point.
Where does MIR refer to variable bindings by some kind of ID? If it does that's a bug IMO. |
|
☔ The latest upstream changes (presumably #44380) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r=me once rebased. |
97b32ae to
1492fcf
Compare
|
@bors r=michaelwoerister |
|
📌 Commit 1492fcf has been approved by |
|
☔ The latest upstream changes (presumably #44142) made this pull request unmergeable. Please resolve the merge conflicts. |
1492fcf to
da0a47a
Compare
|
@bors r=michaelwoerister |
|
📌 Commit da0a47a has been approved by |
Use NodeId/HirId instead of DefId for local variables. r? @michaelwoerister
|
☀️ Test successful - status-appveyor, status-travis |
Use LocalDefId instead of HirId for reachable_set elements. The only `HirId`s being tracked there that don't have matching `DefId`s are local variables, and that's an accident from rust-lang#44316 (where I preserved the old behavior, even if nothing relied on reachability tracking local variables).
Use LocalDefId instead of HirId for reachable_set elements. The only `HirId`s being tracked there that don't have matching `DefId`s are local variables, and that's an accident from rust-lang#44316 (where I preserved the old behavior, even if nothing relied on reachability tracking local variables).
r? @michaelwoerister