Skip to content

Commit

Permalink
Doctest persist full binaries when persisting
Browse files Browse the repository at this point in the history
fix: #88110
  • Loading branch information
prconrad authored and Patrick Conrad committed Aug 23, 2021
1 parent af14075 commit 4b45bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/doctest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4b45bb9

Please sign in to comment.