File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ impl Options {
462462 let no_run = matches. opt_present ( "no-run" ) ;
463463
464464 if !should_test && no_run {
465- diag. struct_err ( "option --no-run should be used with --test" ) . emit ( ) ;
465+ diag. err ( "the `--test` flag must be passed to enable `--no-run`" ) ;
466466 return Err ( 1 ) ;
467467 }
468468
Original file line number Diff line number Diff line change 11// test the behavior of the --no-run flag without the --test flag
22
33// compile-flags:-Z unstable-options --no-run --test-args=--test-threads=1
4+ // error-pattern: the `--test` flag must be passed
45
56pub fn f ( ) { }
Original file line number Diff line number Diff line change 1- error: option --no-run should be used with --test
1+ error: the `--test` flag must be passed to enable `--no-run`
22
You can’t perform that action at this time.
0 commit comments