We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3efe2 commit a6bf81bCopy full SHA for a6bf81b
src/librustdoc/doctest.rs
@@ -291,7 +291,7 @@ fn run_test(
291
for debugging_option_str in &options.debugging_opts_strs {
292
compiler.arg("-Z").arg(&debugging_option_str);
293
}
294
- if (no_run || options.no_run) && !compile_fail {
+ if no_run && !compile_fail {
295
compiler.arg("--emit=metadata");
296
297
compiler.arg("--target").arg(match target {
@@ -361,7 +361,7 @@ fn run_test(
361
362
363
364
- if no_run || options.no_run {
+ if no_run {
365
return Ok(());
366
367
@@ -852,7 +852,7 @@ impl Tester for Collector {
852
line,
853
options,
854
config.should_panic,
855
- config.no_run,
+ config.no_run || options.no_run,
856
config.test_harness,
857
runtool,
858
runtool_args,
0 commit comments