@@ -34,7 +34,7 @@ Examples:
34
34
"# ;
35
35
36
36
fn show_help ( ) {
37
- println ! ( "{}" , CARGO_MIRI_HELP ) ;
37
+ println ! ( "{CARGO_MIRI_HELP}" ) ;
38
38
}
39
39
40
40
fn show_version ( ) {
@@ -52,7 +52,7 @@ fn forward_patched_extern_arg(args: &mut impl Iterator<Item = String>, cmd: &mut
52
52
let path = args. next ( ) . expect ( "`--extern` should be followed by a filename" ) ;
53
53
if let Some ( lib) = path. strip_suffix ( ".rlib" ) {
54
54
// If this is an rlib, make it an rmeta.
55
- cmd. arg ( format ! ( "{}.rmeta" , lib ) ) ;
55
+ cmd. arg ( format ! ( "{lib }.rmeta" ) ) ;
56
56
} else {
57
57
// Some other extern file (e.g. a `.so`). Forward unchanged.
58
58
cmd. arg ( path) ;
@@ -336,7 +336,7 @@ pub fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
336
336
"[cargo-miri rustc inside rustdoc] captured input:\n {}" ,
337
337
std:: str :: from_utf8( & env. stdin) . unwrap( )
338
338
) ;
339
- eprintln ! ( "[cargo-miri rustc inside rustdoc] going to run:\n {:?}" , cmd ) ;
339
+ eprintln ! ( "[cargo-miri rustc inside rustdoc] going to run:\n {cmd :?}" ) ;
340
340
}
341
341
342
342
exec_with_pipe ( cmd, & env. stdin , format ! ( "{}.stdin" , out_filename( "" , "" ) . display( ) ) ) ;
@@ -374,7 +374,7 @@ pub fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
374
374
val. push ( "metadata" ) ;
375
375
}
376
376
}
377
- cmd. arg ( format ! ( "{}={}" , emit_flag , val. join( "," ) ) ) ;
377
+ cmd. arg ( format ! ( "{emit_flag }={}" , val. join( "," ) ) ) ;
378
378
} else if arg == "--extern" {
379
379
// Patch `--extern` filenames, since Cargo sometimes passes stub `.rlib` files:
380
380
// https://github.com/rust-lang/miri/issues/1705
@@ -535,7 +535,7 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
535
535
// Run it.
536
536
debug_cmd ( "[cargo-miri runner]" , verbose, & cmd) ;
537
537
match phase {
538
- RunnerPhase :: Rustdoc => exec_with_pipe ( cmd, & info. stdin , format ! ( "{}.stdin" , binary ) ) ,
538
+ RunnerPhase :: Rustdoc => exec_with_pipe ( cmd, & info. stdin , format ! ( "{binary }.stdin" ) ) ,
539
539
RunnerPhase :: Cargo => exec ( cmd) ,
540
540
}
541
541
}
0 commit comments