@@ -481,7 +481,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
481481 place : & MPlaceTy < ' tcx , Provenance > ,
482482 ) -> InterpResult < ' tcx > {
483483 let this = self . eval_context_ref ( ) ;
484- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
484+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
485485 if let crate :: AllocExtra {
486486 weak_memory : Some ( alloc_buffers) ,
487487 data_race : Some ( alloc_clocks) ,
@@ -512,7 +512,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
512512 init : Scalar < Provenance > ,
513513 ) -> InterpResult < ' tcx > {
514514 let this = self . eval_context_mut ( ) ;
515- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
515+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
516516 if let (
517517 crate :: AllocExtra { weak_memory : Some ( alloc_buffers) , .. } ,
518518 crate :: MiriMachine { data_race : Some ( global) , threads, .. } ,
@@ -539,7 +539,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
539539 ) -> InterpResult < ' tcx , Scalar < Provenance > > {
540540 let this = self . eval_context_ref ( ) ;
541541 if let Some ( global) = & this. machine . data_race {
542- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
542+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
543543 if let Some ( alloc_buffers) = this. get_alloc_extra ( alloc_id) ?. weak_memory . as_ref ( ) {
544544 if atomic == AtomicReadOrd :: SeqCst {
545545 global. sc_read ( & this. machine . threads ) ;
@@ -577,7 +577,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
577577 init : Scalar < Provenance > ,
578578 ) -> InterpResult < ' tcx > {
579579 let this = self . eval_context_mut ( ) ;
580- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( dest. ptr ) ?;
580+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( dest. ptr ( ) ) ?;
581581 if let (
582582 crate :: AllocExtra { weak_memory : Some ( alloc_buffers) , .. } ,
583583 crate :: MiriMachine { data_race : Some ( global) , threads, .. } ,
@@ -627,7 +627,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
627627 global. sc_read ( & this. machine . threads ) ;
628628 }
629629 let size = place. layout . size ;
630- let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ) ?;
630+ let ( alloc_id, base_offset, ..) = this. ptr_get_alloc_id ( place. ptr ( ) ) ?;
631631 if let Some ( alloc_buffers) = this. get_alloc_extra ( alloc_id) ?. weak_memory . as_ref ( ) {
632632 let buffer = alloc_buffers
633633 . get_or_create_store_buffer ( alloc_range ( base_offset, size) , init) ?;
0 commit comments