diff options
| author | AliƩnore Bouttefeux <alienore.bouttefeux@gmail.com> | 2021-04-06 17:51:25 +0200 |
|---|---|---|
| committer | AliƩnore Bouttefeux <alienore.bouttefeux@gmail.com> | 2021-04-06 17:51:25 +0200 |
| commit | 08c7f975263424cc1a56401c852689e84b239dfc (patch) | |
| tree | 36155f8d6cd272a339cc377f0edd1f63c3116bed | |
| parent | b08b4848c3653818b47fa8cc0a613455c8b4d255 (diff) | |
| download | rust-08c7f975263424cc1a56401c852689e84b239dfc.tar.gz rust-08c7f975263424cc1a56401c852689e84b239dfc.zip | |
correction based on review
| -rw-r--r-- | src/librustdoc/doctest.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index 3443eae0656..9dde5471a2d 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -940,14 +940,14 @@ impl Tester for Collector { let report_unused_externs = |uext| { unused_externs.lock().unwrap().push(uext); }; - let option_no_run = options.no_run; + let no_run = config.no_run || options.no_run; let res = run_test( &test, &cratename, line, options, config.should_panic, - config.no_run || option_no_run, + no_run, config.test_harness, runtool, runtool_args, |
