@@ -30,7 +30,7 @@ use syntax::ast::Mutability;
30
30
use super :: {
31
31
Pointer , AllocId , Allocation , ConstValue , GlobalId ,
32
32
EvalResult , Scalar , EvalErrorKind , AllocType , PointerArithmetic ,
33
- Machine , MemoryAccess , AllocMap , MayLeak , ScalarMaybeUndef , ErrorHandled ,
33
+ Machine , AllocMap , MayLeak , ScalarMaybeUndef , ErrorHandled ,
34
34
} ;
35
35
36
36
#[ 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> {
644
644
}
645
645
646
646
let alloc = self . get ( ptr. alloc_id ) ?;
647
- M :: memory_accessed ( alloc, ptr, size, MemoryAccess :: Read ) ?;
647
+ M :: memory_read ( alloc, ptr, size) ?;
648
648
649
649
assert_eq ! ( ptr. offset. bytes( ) as usize as u64 , ptr. offset. bytes( ) ) ;
650
650
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> {
690
690
self . clear_relocations ( ptr, size) ?;
691
691
692
692
let alloc = self . get_mut ( ptr. alloc_id ) ?;
693
- M :: memory_accessed ( alloc, ptr, size, MemoryAccess :: Write ) ?;
693
+ M :: memory_written ( alloc, ptr, size) ?;
694
694
695
695
assert_eq ! ( ptr. offset. bytes( ) as usize as u64 , ptr. offset. bytes( ) ) ;
696
696
assert_eq ! ( size. bytes( ) as usize as u64 , size. bytes( ) ) ;
0 commit comments