diff options
| author | Patrick Conrad <7929040+prconrad@users.noreply.github.com> | 2021-08-23 17:18:31 -0400 |
|---|---|---|
| committer | Patrick Conrad <patrick.conrad@cherishhealth.com> | 2021-08-23 17:42:15 -0400 |
| commit | 4b45bb92cbb33d17b7d2b86bb81bad6963e53b48 (patch) | |
| tree | 34b9c23d0444ea4ccfbf97e0c53ff142403e489a /src | |
| parent | af140757b4cb1a60d107c690720311ba8e06e7de (diff) | |
| download | rust-4b45bb92cbb33d17b7d2b86bb81bad6963e53b48.tar.gz rust-4b45bb92cbb33d17b7d2b86bb81bad6963e53b48.zip | |
Doctest persist full binaries when persisting
fix: #88110
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/doctest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
