extend allocbytes with associated type
This commit is contained in:
@@ -197,4 +197,9 @@ impl<'tcx> interpret::Machine<'tcx> for DummyMachine {
|
||||
) -> &'a mut Vec<interpret::Frame<'tcx, Self::Provenance, Self::FrameExtra>> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn get_default_alloc_params(
|
||||
&self,
|
||||
) -> <Self::Bytes as rustc_middle::mir::interpret::AllocBytes>::AllocParams {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -735,6 +735,9 @@ impl<'tcx> interpret::Machine<'tcx> for CompileTimeMachine<'tcx> {
|
||||
Cow::Owned(compute_range())
|
||||
}
|
||||
}
|
||||
|
||||
fn get_default_alloc_params(&self) -> <Self::Bytes as mir::interpret::AllocBytes>::AllocParams {
|
||||
}
|
||||
}
|
||||
|
||||
// Please do not add any code below the above `Machine` trait impl. I (oli-obk) plan more cleanups
|
||||
|
||||
Reference in New Issue
Block a user