Skip to content

Commit 90acda1

Browse files
committed
Fix accidental re-addition of removed code in a previous PR
1 parent 5a6c1aa commit 90acda1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_const_eval/src/const_eval/eval_queries.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,7 @@ pub fn eval_in_interpreter<'mir, 'tcx>(
381381
Ok(mplace) => {
382382
// Since evaluation had no errors, validate the resulting constant.
383383

384-
// Temporarily allow access to the static_root_ids for the purpose of validation.
385-
let static_root_ids = ecx.machine.static_root_ids.take();
386384
let res = const_validate_mplace(&ecx, &mplace, cid);
387-
ecx.machine.static_root_ids = static_root_ids;
388385

389386
let alloc_id = mplace.ptr().provenance.unwrap().alloc_id();
390387

0 commit comments

Comments
 (0)