-
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
incr.comp.: Some preparatory work for caching more query results. #46299
Conversation
☔ The latest upstream changes (presumably #44884) made this pull request unmergeable. Please resolve the merge conflicts. |
for DecodeContext<'a, 'tcx> { | ||
#[inline] | ||
fn specialized_decode(&mut self) -> Result<mir::ClearCrossCrate<T>, Self::Error> { | ||
Ok(mir::ClearCrossCrate::Clear) |
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.
that's...a cute trick
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.
Right? :)
I poached it from @arielb1.
r=me after rebase |
2a2783b
to
3bb25d6
Compare
@bors r=nikomatsakis |
📌 Commit 3bb25d6 has been approved by |
⌛ Testing commit 3bb25d6 with merge 1d1431789b75ee49dd1c3f506d409ce0b071efa2... |
💔 Test failed - status-travis |
Looks spurious. |
@bors p=1 (A while back we decided that incr. comp. PRs get higher priority until the end of the year. Since there are 4 incr. comp. PRs open in parallel at the moment, with more to come, I'm taking advantage of this now) |
…atsakis incr.comp.: Some preparatory work for caching more query results. This PR * adds and updates some encoding/decoding routines for various query result types so they can be cached later, and * adds missing `[input]` annotations for a few `DepNode` variants. The situation around having to explicitly mark dep-nodes/queries as inputs is not really satisfactory. I hope we can find a way of making this more fool-proof in the future. r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
This PR
[input]
annotations for a fewDepNode
variants.The situation around having to explicitly mark dep-nodes/queries as inputs is not really satisfactory. I hope we can find a way of making this more fool-proof in the future.
r? @nikomatsakis