Skip to content

Commit 25cca07

Browse files
committed
Consolidate wasi::process and unsupported::process
1 parent cfb955d commit 25cca07

File tree

4 files changed

+3
-157
lines changed

4 files changed

+3
-157
lines changed

library/std/src/sys/unsupported/fs.rs

-4
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,6 @@ impl File {
233233
pub fn set_permissions(&self, _perm: FilePermissions) -> io::Result<()> {
234234
match self.0 {}
235235
}
236-
237-
pub fn diverge(&self) -> ! {
238-
match self.0 {}
239-
}
240236
}
241237

242238
impl DirBuilder {

library/std/src/sys/unsupported/process.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ impl From<AnonPipe> for Stdio {
6565
}
6666

6767
impl From<File> for Stdio {
68-
fn from(file: File) -> Stdio {
69-
file.diverge()
68+
fn from(_file: File) -> Stdio {
69+
panic!("unsupported")
7070
}
7171
}
7272

library/std/src/sys/wasi/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub mod ext;
3838
pub mod path;
3939
#[path = "../unsupported/pipe.rs"]
4040
pub mod pipe;
41+
#[path = "../unsupported/process.rs"]
4142
pub mod process;
4243
#[path = "../unsupported/rwlock.rs"]
4344
pub mod rwlock;

library/std/src/sys/wasi/process.rs

-151
This file was deleted.

0 commit comments

Comments
 (0)