Skip to content

Commit 4b45bb9

Browse files
prconradPatrick Conrad
authored and
Patrick Conrad
committed
Doctest persist full binaries when persisting
fix: #88110
1 parent af14075 commit 4b45bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/doctest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ fn run_test(
361361
for debugging_option_str in &options.debugging_opts_strs {
362362
compiler.arg("-Z").arg(&debugging_option_str);
363363
}
364-
if no_run && !compile_fail {
364+
if no_run && !compile_fail && options.persist_doctests.is_none() {
365365
compiler.arg("--emit=metadata");
366366
}
367367
compiler.arg("--target").arg(match target {

0 commit comments

Comments
 (0)