Fix accidental re-addition of removed code in a previous PR
This commit is contained in:
parent
cb580ff677
commit
71f1943cbf
1 changed files with 0 additions and 3 deletions
|
@ -381,10 +381,7 @@ pub fn eval_in_interpreter<'mir, 'tcx>(
|
||||||
Ok(mplace) => {
|
Ok(mplace) => {
|
||||||
// Since evaluation had no errors, validate the resulting constant.
|
// Since evaluation had no errors, validate the resulting constant.
|
||||||
|
|
||||||
// Temporarily allow access to the static_root_ids for the purpose of validation.
|
|
||||||
let static_root_ids = ecx.machine.static_root_ids.take();
|
|
||||||
let res = const_validate_mplace(&ecx, &mplace, cid);
|
let res = const_validate_mplace(&ecx, &mplace, cid);
|
||||||
ecx.machine.static_root_ids = static_root_ids;
|
|
||||||
|
|
||||||
let alloc_id = mplace.ptr().provenance.unwrap().alloc_id();
|
let alloc_id = mplace.ptr().provenance.unwrap().alloc_id();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue