diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-02-24 20:02:44 +0800 |
|---|---|---|
| committer | Jieyou Xu <jieyouxu@outlook.com> | 2025-03-07 19:08:11 +0800 |
| commit | 224f287f3226a89eff12ff3cbf0ca4e64c96d351 (patch) | |
| tree | 3503561011dcc0fb2801dfdbca12ae60b5b7ba56 | |
| parent | d47e5a371bb3a4353587e95bf4ee271a273d1326 (diff) | |
| download | rust-224f287f3226a89eff12ff3cbf0ca4e64c96d351.tar.gz rust-224f287f3226a89eff12ff3cbf0ca4e64c96d351.zip | |
Fix `broken-pipe-no-ice` to not depend on unstable `anonymous_pipe` feature
| -rw-r--r-- | tests/run-make/broken-pipe-no-ice/rmake.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/run-make/broken-pipe-no-ice/rmake.rs b/tests/run-make/broken-pipe-no-ice/rmake.rs index 54d13b62f4a..3e54b576fd4 100644 --- a/tests/run-make/broken-pipe-no-ice/rmake.rs +++ b/tests/run-make/broken-pipe-no-ice/rmake.rs @@ -11,12 +11,12 @@ // Internal Compiler Error strangely, but it doesn't even go through normal diagnostic infra. Very // strange. -#![feature(anonymous_pipe)] - use std::io::Read; use std::process::{Command, Stdio}; -use run_make_support::env_var; +// FIXME(#137532): replace `os_pipe` dependency with std `anonymous_pipe` once that stabilizes and +// reaches beta. +use run_make_support::{env_var, os_pipe}; #[derive(Debug, PartialEq)] enum Binary { @@ -25,7 +25,7 @@ enum Binary { } fn check_broken_pipe_handled_gracefully(bin: Binary, mut cmd: Command) { - let (reader, writer) = std::io::pipe().unwrap(); + let (reader, writer) = os_pipe::pipe().unwrap(); drop(reader); // close read-end cmd.stdout(writer).stderr(Stdio::piped()); |
