We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6c1aa commit 90acda1Copy full SHA for 90acda1
compiler/rustc_const_eval/src/const_eval/eval_queries.rs
@@ -381,10 +381,7 @@ pub fn eval_in_interpreter<'mir, 'tcx>(
381
Ok(mplace) => {
382
// Since evaluation had no errors, validate the resulting constant.
383
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();
386
let res = const_validate_mplace(&ecx, &mplace, cid);
387
- ecx.machine.static_root_ids = static_root_ids;
388
389
let alloc_id = mplace.ptr().provenance.unwrap().alloc_id();
390
0 commit comments