We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af14075 commit 4b45bb9Copy full SHA for 4b45bb9
src/librustdoc/doctest.rs
@@ -361,7 +361,7 @@ fn run_test(
361
for debugging_option_str in &options.debugging_opts_strs {
362
compiler.arg("-Z").arg(&debugging_option_str);
363
}
364
- if no_run && !compile_fail {
+ if no_run && !compile_fail && options.persist_doctests.is_none() {
365
compiler.arg("--emit=metadata");
366
367
compiler.arg("--target").arg(match target {
0 commit comments