Skip to content

Commit 72f534a

Browse files
committed
fix failing build
1 parent a6bf81b commit 72f534a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/doctest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,13 +846,14 @@ impl Tester for Collector {
846846
test_type: testing::TestType::DocTest,
847847
},
848848
testfn: testing::DynTestFn(box move || {
849+
let option_no_run = options.no_run;
849850
let res = run_test(
850851
&test,
851852
&cratename,
852853
line,
853854
options,
854855
config.should_panic,
855-
config.no_run || options.no_run,
856+
config.no_run || option_no_run,
856857
config.test_harness,
857858
runtool,
858859
runtool_args,

0 commit comments

Comments
 (0)