[const prop] Fix "alloc id without corresponding allocation" ICE#66677
[const prop] Fix "alloc id without corresponding allocation" ICE#66677bors merged 4 commits intorust-lang:masterfrom
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