-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Associated consts sidebar #89815
Associated consts sidebar #89815
Conversation
r? @ollie27 (rust-highfive has picked a reviewer for you, use r? to override) |
r? @notriddle |
Updated! Thanks again for the great suggestion @notriddle! Since I suspect it'll impact performance (positively), let's prevent it from being into a rollup: @bors: rollup=iffy |
src/librustdoc/html/render/mod.rs
Outdated
@@ -1928,7 +1960,7 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) { | |||
<div class=\"sidebar-links\">", | |||
); | |||
for line in methods { | |||
out.push_str(&line); | |||
out.push_str(&line.to_string()); |
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.
out.push_str(&line.to_string()); | |
write!(&mut out, line); |
https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/format.rs#L94
a40447c
to
6dc0b06
Compare
This comment has been minimized.
This comment has been minimized.
6dc0b06
to
44a185e
Compare
This comment has been minimized.
This comment has been minimized.
44a185e
to
641eeab
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.
Fix that one last nit, and r=me.
641eeab
to
38f6c07
Compare
Thanks a lot for your suggestions @notriddle ! @bors: r=notriddle |
📌 Commit 38f6c07 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7807a69): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Seems like performance are a little bit worse (+0.03%). |
Fixes #89354.
A screenshot with
f32
: