about summary refs log tree commit diff
path: root/library/std/src/sys/process/unix/unsupported.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2025-03-27 14:20:25 +0100
committerjoboet <jonasboettiger@icloud.com>2025-04-28 11:13:50 +0200
commit5f145689b1c0a313ee737de296a57d1479c18cb5 (patch)
tree3e211a503c830d0c0d0a3470b55dab6b3ffafb63 /library/std/src/sys/process/unix/unsupported.rs
parent0134651fb81314870903e21b1bcbdd993d75b61a (diff)
downloadrust-5f145689b1c0a313ee737de296a57d1479c18cb5.tar.gz
rust-5f145689b1c0a313ee737de296a57d1479c18cb5.zip
std: get rid of `sys_common::process`
Move the public `CommandEnvs` into the `process` module (and make it a wrapper type for an internal iterator type) and everything else into `sys::process` as per #117276.
Diffstat (limited to 'library/std/src/sys/process/unix/unsupported.rs')
-rw-r--r--library/std/src/sys/process/unix/unsupported.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/sys/process/unix/unsupported.rs b/library/std/src/sys/process/unix/unsupported.rs
index 78d270923cf..e86561a5c5c 100644
--- a/library/std/src/sys/process/unix/unsupported.rs
+++ b/library/std/src/sys/process/unix/unsupported.rs
@@ -18,15 +18,15 @@ impl Command {
         unsupported()
     }
 
-    pub fn output(&mut self) -> io::Result<(ExitStatus, Vec<u8>, Vec<u8>)> {
-        unsupported()
-    }
-
     pub fn exec(&mut self, _default: Stdio) -> io::Error {
         unsupported_err()
     }
 }
 
+pub fn output(_: &mut Command) -> io::Result<(ExitStatus, Vec<u8>, Vec<u8>)> {
+    unsupported()
+}
+
 ////////////////////////////////////////////////////////////////////////////////
 // Processes
 ////////////////////////////////////////////////////////////////////////////////