-
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
rustc_privacy: Cleanups and perf improvements to EmbargoVisitor
#111260
Conversation
r? @cjgillot (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 0b306c0a1237abe3e973da1c8d43ba3369d90787 with merge d914dabd2ea6c514f585a1dd0fddc5e243671b99... |
cc @Bryanskiy |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
hir::ItemKind::Macro(ref macro_def, _) => { | ||
self.update_reachability_from_macro(item.owner_id.def_id, macro_def); | ||
} | ||
hir::ItemKind::ForeignMod { items, .. } => { | ||
for foreign_item in items { | ||
self.update(foreign_item.id.owner_id.def_id, item_ev, Level::Reachable); |
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.
Why isn't this update needed any more?
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.
It wasn't needed previously either, both nominal and effective visibilities are meaningless for extern { ... }
items themselves, and they are not added to the table - https://github.com/rust-lang/rust/blob/master/tests/ui/privacy/effective_visibilities.rs#L10
This comment was marked as outdated.
This comment was marked as outdated.
@rustbot ready |
…rate` Previously it had some logic requiring tree visiting, but it was moved to resolve last year.
in cases where they are guaranteed to be `Some`
and remove some more `Option`s as a result
…pass outside of fixed point iteration.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit edf95b5 with merge cd3488f3d7a500f374e0e7c1e2381f87e77be444... |
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (cd3488f3d7a500f374e0e7c1e2381f87e77be444): 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)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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 643.403s -> 643.705s (0.05%) |
@rustbot ready |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c373194): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 647.059s -> 647.009s (-0.01%) |
The improvement here greatly outweigh the regressions. Nice results! @rustbot label: +perf-regression-triaged |
Continuation of #110907.