Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
box
in shadow memory test for reliable object count
When using stack-allocated objects, MIR is not actually introducing fresh objects in this loop. Us treating them as fresh objects is just an artifact of interpreting StorageLive as creating a fresh object. Using `box` will make sure we genuinely have independent objects.
- Loading branch information