-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Split transmute check from HIR typeck #145469
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
r? @nnethercote rustbot has assigned @nnethercote. Use |
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Split transmute check from HIR typeck
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (531f732): comparison URL. Overall result: ❌✅ regressions and improvements - 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.1%, secondary 6.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.7%, secondary 2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.6%, secondary -1.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 469.562s -> 470.22s (0.14%) |
Nothing wrong that I can see and some of the test outcomes are clearly better. Having said that I am very unfamiliar with this code and it's not an easy PR to review (awkward diffs) so my r+ has a heavy sprinkling of "I trust you know what you're doing". @bors r+ |
Scheduling: Prefer a rollup=never PR over rollup=iffy ones that aren't rolled up. @bors p=1 |
Split transmute check from HIR typeck This resolves a FIXME in the implementation of `check_transmute`. `check_transmute` needs to compute type layout, hence needing to see reveal opaques and all type aliases. Having this inside typeck causes a cycle. For instance: `tests/ui/impl-trait/transmute/in-defining-scope.rs`. This PR moves the transmute check outside of typeck, by putting the list of deferred transmute checks in typeck results.
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
f4137ad
to
0327e2b
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
@bors r=nnethercote |
☀️ 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 6545b05 (parent) -> 78b89eb (this PR) Test differencesShow 49 test diffsStage 2
Additionally, 47 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 78b89ebb6b20cf50370335e14c5357a4388ac760 --output-dir test-dashboard And 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 (78b89eb): 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 4.5%, secondary 7.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 467.563s -> 467.345s (-0.05%) |
perf triage: Are the regressions here justified? I see the PR was already a regression before merge (#145469 (comment)), but no other comment on that. The final regression is smaller and mostly affects a secondary stress test, but I'm asking to make sure it's not an oversight. |
This resolves a FIXME in the implementation of
check_transmute
.check_transmute
needs to compute type layout, hence needing to see reveal opaques and all type aliases.Having this inside typeck causes a cycle. For instance:
tests/ui/impl-trait/transmute/in-defining-scope.rs
.This PR moves the transmute check outside of typeck, by putting the list of deferred transmute checks in typeck results.