@@ -61,8 +61,7 @@ fn all_read_accesses_commute() {
61
61
// ... and produce the same final result.
62
62
assert_eq ! (
63
63
loc12, loc21,
64
- "Read accesses {:?} followed by {:?} do not commute !" ,
65
- rel1, rel2
64
+ "Read accesses {rel1:?} followed by {rel2:?} do not commute !"
66
65
) ;
67
66
}
68
67
}
@@ -674,8 +673,8 @@ mod spurious_read {
674
673
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
675
674
let ( x, y) = self . retag_permissions ( ) ;
676
675
write ! ( f, "{}; " , self . xy_rel) ?;
677
- write ! ( f, "y: ({}); " , y , ) ?;
678
- write ! ( f, "retag x ({}); " , x ) ?;
676
+ write ! ( f, "y: ({y }); " ) ?;
677
+ write ! ( f, "retag x ({x }); " ) ?;
679
678
680
679
write ! ( f, "<arbitrary code>; <spurious read x>;" ) ?;
681
680
Ok ( ( ) )
@@ -730,17 +729,17 @@ mod spurious_read {
730
729
// protector.
731
730
final_source
732
731
. distinguishable :: < /*X*/ AllowRet , /*Y*/ AllowRet > ( & final_target)
733
- . then_some ( format ! ( "{}" , final_target ) )
732
+ . then_some ( format ! ( "{final_target}" ) )
734
733
} else {
735
734
Some ( format ! ( "UB" ) )
736
735
}
737
736
} ;
738
737
if let Some ( final_target) = distinguishable {
739
738
eprintln ! (
740
- "For pattern '{}', inserting a spurious read through x makes the final state '{}' instead of '{}' which is observable" ,
741
- pat , final_target , final_source
739
+ "For pattern '{pat }', inserting a spurious read through x makes the final state '{final_target }' \
740
+ instead of '{ final_source}' which is observable"
742
741
) ;
743
- eprintln ! ( " (arbitrary code instanciated with '{}')" , opaque ) ;
742
+ eprintln ! ( " (arbitrary code instanciated with '{opaque }')" ) ;
744
743
err += 1 ;
745
744
// We found an instanciation of the opaque code that makes this Pattern
746
745
// fail, we don't really need to check the rest.
0 commit comments