@@ -581,7 +581,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
581
581
ptr : Pointer < Option < M :: Provenance > > ,
582
582
size : Size ,
583
583
align : Align ,
584
- ) -> InterpResult < ' tcx , Option < AllocRef < ' a , ' tcx , M :: Provenance , M :: AllocExtra , M :: Bytes > > > {
584
+ ) -> InterpResult < ' tcx , Option < AllocRef < ' a , ' tcx , M :: Provenance , M :: AllocExtra , M :: Bytes > > >
585
+ {
585
586
let ptr_and_alloc = self . check_and_deref_ptr (
586
587
ptr,
587
588
size,
@@ -653,7 +654,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
653
654
ptr : Pointer < Option < M :: Provenance > > ,
654
655
size : Size ,
655
656
align : Align ,
656
- ) -> InterpResult < ' tcx , Option < AllocRefMut < ' a , ' tcx , M :: Provenance , M :: AllocExtra , M :: Bytes > > > {
657
+ ) -> InterpResult < ' tcx , Option < AllocRefMut < ' a , ' tcx , M :: Provenance , M :: AllocExtra , M :: Bytes > > >
658
+ {
657
659
let parts = self . get_ptr_access ( ptr, size, align) ?;
658
660
if let Some ( ( alloc_id, offset, prov) ) = parts {
659
661
let tcx = * self . tcx ;
@@ -924,7 +926,9 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> std::fmt::Debug for DumpAllocs<'a,
924
926
}
925
927
926
928
/// Reading and writing.
927
- impl < ' tcx , ' a , Prov : Provenance , Extra , Bytes : AllocBytes > AllocRefMut < ' a , ' tcx , Prov , Extra , Bytes > {
929
+ impl < ' tcx , ' a , Prov : Provenance , Extra , Bytes : AllocBytes >
930
+ AllocRefMut < ' a , ' tcx , Prov , Extra , Bytes >
931
+ {
928
932
/// `range` is relative to this allocation reference, not the base of the allocation.
929
933
pub fn write_scalar ( & mut self , range : AllocRange , val : Scalar < Prov > ) -> InterpResult < ' tcx > {
930
934
let range = self . range . subrange ( range) ;
0 commit comments