interp: pass TyCtxt to Machine methods that do not take InterpCx
This commit is contained in:
parent
634770c0a7
commit
fcdfc3e1c1
5 changed files with 15 additions and 7 deletions
|
@ -265,6 +265,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
|
|||
}
|
||||
|
||||
fn before_access_global(
|
||||
_tcx: TyCtxt<'tcx>,
|
||||
_machine: &Self,
|
||||
_alloc_id: AllocId,
|
||||
alloc: ConstAllocation<'tcx, Self::PointerTag, Self::AllocExtra>,
|
||||
|
|
|
@ -261,6 +261,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
|
|||
}
|
||||
|
||||
fn before_access_global(
|
||||
_tcx: TyCtxt<'tcx>,
|
||||
_machine: &Self,
|
||||
_alloc_id: AllocId,
|
||||
alloc: ConstAllocation<'tcx, Self::PointerTag, Self::AllocExtra>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue