-
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: don't clone already owned Path
and modify it inplace
#91833
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
.map(|bounds| bounds.contains(&strip_path_generics(trait_.clone()))) | ||
.map(|bounds| bounds.contains(&strip_path_generics(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.
Here we get fresh Path
from get_trait_path()
so no need to clone in again
810cb21
to
8869dbc
Compare
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.
Thanks! r=me with CI passing :)
@bors rollup=iffy (affects perf) |
@bors r+ |
📌 Commit 8869dbc has been approved by |
This code is likely perf-sensitive, so @bors rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1d01550): comparison url. Summary: This change led to very large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
All of that seems wrong 😆 |
cc @rylev |
looking at "regression" at #91996 - this is return of values back. Plus, this is rustdoc-only change, so perf changes for other benches unrelated. |
This seems likely to be noise as a result of the issue tracked in rust-lang/rustc-perf#1126 -- marking as triaged, not something we should address directly. @rustbot label +perf-regression-triaged |
No description provided.