@@ -30,7 +30,7 @@ use syntax::ast::Mutability;
3030use super :: {
3131 Pointer , AllocId , Allocation , ConstValue , GlobalId ,
3232 EvalResult , Scalar , EvalErrorKind , AllocType , PointerArithmetic ,
33- Machine , MemoryAccess , AllocMap , MayLeak , ScalarMaybeUndef , ErrorHandled ,
33+ Machine , AllocMap , MayLeak , ScalarMaybeUndef , ErrorHandled ,
3434} ;
3535
3636#[ derive( Debug , PartialEq , Eq , Copy , Clone , Hash ) ]
@@ -644,7 +644,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
644644 }
645645
646646 let alloc = self . get ( ptr. alloc_id ) ?;
647- M :: memory_accessed ( alloc, ptr, size, MemoryAccess :: Read ) ?;
647+ M :: memory_read ( alloc, ptr, size) ?;
648648
649649 assert_eq ! ( ptr. offset. bytes( ) as usize as u64 , ptr. offset. bytes( ) ) ;
650650 assert_eq ! ( size. bytes( ) as usize as u64 , size. bytes( ) ) ;
@@ -690,7 +690,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
690690 self . clear_relocations ( ptr, size) ?;
691691
692692 let alloc = self . get_mut ( ptr. alloc_id ) ?;
693- M :: memory_accessed ( alloc, ptr, size, MemoryAccess :: Write ) ?;
693+ M :: memory_written ( alloc, ptr, size) ?;
694694
695695 assert_eq ! ( ptr. offset. bytes( ) as usize as u64 , ptr. offset. bytes( ) ) ;
696696 assert_eq ! ( size. bytes( ) as usize as u64 , size. bytes( ) ) ;
0 commit comments