-
Notifications
You must be signed in to change notification settings - Fork 14k
Encode cfg trace, not its early counterpart to fix cross-crate doc(auto_cfg)
#148660
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
|
Great, thanks! r=me once CI pass. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
cfg is quite a perf sensitive attribute since it's used so much, also had problems with it during the port of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Encode cfg trace, not its early counterpart to fix cross-crate `doc(auto_cfg)`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (8d673fe): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -2.6%, secondary -2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 7.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.6%, secondary 0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 483.325s -> 473.961s (-1.94%) |
|
Well that's to be expected as we're strictly doing more work here. Namely, encoding & decoding more attributes (previously, with Moreover, this fixes a correctness regression (introduced in #138844), so this is justified. I did look at the perf improvements of the rollup that included the regressing PR (#139023 (comment)) but my findings weren't conclusive (a hypothesis of mine was that we're just reverting the perf improvements of the regressing PR to end up at a net zero). Anyway, I find the regression justifiable. @rustbot label perf-regression-triaged |
|
@bors r=GuillaumeGomez |
|
Yep sounds reasonable, just wanted to make sure we are aware of the performance impact when making this change :) |
|
Scheduling: Prefer never over iffy if the rollup fails. @bors p=1 |
|
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 20f1c04 (parent) -> ab67c37 (this PR) Test differencesShow 6 test diffsStage 1
Stage 2
Additionally, 2 doctest diffs were found. These are ignored, as they are noisy. Job group index Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard ab67c37c6dbea849aa3425146bfe99fb1f1d117a --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (ab67c37): comparison URL. Overall result: ❌ regressions - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -7.9%, secondary 0.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResults (primary 0.5%, secondary 0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 477.048s -> 475.32s (-0.36%) |
…omez Encode cfg trace, not its early counterpart to fix cross-crate `doc(auto_cfg)` Fixes rust-lang#141301. <details><summary>Rambling about <code>target_feature</code> which I didn't touch here</summary> Regarding rust-lang#141301 (comment) (`#[target_feature(enable = …)]` on inlined cross-crate re-exports), it has the same underlying cause (namely, we neither encode `target_feature` nor `AttributeKind::TargetFeature` in the crate metadata). However, I didn't make that change because I first want to experiment with querying `TyCtxt::codegen_fn_attrs` in rustdoc instead which already works cross-crate (and also use to it for reconstructing `no_mangle`, `export_name`, `link_section` to avoid encoding these attributes unnecessarily (basically reverting rust-lang#144050) as suggested in rust-lang#144004 (comment)). </details> r? GuillaumeGomez
Fixes #141301.
Rambling about
target_featurewhich I didn't touch hereRegarding #141301 (comment) (
#[target_feature(enable = …)]on inlined cross-crate re-exports), it has the same underlying cause (namely, we neither encodetarget_featurenorAttributeKind::TargetFeaturein the crate metadata). However, I didn't make that change because I first want to experiment with queryingTyCtxt::codegen_fn_attrsin rustdoc instead which already works cross-crate (and also use to it for reconstructingno_mangle,export_name,link_sectionto avoid encoding these attributes unnecessarily (basically reverting #144050) as suggested in #144004 (comment)).r? GuillaumeGomez