-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Several query cleanups #104023
Several query cleanups #104023
Conversation
☔ The latest upstream changes (presumably #104009) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
Just one nit.
r=me after rebase.
@@ -26,7 +26,7 @@ impl<Key, Value> Cache<Key, Value> { | |||
} | |||
|
|||
impl<Key: Eq + Hash, Value: Clone> Cache<Key, Value> { | |||
pub fn get<CTX: DepContext>(&self, key: &Key, tcx: CTX) -> Option<Value> { | |||
pub fn get<Tcx: DepContext>(&self, key: &Key, tcx: Tcx) -> Option<Value> { |
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.
If we really want to be consistent, this would be a Dcx
for DepContext
, but I don't mind.
This makes it consistent and clear which context is used.
0e1fd6c
to
6d26ea8
Compare
Query system is perf sensitive. There shouldn't really be anything, but just in case: |
⌛ Testing commit 6d26ea8 with merge 310880ff180830e77647aa6eacaca94f42ab201d... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Looks spurious.. |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (6b23a7e): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
A few cleanups, mostly about naming in
rustc_query_system
.r? @cjgillot