@@ -34,7 +34,7 @@ Examples:
3434"# ;
3535
3636fn show_help ( ) {
37- println ! ( "{}" , CARGO_MIRI_HELP ) ;
37+ println ! ( "{CARGO_MIRI_HELP}" ) ;
3838}
3939
4040fn show_version ( ) {
@@ -52,7 +52,7 @@ fn forward_patched_extern_arg(args: &mut impl Iterator<Item = String>, cmd: &mut
5252 let path = args. next ( ) . expect ( "`--extern` should be followed by a filename" ) ;
5353 if let Some ( lib) = path. strip_suffix ( ".rlib" ) {
5454 // If this is an rlib, make it an rmeta.
55- cmd. arg ( format ! ( "{}.rmeta" , lib ) ) ;
55+ cmd. arg ( format ! ( "{lib }.rmeta" ) ) ;
5656 } else {
5757 // Some other extern file (e.g. a `.so`). Forward unchanged.
5858 cmd. arg ( path) ;
@@ -336,7 +336,7 @@ pub fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
336336 "[cargo-miri rustc inside rustdoc] captured input:\n {}" ,
337337 std:: str :: from_utf8( & env. stdin) . unwrap( )
338338 ) ;
339- eprintln ! ( "[cargo-miri rustc inside rustdoc] going to run:\n {:?}" , cmd ) ;
339+ eprintln ! ( "[cargo-miri rustc inside rustdoc] going to run:\n {cmd :?}" ) ;
340340 }
341341
342342 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) {
374374 val. push ( "metadata" ) ;
375375 }
376376 }
377- cmd. arg ( format ! ( "{}={}" , emit_flag , val. join( "," ) ) ) ;
377+ cmd. arg ( format ! ( "{emit_flag }={}" , val. join( "," ) ) ) ;
378378 } else if arg == "--extern" {
379379 // Patch `--extern` filenames, since Cargo sometimes passes stub `.rlib` files:
380380 // 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
535535 // Run it.
536536 debug_cmd ( "[cargo-miri runner]" , verbose, & cmd) ;
537537 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" ) ) ,
539539 RunnerPhase :: Cargo => exec ( cmd) ,
540540 }
541541}
0 commit comments