Skip to content

Commit 49a490e

Browse files
committed
enable pipe tests in Miri
1 parent 68ffae4 commit 49a490e

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

library/std/src/io/pipe.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ use crate::sys::{FromInner, IntoInner, pipe as imp};
4040
/// # Example
4141
///
4242
/// ```no_run
43-
/// # #[cfg(miri)] fn main() {}
44-
/// # #[cfg(not(miri))]
4543
/// # fn main() -> std::io::Result<()> {
4644
/// use std::io::{Read, Write, pipe};
4745
/// use std::process::Command;
@@ -126,8 +124,6 @@ impl PipeReader {
126124
/// # Examples
127125
///
128126
/// ```no_run
129-
/// # #[cfg(miri)] fn main() {}
130-
/// # #[cfg(not(miri))]
131127
/// # fn main() -> std::io::Result<()> {
132128
/// use std::fs;
133129
/// use std::io::{pipe, Write};
@@ -185,8 +181,6 @@ impl PipeWriter {
185181
/// # Examples
186182
///
187183
/// ```no_run
188-
/// # #[cfg(miri)] fn main() {}
189-
/// # #[cfg(not(miri))]
190184
/// # fn main() -> std::io::Result<()> {
191185
/// use std::process::Command;
192186
/// use std::io::{pipe, Read};

library/std/src/io/pipe/tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use crate::io::{Read, Write, pipe};
22

33
#[test]
4-
#[cfg(all(any(unix, windows), not(miri)))]
54
fn pipe_creation_clone_and_rw() {
65
let (rx, tx) = pipe().unwrap();
76

0 commit comments

Comments
 (0)