1
Fork 0

interp: pass TyCtxt to Machine methods that do not take InterpCx

This commit is contained in:
Ralf Jung 2022-04-05 13:31:51 -04:00
parent 634770c0a7
commit fcdfc3e1c1
5 changed files with 15 additions and 7 deletions

View file

@ -1,6 +1,6 @@
use rustc_hir::def::DefKind;
use rustc_middle::mir;
use rustc_middle::ty::{self, Ty};
use rustc_middle::ty::{self, Ty, TyCtxt};
use std::borrow::Borrow;
use std::collections::hash_map::Entry;
use std::hash::Hash;
@ -471,6 +471,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
}
fn before_access_global(
_tcx: TyCtxt<'tcx>,
machine: &Self,
alloc_id: AllocId,
alloc: ConstAllocation<'tcx>,