Skip rendering metadata strings from include_str!/include_bytes!#115286
Skip rendering metadata strings from include_str!/include_bytes!#115286bors merged 1 commit intorust-lang:masterfrom
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_exprfrom rustdoc intorustc_hir_prettyso that it can be used in rustdoc and when building rmeta files.