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 {
462
462
let no_run = matches. opt_present ( "no-run" ) ;
463
463
464
464
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`" ) ;
466
466
return Err ( 1 ) ;
467
467
}
468
468
Original file line number Diff line number Diff line change 1
1
// test the behavior of the --no-run flag without the --test flag
2
2
3
3
// compile-flags:-Z unstable-options --no-run --test-args=--test-threads=1
4
+ // error-pattern: the `--test` flag must be passed
4
5
5
6
pub 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`
2
2
You can’t perform that action at this time.
0 commit comments