enforce_validity became a function
This commit is contained in:
parent
a090edbc03
commit
d94d32e937
@ -239,7 +239,11 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for Evaluator<'tcx> {
|
|||||||
type MemoryMap = MonoHashMap<AllocId, (MemoryKind<MiriMemoryKind>, Allocation<()>)>;
|
type MemoryMap = MonoHashMap<AllocId, (MemoryKind<MiriMemoryKind>, Allocation<()>)>;
|
||||||
|
|
||||||
const STATIC_KIND: Option<MiriMemoryKind> = Some(MiriMemoryKind::MutStatic);
|
const STATIC_KIND: Option<MiriMemoryKind> = Some(MiriMemoryKind::MutStatic);
|
||||||
const ENFORCE_VALIDITY: bool = false; // this is still WIP
|
|
||||||
|
#[inline(always)]
|
||||||
|
fn enforce_validity(_ecx: &EvalContext<'a, 'mir, 'tcx, Self>) -> bool {
|
||||||
|
false // this is still WIP
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns Ok() when the function was handled, fail otherwise
|
/// Returns Ok() when the function was handled, fail otherwise
|
||||||
fn find_fn(
|
fn find_fn(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user