-
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
librustdoc: more usages of Joined::joined
#136599
base: master
Are you sure you want to change the base?
Conversation
.filter_map(|s| if !s.is_empty() { Some(s.as_str()) } else { None }) | ||
.collect::<Vec<_>>() | ||
.join(" "), | ||
title = format_args!("{} {}", myitem.type_(), full_path(cx, myitem)), |
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.
looked a little deeper at this and turned out neither myitem.type_()
or full_path(...)
can ever be empty, so the whole joined-array thing is unneeded
.iter() | ||
.map(|seg| { | ||
fmt::from_fn(|f| { | ||
if seg.ident.name != kw::PathRoot { |
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.
The logic here is weird (pre-existing).
The kw::PathRoot
should only ever be the first segment, I think. And we wouldn't want to join two "::"s together anyways.
Wow, you're on fire. :D Let's check perf results then! @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…<try> librustdoc: more usages of `Joined::joined` Some missed opportunities from rust-lang#136244 r? `@GuillaumeGomez` since you reviewed the last one (feel free to re-assign, of course 😊) First two commits are just drive-by cleanups
☀️ Try build successful - checks-actions |
@GuillaumeGomez I think the perf bot didn't work? |
Ah indeed. Let's try again. @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Still not apparently. Fun times. @rust-timer build 2ffed9b |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (2ffed9b): comparison URL. Overall result: no relevant changes - no 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. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -0.2%, secondary 2.1%)This 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 778.801s -> 776.752s (-0.26%) |
2341962
to
4457ce5
Compare
Some missed opportunities from #136244
r? @GuillaumeGomez since you reviewed the last one (feel free to re-assign, of course 😊)
First two commits are just drive-by cleanups