Repository navigation
rustdoc: Clean inlined assoc items in their own param-env - #165699
Conversation
|
rustbot has assigned @GuillaumeGomez. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| impl S { | ||
| pub fn f<const N: usize>(_: [u8; P::<N>]) {} | ||
|
|
||
| pub const C<const N: usize>: [u8; P::<N>] = [0; P::<N>]; |
There was a problem hiding this comment.
While not reported in the issue, the same ICE occurred in the Const/Type branch as well rather than Fn, so this test makes sure to test those as well.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
rustdoc: Clean inlined assoc items in their own param-env
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (84890b7): comparison URL. Overall result: ❌ regressions - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf 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 1.5%, secondary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 3.5%, secondary 6.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 483.422s -> 484.43s (0.21%) |
|
Perf regression isn't surprising and is acceptable anyway in this case since it fixes a gross correctness violation. We had a similar situation in the past where we didn't set up the correct paramenv for (inlined) free items. |
|
@fmease: Is the PR ready for merge then? ;) |
There was a problem hiding this comment.
Thanks!
Perf regression isn't surprising and is acceptable anyway in this case since it fixes a gross correctness violation.
We had a similar situation in the past where we didn't set up the correct paramenv for (inlined) free items.
The PR I alluded to: #120619 (perf report comment).
This comment has been minimized.
This comment has been minimized.
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 ac7bce9 (parent) -> 6c587fd (this PR) Test differencesShow 6 test diffsStage 1
Stage 2
Additionally, 4 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 6c587fd5a7f62ceb4fda4e19f0af26d2f9521ae6 --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 (6c587fd): comparison URL. Overall result: ❌ regressions - please read:Our 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 1.5%, secondary 0.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 4.1%, secondary 5.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 464.963s -> 464.835s (-0.03%) |
|
perf triage: Correctness fix, justified by #165699 (comment) |
When inlining associated items from another crate,
clean_middle_assoc_itemcleaned them in the param-env of their parent impl or trait. That param-env doesn't contain the item's own generic parameters, so normalizing a signature that mentions them could fail. In particular, normalizing a generic const item such as[u8; P::<N>], whereNis a const parameter of the associated item itself, made the new solver ICE because it couldn't find the type ofNin the param-env.Fixes #165186