We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3273d2f commit 03c710bCopy full SHA for 03c710b
src/librustdoc/config.rs
@@ -462,7 +462,7 @@ impl Options {
462
let no_run = matches.opt_present("no-run");
463
464
if !should_test && no_run {
465
- diag.struct_err("option --no-run should be used with --test").emit();
+ diag.err("the `--test` flag must be passed to enable `--no-run`");
466
return Err(1);
467
}
468
src/test/rustdoc-ui/no-run-flag-error.rs
@@ -1,5 +1,6 @@
1
// test the behavior of the --no-run flag without the --test flag
2
3
// compile-flags:-Z unstable-options --no-run --test-args=--test-threads=1
4
+// error-pattern: the `--test` flag must be passed
5
6
pub fn f() {}
src/test/rustdoc-ui/no-run-flag-error.stderr
@@ -1,2 +1,2 @@
-error: option --no-run should be used with --test
+error: the `--test` flag must be passed to enable `--no-run`
0 commit comments