Fix accidental re-addition of removed code in a previous PR

This commit is contained in:
Oli Scherer 2024-03-13 09:20:16 +00:00
parent cb580ff677
commit 71f1943cbf

View File

@ -381,10 +381,7 @@ pub fn eval_in_interpreter<'mir, 'tcx>(
Ok(mplace) => {
// 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);
ecx.machine.static_root_ids = static_root_ids;
let alloc_id = mplace.ptr().provenance.unwrap().alloc_id();