@@ -28,7 +28,7 @@ use rustc_data_structures::fx::{FxHashSet, FxHashMap};
2828use syntax:: ast:: Mutability ;
2929
3030use super :: {
31- Pointer , AllocId , Allocation , ConstValue , GlobalId ,
31+ Pointer , AllocId , Allocation , ConstValue , GlobalId , AllocationExtra ,
3232 EvalResult , Scalar , EvalErrorKind , AllocType , PointerArithmetic ,
3333 Machine , AllocMap , MayLeak , ScalarMaybeUndef , ErrorHandled ,
3434} ;
@@ -637,7 +637,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
637637 }
638638
639639 let alloc = self . get ( ptr. alloc_id ) ?;
640- M :: memory_read ( alloc, ptr, size) ?;
640+ AllocationExtra :: memory_read ( & alloc. extra , ptr, size) ?;
641641
642642 assert_eq ! ( ptr. offset. bytes( ) as usize as u64 , ptr. offset. bytes( ) ) ;
643643 assert_eq ! ( size. bytes( ) as usize as u64 , size. bytes( ) ) ;
@@ -683,7 +683,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
683683 self . clear_relocations ( ptr, size) ?;
684684
685685 let alloc = self . get_mut ( ptr. alloc_id ) ?;
686- M :: memory_written ( alloc, ptr, size) ?;
686+ AllocationExtra :: memory_written ( & mut alloc. extra , ptr, size) ?;
687687
688688 assert_eq ! ( ptr. offset. bytes( ) as usize as u64 , ptr. offset. bytes( ) ) ;
689689 assert_eq ! ( size. bytes( ) as usize as u64 , size. bytes( ) ) ;
0 commit comments