fix failing build

This commit is contained in:
Aliénore Bouttefeux 2021-04-05 21:11:21 +02:00
parent a6bf81bbf7
commit 72f534aae1

View File

@ -846,13 +846,14 @@ fn add_test(&mut self, test: String, config: LangString, line: usize) {
test_type: testing::TestType::DocTest,
},
testfn: testing::DynTestFn(box move || {
let option_no_run = options.no_run;
let res = run_test(
&test,
&cratename,
line,
options,
config.should_panic,
config.no_run || options.no_run,
config.no_run || option_no_run,
config.test_harness,
runtool,
runtool_args,