-
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
rustdoc: make the Type enum smaller #97929
Conversation
Some changes occurred in cc @camelid |
r? @jsha (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -640,7 +640,7 @@ fn filter_non_trait_generics(trait_did: DefId, mut g: clean::Generics) -> clean: | |||
|
|||
g.where_predicates.retain(|pred| match pred { | |||
clean::WherePredicate::BoundPredicate { | |||
ty: clean::QPath { self_type: box clean::Generic(ref s), trait_, .. }, | |||
ty: clean::QPath(box clean::QPathData { self_type: clean::Generic(ref s), trait_, .. }), |
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.
box syntax is being phased out? #97293
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.
Yeah, indeed.
If this shows max-rss improvements, I'll fix this line to use Box::new
instead.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 74f9097 with merge cf5590c3574853fadfcaabc248806bb8f5a16955... |
☀️ Try build successful - checks-actions |
Queued cf5590c3574853fadfcaabc248806bb8f5a16955 with parent d7b8d77, future comparison URL. |
Finished benchmarking commit (cf5590c3574853fadfcaabc248806bb8f5a16955): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 Footnotes |
However, this isn't a big enough improvement to bother right now. |
No description provided.