Skip to content

Commit

Permalink
Consolidate wasi::process and unsupported::process
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Sep 15, 2020
1 parent cfb955d commit 25cca07
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 157 deletions.
4 changes: 0 additions & 4 deletions library/std/src/sys/unsupported/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ impl File {
pub fn set_permissions(&self, _perm: FilePermissions) -> io::Result<()> {
match self.0 {}
}

pub fn diverge(&self) -> ! {
match self.0 {}
}
}

impl DirBuilder {
Expand Down
4 changes: 2 additions & 2 deletions library/std/src/sys/unsupported/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl From<AnonPipe> for Stdio {
}

impl From<File> for Stdio {
fn from(file: File) -> Stdio {
file.diverge()
fn from(_file: File) -> Stdio {
panic!("unsupported")
}
}

Expand Down
1 change: 1 addition & 0 deletions library/std/src/sys/wasi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub mod ext;
pub mod path;
#[path = "../unsupported/pipe.rs"]
pub mod pipe;
#[path = "../unsupported/process.rs"]
pub mod process;
#[path = "../unsupported/rwlock.rs"]
pub mod rwlock;
Expand Down
151 changes: 0 additions & 151 deletions library/std/src/sys/wasi/process.rs

This file was deleted.

0 comments on commit 25cca07

Please sign in to comment.