-
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
Remove allow(rustc::potential_query_instability) from rustc_ast_lowering #104330
Conversation
r? @fee1-dead (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
self.owners[def_id] = info; | ||
if let hir::MaybeOwner::NonOwner(_) = self.owners[def_id] { | ||
self.owners[def_id] = info; | ||
} |
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.
The logic is reversed here.
Phantom
means nothing has been assigned yet.
An Owner
can overwrite a NonOwner
, and a NonOwner
does not overwrite to an Owner
.
If we try to overwrite an Owner
with an Owner
, or a NonOwner
with a NonOwner
, that's a bug.
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.
Is it better now?
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.
Actually, as the test suite passes with the debug assert just above, let's keep the simple assignment there was originally. Sorry for the back-and-forth.
e65ef55
to
6c711ad
Compare
Just in case: |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 6c711ad6a9d5ae66ddd63eb4ff8eb48e4ec886f6 with merge f3caf91746d059764528a52ecc05c4498425a7ff... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (f3caf91746d059764528a52ecc05c4498425a7ff): comparison URL. Overall result: ❌✅ regressions and improvements - no 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. @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)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 regression in a secondary benchmark doesn't seem so bad. I will change the Request a benchmark, please! |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 8d360aa80121fcaff4196ada0e92bbefca933b5d with merge b781f49a47f316f7a4763b82f0fe195a4677a72a... |
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.
One nit, r=me on the best of Vec/SmallVec.
self.owners[def_id] = info; | ||
if let hir::MaybeOwner::NonOwner(_) = self.owners[def_id] { | ||
self.owners[def_id] = info; | ||
} |
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.
Actually, as the test suite passes with the debug assert just above, let's keep the simple assignment there was originally. Sorry for the back-and-forth.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (b781f49a47f316f7a4763b82f0fe195a4677a72a): comparison URL. Overall result: ❌ regressions - no 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. @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)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.
|
Not sure which one is best overall. The two improvements we had before are gone, and now we have one more regression, but they are smaller. Should we try another |
The |
@bors p=1 going to close the tree for non-nevers for a while so they can drain out |
⌛ Testing commit 5572263 with merge 80ac74d4fc73147a5458c9580a8e40651c379363... |
💔 Test failed - checks-actions |
I don't understand the error :/ |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry |
⌛ Testing commit 5572263 with merge c0bec3a826c1ac2582c6d9c2912efab71a5762ba... |
💥 Test timed out |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (fd3bfb3): 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.
CyclesThis benchmark run did not return any relevant results for this metric. |
Remove allow(rustc::potential_query_instability) from rustc_ast_lowering Related to rust-lang#84447. `@cjgillot` Thanks for helping me!
Related to #84447.
@cjgillot Thanks for helping me!