Skip to content

Commit d94d32e

Browse files
committed
enforce_validity became a function
1 parent a090edb commit d94d32e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for Evaluator<'tcx> {
239239
type MemoryMap = MonoHashMap<AllocId, (MemoryKind<MiriMemoryKind>, Allocation<()>)>;
240240

241241
const STATIC_KIND: Option<MiriMemoryKind> = Some(MiriMemoryKind::MutStatic);
242-
const ENFORCE_VALIDITY: bool = false; // this is still WIP
242+
243+
#[inline(always)]
244+
fn enforce_validity(_ecx: &EvalContext<'a, 'mir, 'tcx, Self>) -> bool {
245+
false // this is still WIP
246+
}
243247

244248
/// Returns Ok() when the function was handled, fail otherwise
245249
fn find_fn(

0 commit comments

Comments
 (0)