-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Only compute the trait map once #85905
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Let's be prudent this time. |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 0839cd5 with merge 4cc9d73408655d50818d9fe59d3e9534a9504db5... |
compiler/rustc_resolve/src/lib.rs
Outdated
debug_assert!(!self.took_trait_map); | ||
self.took_trait_map = true; | ||
} | ||
std::mem::take(&mut self.trait_map) |
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.
On further thought - how much work would it be to make this an Option
, and remove took_trait_map
?
☀️ Try build successful - checks-actions |
Queued 4cc9d73408655d50818d9fe59d3e9534a9504db5 with parent 7f9ab03, future comparison URL. |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking try commit (4cc9d73408655d50818d9fe59d3e9534a9504db5): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@bors r+ |
📌 Commit 93b25bd has been approved by |
⌛ Testing commit 93b25bd with merge 451fe0c79f0650edf41129cd2a79eab6504269f6... |
💔 Test failed - checks-actions |
@bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 93b25bd has been approved by |
☀️ Test successful - checks-actions |
Part of #85153
r? @Aaron1011