@@ -12,12 +12,12 @@ use std::mem;
12
12
13
13
use rustc_data_structures:: fx:: FxHashSet ;
14
14
use rustc_middle:: mir:: { Mutability , RetagKind } ;
15
- use rustc_middle:: ty:: { self , layout:: HasParamEnv , Ty } ;
15
+ use rustc_middle:: ty:: { self , Ty , layout:: HasParamEnv } ;
16
16
use rustc_target:: abi:: { Abi , Size } ;
17
17
18
18
use crate :: borrow_tracker:: {
19
- stacked_borrows:: diagnostics:: { AllocHistory , DiagnosticCx , DiagnosticCxBuilder } ,
20
19
GlobalStateInner , ProtectorKind ,
20
+ stacked_borrows:: diagnostics:: { AllocHistory , DiagnosticCx , DiagnosticCxBuilder } ,
21
21
} ;
22
22
use crate :: concurrency:: data_race:: { NaReadType , NaWriteType } ;
23
23
use crate :: * ;
@@ -913,11 +913,10 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
913
913
new_perm : NewPermission ,
914
914
) -> InterpResult < ' tcx > {
915
915
let val = self . ecx . read_immediate ( & self . ecx . place_to_op ( place) ?) ?;
916
- let val = self . ecx . sb_retag_reference (
917
- & val,
918
- new_perm,
919
- RetagInfo { cause : self . retag_cause , in_field : self . in_field } ,
920
- ) ?;
916
+ let val = self . ecx . sb_retag_reference ( & val, new_perm, RetagInfo {
917
+ cause : self . retag_cause ,
918
+ in_field : self . in_field ,
919
+ } ) ?;
921
920
self . ecx . write_immediate ( * val, place) ?;
922
921
Ok ( ( ) )
923
922
}
@@ -1003,11 +1002,10 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
1003
1002
access : Some ( AccessKind :: Write ) ,
1004
1003
protector : Some ( ProtectorKind :: StrongProtector ) ,
1005
1004
} ;
1006
- this. sb_retag_place (
1007
- place,
1008
- new_perm,
1009
- RetagInfo { cause : RetagCause :: InPlaceFnPassing , in_field : false } ,
1010
- )
1005
+ this. sb_retag_place ( place, new_perm, RetagInfo {
1006
+ cause : RetagCause :: InPlaceFnPassing ,
1007
+ in_field : false ,
1008
+ } )
1011
1009
}
1012
1010
1013
1011
/// Mark the given tag as exposed. It was found on a pointer with the given AllocId.
0 commit comments