File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ fn parse_cargo_miri_args(
422
422
show_error ( format ! ( "\" --bin\" takes one argument." ) ) ;
423
423
}
424
424
}
425
- arg if arg. starts_with ( "--bin=" ) => bin_targets. push ( ( & arg[ 6 ..] ) . to_string ( ) ) ,
425
+ arg if arg. starts_with ( "--bin=" ) => bin_targets. push ( ( & arg[ "--bin=" . len ( ) ..] ) . to_string ( ) ) ,
426
426
arg if arg == "--test" => {
427
427
if let Some ( test) = args. next ( ) {
428
428
if test == "--" {
@@ -434,7 +434,7 @@ fn parse_cargo_miri_args(
434
434
show_error ( format ! ( "\" --test\" takes one argument." ) ) ;
435
435
}
436
436
}
437
- arg if arg. starts_with ( "--test=" ) => test_targets. push ( ( & arg[ 7 ..] ) . to_string ( ) ) ,
437
+ arg if arg. starts_with ( "--test=" ) => test_targets. push ( ( & arg[ "--test=" . len ( ) ..] ) . to_string ( ) ) ,
438
438
other => additional_args. push ( other) ,
439
439
}
440
440
}
@@ -466,6 +466,7 @@ fn in_cargo_miri() {
466
466
return ;
467
467
}
468
468
469
+ // FIXME: this accepts --test, --lib, and multiple --bin for `cargo miri run`.
469
470
let ( target_filters, cargo_args, miri_args) =
470
471
parse_cargo_miri_args ( std:: env:: args ( ) . skip ( skip) ) ;
471
472
You can’t perform that action at this time.
0 commit comments