-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Various improvements to the SVH #35079
Conversation
we may need to add a few more resolve cases, actually. |
// except according to those terms. | ||
|
||
// Check that the hash for `mod3::bar` changes when we change the | ||
// `use` to something different. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment seems to be a leftover from another test case.
Looks good to me. I like that we are getting more and more of these test cases that make sure some fundamental things don't regress.
Care to elaborate on that? |
@michaelwoerister re-r? those last few commits -- I switched to use |
☔ The latest upstream changes (presumably #34956) made this pull request unmergeable. Please resolve the merge conflicts. |
@@ -58,6 +58,7 @@ impl<'a, 'tcx> SvhCalculate for TyCtxt<'a, 'tcx, 'tcx> { | |||
{ | |||
let mut visit = StrictVersionHashVisitor::new(&mut state, self); | |||
krate.visit_all_items(&mut visit); | |||
krate.visit_all_items(&mut IdVisitor::new(&mut visit)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need to do this for the SVH since we are visiting all use
declarations too in that case, right? Although, that would kind of rely on things being visited in lexical order...
The new commits look good. However, the |
Perhaps, though I've been wondering if can just strip |
Game on! ;) Yes, I expect to rebase on #35090, though this PR has a lower number I guess. |
We don't do it yet, but we plan to map them into debuginfo as |
ec27189
to
660716b
Compare
@michaelwoerister rebased atop your PR. @bors r=mw |
📌 Commit 660716b has been approved by |
@bors r- Travis failure looks legit:
|
☔ The latest upstream changes (presumably #34842) made this pull request unmergeable. Please resolve the merge conflicts. |
fc694c0
to
257b9a4
Compare
@bors r=mw |
📌 Commit 257b9a4 has been approved by |
⌛ Testing commit 257b9a4 with merge 04e0733... |
@bors r- tidy violations |
⛄ The build was interrupted to prioritize another pull request. |
This requires passing in the dirty-node set explicitly since HIR nodes wind up added to the graph either way.
We now incorporate the `def_map` and `trait_map` results into the SVH.
257b9a4
to
83068eb
Compare
@bors r=mw |
📌 Commit 83068eb has been approved by |
Various improvements to the SVH This fixes a few points for the SVH: - incorporate resolve results into the SVH; - don't include nested items. r? @michaelwoerister cc #32753 (not fully fixed I don't think)
This fixes a few points for the SVH:
r? @michaelwoerister
cc #32753 (not fully fixed I don't think)