Conversation
| Some(ecx.eval_operand(&mir::Operand::Move(mir::Place::Local(id)), None).unwrap()) | ||
|
|
||
| } else { | ||
| None // TODO Above doesn't work for non top frames |
| ) | ||
| } | ||
|
|
||
| // TODO Memory::allocations doesn't exist anymore |
There was a problem hiding this comment.
oops. yea, that should be trivial to reintroduce. Do you want to add it to your rustc PR? (Again, with a comment that priroda needs this)
alternatively (or just do it) you can do something super evil:
Implement AllocMap for a new ZST type that you create. Forward every method to a FxHashMap that you created in a lazy static. Now you have full access to the underlying memory by accessing the lazy static ;)
Ok, don't do that. A simple getter function should be ok to have in rustc. Remember to add a comment about priroda
There was a problem hiding this comment.
Added to my rustc PR
|
I'll merge and keep working on top of it |
|
I forgot about this PR :( |
|
The master branch is back in business. Not everything works though (you commented out a few things that I didn't look at yet) |
Will update when rust-lang/rust#55179 has landed.
I switched to the 2018 edition for
tryblocks.