-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Skip rendering metadata strings from include_str!/include_bytes! #115286
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
r? compiler |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred in src/librustdoc/clean/types.rs cc @camelid |
The current version addresses my previous comments, it's just unfortunate that it introduces a new dependency between rustc crates, especially on Let's perhaps move |
Yeah, that seems better. I wish we had a diagram of the rustc crates dependency graph... |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1fb6947): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression 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 sizeResultsThis 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.
Bootstrap: 631.705s -> 627.894s (-0.60%) |
Regressions look like recovery from a spurious improvement in the previous run, and are way less significant than the improvements. |
Very nice results, awesome work! |
The const rendering code in rustdoc completely ignores consts from expansions, but the compiler was rendering all consts. So some consts (namely those from
include_bytes!
) were rendered then ignored.Most of the diff here is from moving
print_const_expr
from rustdoc intorustc_hir_pretty
so that it can be used in rustdoc and when building rmeta files.