@@ -535,7 +535,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
535535 ) -> InterpResult < ' tcx > {
536536 let this = self . eval_context_mut ( ) ;
537537 this. validate_overlapping_atomic ( dest) ?;
538- this. allow_data_races_mut ( move |this| this. write_scalar ( val, & ( * dest) . into ( ) ) ) ?;
538+ this. allow_data_races_mut ( move |this| this. write_scalar ( val, & dest. into ( ) ) ) ?;
539539 this. validate_atomic_store ( dest, atomic) ?;
540540 // FIXME: it's not possible to get the value before write_scalar. A read_scalar will cause
541541 // side effects from a read the program did not perform. So we have to initialise
@@ -562,7 +562,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
562562 // Atomics wrap around on overflow.
563563 let val = this. binary_op ( op, & old, rhs) ?;
564564 let val = if neg { this. unary_op ( mir:: UnOp :: Not , & val) ? } else { val } ;
565- this. allow_data_races_mut ( |this| this. write_immediate ( * val, & ( * place) . into ( ) ) ) ?;
565+ this. allow_data_races_mut ( |this| this. write_immediate ( * val, & place. into ( ) ) ) ?;
566566
567567 this. validate_atomic_rmw ( place, atomic) ?;
568568
@@ -587,7 +587,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
587587
588588 this. validate_overlapping_atomic ( place) ?;
589589 let old = this. allow_data_races_mut ( |this| this. read_scalar ( & place. into ( ) ) ) ?;
590- this. allow_data_races_mut ( |this| this. write_scalar ( new, & ( * place) . into ( ) ) ) ?;
590+ this. allow_data_races_mut ( |this| this. write_scalar ( new, & place. into ( ) ) ) ?;
591591
592592 this. validate_atomic_rmw ( place, atomic) ?;
593593
@@ -616,7 +616,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
616616 if lt { & rhs } else { & old }
617617 } ;
618618
619- this. allow_data_races_mut ( |this| this. write_immediate ( * * new_val, & ( * place) . into ( ) ) ) ?;
619+ this. allow_data_races_mut ( |this| this. write_immediate ( * * new_val, & place. into ( ) ) ) ?;
620620
621621 this. validate_atomic_rmw ( place, atomic) ?;
622622
@@ -675,7 +675,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: MiriEvalContextExt<'mir, 'tcx> {
675675 // if successful, perform a full rw-atomic validation
676676 // otherwise treat this as an atomic load with the fail ordering.
677677 if cmpxchg_success {
678- this. allow_data_races_mut ( |this| this. write_scalar ( new, & ( * place) . into ( ) ) ) ?;
678+ this. allow_data_races_mut ( |this| this. write_scalar ( new, & place. into ( ) ) ) ?;
679679 this. validate_atomic_rmw ( place, success) ?;
680680 this. buffered_atomic_rmw ( new, place, success, old. to_scalar_or_uninit ( ) ) ?;
681681 } else {
0 commit comments