-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[const prop] Fix "alloc id without corresponding allocation" ICE #66677
[const prop] Fix "alloc id without corresponding allocation" ICE #66677
Conversation
This is necessary so that the `ComstPropMachine` can intern allocations.
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Do we have any tests actually exercising the creation of a new const alloc and const propping a pointer to it without triggering promotion? I haven't looked into it yet, but I now also worry about interior mutability behind references. |
I tried a couple different things and couldn't get that to happen. I think the blocker is this bit of code rust/src/librustc_mir/transform/const_prop.rs Line 618 in 388ffd9
|
@bors r+ |
📌 Commit 32e78ca has been approved by |
…-obk [const prop] Fix "alloc id without corresponding allocation" ICE r? @oli-obk
☀️ Test successful - checks-azure |
r? @oli-obk