From 4b45bb92cbb33d17b7d2b86bb81bad6963e53b48 Mon Sep 17 00:00:00 2001 From: Patrick Conrad <7929040+prconrad@users.noreply.github.com> Date: Mon, 23 Aug 2021 17:18:31 -0400 Subject: [PATCH] Doctest persist full binaries when persisting fix: #88110 --- src/librustdoc/doctest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs index 083d82cb414..3b2457ef954 100644 --- a/src/librustdoc/doctest.rs +++ b/src/librustdoc/doctest.rs @@ -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 {