-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Revert #103880 "Use non-ascribed type as field's type in mir" #105905
Conversation
@bors p=1 rollup=never r=me in 6-8 hours if no fix has been put up |
src/test/ui/mir/issue-105809.rs
Outdated
// Non-regression test ICE from issue #105809 and duplicates. | ||
|
||
// build-pass: the ICE is during codegen | ||
// compile-flags: --edition 2018 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add -Zmir-opt-level=1
here? It was reported in one of the issues that this only ICE'd with that option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can, but IIRC 1 is the default, and this test does ICE as is on master.
So I take it we'll land the revert and won't have time to do a fix ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking into it right now, but am not sure whether I can fix it in the next couple of hours. If I don't open a PR in the next two hours we can revert it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't worry about it too much, it's perfectly fine, we can land the revert to buy us time to look into it without pressure.
I've now added -Zmir-opt-level=1
to the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting somewhat closer to figuring out what is going wrong. Can you give me 30 more minutes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah but of course! #105881 and #105886 don't have MCVEs yet so hopefully these 3 issues all have the same underlying issue.
I've marked this PR as ready, and if you want it to land, either you or @jackh726 can tell bors that whenever you need. The time frame jack refers to here #105905 (comment) would be 2AM my time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We add an additional OpaqueCast
here because ty != pattern.ty
. This then later ICEs because we cannot get the layout for that type when projecting that in codegen. I don't understand why getting the layout fails though. Will try to work more on this in the next few days.
Thanks for opening the revert PR @lqd.
This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras |
✌️ @b-naber can now approve this pull request |
@bors r=jackh726 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (696563e): comparison URL. Overall result: ✅ improvements - no action needed@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.
|
This PR prepares a revert for #103880 to fix #105809, #105881, #105886 and others (like the duplicates of the first one), in case an actual fix can't get done today.
I've also added the MCVE from #105809. There is no MCVE for the #105881 and #105886 ICEs yet however, so there are no tests for them here, although we'll need one before relanding the original changes.
Were this PR to land, it would also reopen #96514 as it was fixed by the original PR.
Opening as draft to allow time for a possible fix.
r? @jackh726