about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-02-24 20:02:44 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-03-07 19:08:11 +0800
commit224f287f3226a89eff12ff3cbf0ca4e64c96d351 (patch)
tree3503561011dcc0fb2801dfdbca12ae60b5b7ba56
parentd47e5a371bb3a4353587e95bf4ee271a273d1326 (diff)
downloadrust-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.rs8
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());