suggestion from review move no run option in run_test call

This commit is contained in:
Aliénore Bouttefeux 2021-04-05 17:59:57 +02:00
parent 0f3efe25b9
commit a6bf81bbf7

View file

@ -291,7 +291,7 @@ fn run_test(
for debugging_option_str in &options.debugging_opts_strs {
compiler.arg("-Z").arg(&debugging_option_str);
}
if (no_run || options.no_run) && !compile_fail {
if no_run && !compile_fail {
compiler.arg("--emit=metadata");
}
compiler.arg("--target").arg(match target {
@ -361,7 +361,7 @@ fn run_test(
}
}
if no_run || options.no_run {
if no_run {
return Ok(());
}
@ -852,7 +852,7 @@ impl Tester for Collector {
line,
options,
config.should_panic,
config.no_run,
config.no_run || options.no_run,
config.test_harness,
runtool,
runtool_args,