Repository navigation
librustdoc: more usages of Joined::joined - #136599
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.
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.
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.
commented
Feb 5, 2025
|
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.
commented
Feb 5, 2025
commented
Feb 5, 2025
|
☀️ Try build successful - checks-actions |
commented
Feb 6, 2025
|
@GuillaumeGomez I think the perf bot didn't work? |
commented
Feb 6, 2025
|
Ah indeed. Let's try again. @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
commented
Feb 6, 2025
|
Still not apparently. Fun times. @rust-timer build 2ffed9b |
This comment has been minimized.
This comment has been minimized.
commented
Feb 6, 2025
|
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
commented
Feb 15, 2025
|
☔ The latest upstream changes (presumably #136828) made this pull request unmergeable. Please resolve the merge conflicts. |
4457ce5 to
91df3fa
Compare
| _ => unreachable!(), | ||
| } | ||
| } | ||
| write_str( |
There was a problem hiding this comment.
I find this code much less good compared to the current one.
There was a problem hiding this comment.
I agree. I'll try to re-write and if I can't make it nicer I'll just revert this part.
There was a problem hiding this comment.
Reverted this part for now. (in a separate commit, will rebase if this PR is approved)
91df3fa to
12abbb2
Compare
commented
Feb 17, 2025
|
Ping me once squashed. :) |
12abbb2 to
c0b1c6e
Compare
commented
Feb 18, 2025
|
@GuillaumeGomez ping :) |
commented
Feb 18, 2025
|
Thanks! @bors r+ rollup |
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