@@ -86,12 +86,12 @@ impl Invalidation {
86
86
impl fmt:: Display for InvalidationCause {
87
87
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
88
88
match self {
89
- InvalidationCause :: Access ( kind) => write ! ( f, "{}" , kind ) ,
89
+ InvalidationCause :: Access ( kind) => write ! ( f, "{kind}" ) ,
90
90
InvalidationCause :: Retag ( perm, kind) =>
91
91
if * kind == RetagCause :: FnEntry {
92
- write ! ( f, "{:?} FnEntry retag" , perm )
92
+ write ! ( f, "{perm :?} FnEntry retag" )
93
93
} else {
94
- write ! ( f, "{:?} retag" , perm )
94
+ write ! ( f, "{perm :?} retag" )
95
95
} ,
96
96
}
97
97
}
@@ -339,7 +339,7 @@ impl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir
339
339
// this allocation.
340
340
if self . history . base . 0 . tag ( ) == tag {
341
341
Some ( (
342
- format ! ( "{:?} was created here, as the base tag for {:?}" , tag , self . history. id) ,
342
+ format ! ( "{tag :?} was created here, as the base tag for {:?}" , self . history. id) ,
343
343
self . history . base . 1 . data ( )
344
344
) )
345
345
} else {
@@ -381,7 +381,7 @@ impl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir
381
381
self . offset. bytes( ) ,
382
382
) ;
383
383
err_sb_ub (
384
- format ! ( "{}{}" , action , error_cause( stack, op. orig_tag) ) ,
384
+ format ! ( "{action }{}" , error_cause( stack, op. orig_tag) ) ,
385
385
Some ( operation_summary ( & op. cause . summary ( ) , self . history . id , op. range ) ) ,
386
386
op. orig_tag . and_then ( |orig_tag| self . get_logs_relevant_to ( orig_tag, None ) ) ,
387
387
)
@@ -401,7 +401,7 @@ impl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir
401
401
offset = self . offset. bytes( ) ,
402
402
) ;
403
403
err_sb_ub (
404
- format ! ( "{}{}" , action , error_cause( stack, op. tag) ) ,
404
+ format ! ( "{action }{}" , error_cause( stack, op. tag) ) ,
405
405
Some ( operation_summary ( "an access" , self . history . id , op. range ) ) ,
406
406
op. tag . and_then ( |tag| self . get_logs_relevant_to ( tag, None ) ) ,
407
407
)
0 commit comments