Skip to content

Commit 08c7f97

Browse files
committed
correction based on review
1 parent b08b484 commit 08c7f97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/doctest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,14 +940,14 @@ impl Tester for Collector {
940940
let report_unused_externs = |uext| {
941941
unused_externs.lock().unwrap().push(uext);
942942
};
943-
let option_no_run = options.no_run;
943+
let no_run = config.no_run || options.no_run;
944944
let res = run_test(
945945
&test,
946946
&cratename,
947947
line,
948948
options,
949949
config.should_panic,
950-
config.no_run || option_no_run,
950+
no_run,
951951
config.test_harness,
952952
runtool,
953953
runtool_args,

0 commit comments

Comments
 (0)