@@ -61,8 +61,7 @@ fn all_read_accesses_commute() {
6161 // ... and produce the same final result.
6262 assert_eq ! (
6363 loc12, loc21,
64- "Read accesses {:?} followed by {:?} do not commute !" ,
65- rel1, rel2
64+ "Read accesses {rel1:?} followed by {rel2:?} do not commute !"
6665 ) ;
6766 }
6867 }
@@ -674,8 +673,8 @@ mod spurious_read {
674673 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
675674 let ( x, y) = self . retag_permissions ( ) ;
676675 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 }); " ) ?;
679678
680679 write ! ( f, "<arbitrary code>; <spurious read x>;" ) ?;
681680 Ok ( ( ) )
@@ -730,17 +729,17 @@ mod spurious_read {
730729 // protector.
731730 final_source
732731 . distinguishable :: < /*X*/ AllowRet , /*Y*/ AllowRet > ( & final_target)
733- . then_some ( format ! ( "{}" , final_target ) )
732+ . then_some ( format ! ( "{final_target}" ) )
734733 } else {
735734 Some ( format ! ( "UB" ) )
736735 }
737736 } ;
738737 if let Some ( final_target) = distinguishable {
739738 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"
742741 ) ;
743- eprintln ! ( " (arbitrary code instanciated with '{}')" , opaque ) ;
742+ eprintln ! ( " (arbitrary code instanciated with '{opaque }')" ) ;
744743 err += 1 ;
745744 // We found an instanciation of the opaque code that makes this Pattern
746745 // fail, we don't really need to check the rest.
0 commit comments