Skip to content

Commit 11c3029

Browse files
committed
Play back stdin only when called from rustdoc
1 parent 46e9dbc commit 11c3029

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cargo-miri/bin.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,11 @@ fn phase_cargo_runner(binary: &Path, binary_args: env::Args) {
792792
eprintln!("[cargo-miri runner] {:?}", cmd);
793793
}
794794

795-
exec_with_pipe(cmd, &info.stdin)
795+
if std::env::var_os("MIRI_CALLED_FROM_RUSTDOC").is_some() {
796+
exec_with_pipe(cmd, &info.stdin)
797+
} else {
798+
exec(cmd)
799+
}
796800
}
797801

798802
fn phase_cargo_rustdoc(fst_arg: &str, mut args: env::Args) {

0 commit comments

Comments
 (0)