Rollup merge of #95620 - RalfJung:memory-no-extras, r=oli-obk
interpret: remove MemoryExtra in favor of giving access to the Machine The Miri PR for this is upcoming. r? ``@oli-obk``
This commit is contained in:
commit
78f81f0d10
15 changed files with 201 additions and 253 deletions
|
@ -184,8 +184,6 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
|
|||
|
||||
type MemoryKind = !;
|
||||
|
||||
type MemoryExtra = ();
|
||||
|
||||
fn load_mir(
|
||||
_ecx: &InterpCx<'mir, 'tcx, Self>,
|
||||
_instance: ty::InstanceDef<'tcx>,
|
||||
|
@ -267,7 +265,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
|
|||
}
|
||||
|
||||
fn before_access_global(
|
||||
_memory_extra: &(),
|
||||
_machine: &Self,
|
||||
_alloc_id: AllocId,
|
||||
alloc: ConstAllocation<'tcx, Self::PointerTag, Self::AllocExtra>,
|
||||
_static_def_id: Option<DefId>,
|
||||
|
@ -377,7 +375,6 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
|
|||
span,
|
||||
param_env,
|
||||
ConstPropMachine::new(only_propagate_inside_block_locals, can_const_prop),
|
||||
(),
|
||||
);
|
||||
|
||||
let ret = ecx
|
||||
|
|
|
@ -180,8 +180,6 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
|
|||
|
||||
type MemoryKind = !;
|
||||
|
||||
type MemoryExtra = ();
|
||||
|
||||
fn load_mir(
|
||||
_ecx: &InterpCx<'mir, 'tcx, Self>,
|
||||
_instance: ty::InstanceDef<'tcx>,
|
||||
|
@ -263,7 +261,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
|
|||
}
|
||||
|
||||
fn before_access_global(
|
||||
_memory_extra: &(),
|
||||
_machine: &Self,
|
||||
_alloc_id: AllocId,
|
||||
alloc: ConstAllocation<'tcx, Self::PointerTag, Self::AllocExtra>,
|
||||
_static_def_id: Option<DefId>,
|
||||
|
@ -374,7 +372,6 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
|
|||
span,
|
||||
param_env,
|
||||
ConstPropMachine::new(only_propagate_inside_block_locals, can_const_prop),
|
||||
(),
|
||||
);
|
||||
|
||||
let ret = ecx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue