@@ -865,7 +865,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
865
865
let this = self . eval_context_mut ( ) ;
866
866
let new_perm = NewPermission :: from_ref_ty ( val. layout . ty , kind, this) ;
867
867
let cause = match kind {
868
- RetagKind :: TwoPhase { .. } => RetagCause :: TwoPhase ,
868
+ RetagKind :: TwoPhase => RetagCause :: TwoPhase ,
869
869
RetagKind :: FnEntry => unreachable ! ( ) ,
870
870
RetagKind :: Raw | RetagKind :: Default => RetagCause :: Normal ,
871
871
} ;
@@ -880,7 +880,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
880
880
let this = self . eval_context_mut ( ) ;
881
881
let retag_fields = this. machine . borrow_tracker . as_mut ( ) . unwrap ( ) . get_mut ( ) . retag_fields ;
882
882
let retag_cause = match kind {
883
- RetagKind :: TwoPhase { .. } => unreachable ! ( ) , // can only happen in `retag_ptr_value`
883
+ RetagKind :: TwoPhase => unreachable ! ( ) , // can only happen in `retag_ptr_value`
884
884
RetagKind :: FnEntry => RetagCause :: FnEntry ,
885
885
RetagKind :: Default | RetagKind :: Raw => RetagCause :: Normal ,
886
886
} ;
@@ -904,10 +904,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
904
904
new_perm : NewPermission ,
905
905
) -> InterpResult < ' tcx > {
906
906
let val = self . ecx . read_immediate ( & self . ecx . place_to_op ( place) ?) ?;
907
- let val = self . ecx . sb_retag_reference ( & val, new_perm, RetagInfo {
908
- cause : self . retag_cause ,
909
- in_field : self . in_field ,
910
- } ) ?;
907
+ let val = self . ecx . sb_retag_reference (
908
+ & val,
909
+ new_perm,
910
+ RetagInfo { cause : self . retag_cause , in_field : self . in_field } ,
911
+ ) ?;
911
912
self . ecx . write_immediate ( * val, place) ?;
912
913
interp_ok ( ( ) )
913
914
}
@@ -996,10 +997,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
996
997
access : Some ( AccessKind :: Write ) ,
997
998
protector : Some ( ProtectorKind :: StrongProtector ) ,
998
999
} ;
999
- this. sb_retag_place ( place, new_perm, RetagInfo {
1000
- cause : RetagCause :: InPlaceFnPassing ,
1001
- in_field : false ,
1002
- } )
1000
+ this. sb_retag_place (
1001
+ place,
1002
+ new_perm,
1003
+ RetagInfo { cause : RetagCause :: InPlaceFnPassing , in_field : false } ,
1004
+ )
1003
1005
}
1004
1006
1005
1007
/// Mark the given tag as exposed. It was found on a pointer with the given AllocId.
0 commit comments