Skip to content

Commit

Permalink
Rollup merge of rust-lang#82500 - CDirkx:hermit-pipe, r=joshtriplett
Browse files Browse the repository at this point in the history
Reuse `std::sys::unsupported::pipe` on `hermit`

Pipes are not supported on `hermit` and `hermit/pipe.rs` is identical to `unsupported/pipe.rs`. This PR reduces duplication between the two by doing the following on `hermit`:

```rust
#[path = "../unsupported/pipe.rs"]
pub mod pipe;
```
  • Loading branch information
Dylan-DPC authored Mar 19, 2021
2 parents 7c4bca9 + 2cbea9f commit 1a936e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys/hermit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub mod mutex;
pub mod net;
pub mod os;
pub mod path;
#[path = "../unsupported/pipe.rs"]
pub mod pipe;
#[path = "../unsupported/process.rs"]
pub mod process;
Expand Down
38 changes: 0 additions & 38 deletions library/std/src/sys/hermit/pipe.rs

This file was deleted.

0 comments on commit 1a936e6

Please sign in to comment.