Uh oh!
There was an error while loading. Please reload this page.
Make local query providers receive local keys - #109092
Conversation
rustbot
commented
Mar 13, 2023
r? @cjgillot (rustbot has picked a reviewer for you, use r? to override) |
compiler-errors
commented
Mar 13, 2023
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
rustbot
commented
Mar 13, 2023
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt The Miri subtree was changed cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occured in cc @BoxyUwU |
bors
commented
Mar 13, 2023
⌛ Trying commit 2a66c2b1ad8880024ad069b8c969102c23781708 with merge 0663769d33256fffe4d0e10d24119cb4cf2404be... |
Uh oh!
There was an error while loading. Please reload this page.
Noratrieb
left a comment
There was a problem hiding this comment.
Very cool! One small improvement
Uh oh!
There was an error while loading. Please reload this page.
compiler-errors
commented
Mar 13, 2023
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
bors
commented
Mar 13, 2023
⌛ Trying commit 9d2e1e07e89ebca3fe47fe9c5b742d789ff406ae with merge af096b934d3640666c1dcc82186802171479ffe0... |
compiler-errors
commented
Mar 13, 2023
@bors try sorry bors lol |
bors
commented
Mar 13, 2023
⌛ Trying commit b3280e7dbaf7fb2950bc1fc51a6cd76e7c579e99 with merge ef8757fd3403378f1d31bbc8f9d428674b83ff13... |
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Mar 14, 2023
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
Mar 14, 2023
Finished benchmarking commit (ef8757fd3403378f1d31bbc8f9d428674b83ff13): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResultsThis 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.
|
compiler-errors
commented
Mar 14, 2023
Noise? 🤔 |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Why a separate trait instead of your initial implementation using the Key trait?
There was a problem hiding this comment.
So that the as_local_key only has to be provided for the keys where we actually make use of it. This should make it a little easier to make sure that all of the impls are correct and not run into things like #109109 again.
There was a problem hiding this comment.
Yeah, exactly what Nils said.
bors
commented
Mar 21, 2023
☔ The latest upstream changes (presumably #109442) made this pull request unmergeable. Please resolve the merge conflicts. |
cjgillot
commented
Mar 21, 2023
@bors r+ |
bors
commented
Mar 21, 2023
bors
commented
Mar 21, 2023
bors
commented
Mar 21, 2023
☀️ Test successful - checks-actions |
rust-timer
commented
Mar 21, 2023
Finished benchmarking commit (77d50a8): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
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.
CyclesResultsThis 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.
|
Update the toolchain to use nightly-2023-04-16. Changes were related to the following changes to the toolchain: - rust-lang/rust#108944 - rust-lang/rust#108148 - rust-lang/rust#108471 - rust-lang/rust#109358 - rust-lang/rust#109849 - rust-lang/rust#109819 - rust-lang/rust#109718 - rust-lang/rust#109092 - rust-lang/rust#108856 - rust-lang/rust#105613 - rust-lang/rust#103042 - rust-lang/rust#109716 - rust-lang/rust#108340 - rust-lang/rust#102906 - rust-lang/rust#98112 - rust-lang/rust#108080
When a query is marked
separate_provide_extern, we can map a query key to a "local" form of the key, e.g.DefId->LocalDefId. This simplifies a ton of code which either has to assert or use something likeexpect_localto assert that the query key is local.