Doctest persist full binaries when persisting

fix: #88110
This commit is contained in:
Patrick Conrad 2021-08-23 17:18:31 -04:00 committed by Patrick Conrad
parent af140757b4
commit 4b45bb92cb

View File

@ -361,7 +361,7 @@ fn run_test(
for debugging_option_str in &options.debugging_opts_strs {
compiler.arg("-Z").arg(&debugging_option_str);
}
if no_run && !compile_fail {
if no_run && !compile_fail && options.persist_doctests.is_none() {
compiler.arg("--emit=metadata");
}
compiler.arg("--target").arg(match target {