-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustdoc: link sibling where possible, even when not One True Path #124102
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
Conversation
rustbot has assigned @GuillaumeGomez. Use |
7e29512
to
902e39d
Compare
☔ The latest upstream changes (presumably #124008) made this pull request unmergeable. Please resolve the merge conflicts. |
Thanks! r=me once merge conflicts have been resolved. |
This is, first of all, a size hack aimed at the `core::arch` modules that share items (x86-64/x86, aarch64/x86). They inline a lot of items from shared modules, and if we can avoid writing `../arm/WHATEVER` all over the aarch64 module, we can shave a few bytes off every link. Also, clicking a link in the 64 bit module and landing in the 32 bit module makes no sense.
ba76594
to
aeeb197
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…<try> rustdoc: link sibling where possible, even when not One True Path This is, first of all, a size hack aimed at the `core::arch` modules that share items (x86-64/x86, aarch64/x86). They inline a lot of items from shared modules, and if we can avoid writing `../arm/WHATEVER` all over the aarch64 module, we can shave a few bytes off every link. Also, clicking a link in the 64 bit module and landing in the 32 bit module makes no sense.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (bfb0a95): comparison URL. Overall result: ❌ regressions - 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis 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.
CyclesResultsThis 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 676.731s -> 676.763s (0.00%) |
The impact on |
This changes things so that it only gets inlined items added, instead of populating it with redundant parts. This is a workaround for `libc`, which has a bunch of items that get re-exported in one place.
Yeah, that's way more than acceptable. It also doesn't seem like libc's output has changed at all. Since that probably means that its items are being inlined into exactly one place and this patch isn't doing anything. Maybe it would fix the regression if rustdoc skipped populating the map? 2868cea @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…<try> rustdoc: link sibling where possible, even when not One True Path This is, first of all, a size hack aimed at the `core::arch` modules that share items (x86-64/x86, aarch64/x86). They inline a lot of items from shared modules, and if we can avoid writing `../arm/WHATEVER` all over the aarch64 module, we can shave a few bytes off every link. Also, clicking a link in the 64 bit module and landing in the 32 bit module makes no sense.
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (620d812): comparison URL. Overall result: ❌ regressions - 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis 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.
CyclesResultsThis 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.221s -> 672.962s (0.11%) |
That didn't help. Might need to go back to the drawing board here... |
This is, first of all, a size hack aimed at the
core::arch
modules that share items (x86-64/x86, aarch64/x86). They inline a lot of items from shared modules, and if we can avoid writing../arm/WHATEVER
all over the aarch64 module, we can shave a few bytes off every link.Also, clicking a link in the 64 bit module and landing in the 32 bit module makes no sense.