replace version placeholder
This commit is contained in:
@@ -683,7 +683,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
pub fn extract_if<F>(&mut self, pred: F) -> ExtractIf<'_, K, V, F>
|
||||
where
|
||||
F: FnMut(&K, &mut V) -> bool,
|
||||
@@ -1677,7 +1677,7 @@ impl<'a, K, V> Drain<'a, K, V> {
|
||||
/// ]);
|
||||
/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
|
||||
/// ```
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
#[must_use = "iterators are lazy and do nothing unless consumed"]
|
||||
pub struct ExtractIf<'a, K, V, F>
|
||||
where
|
||||
@@ -2294,7 +2294,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
impl<K, V, F> Iterator for ExtractIf<'_, K, V, F>
|
||||
where
|
||||
F: FnMut(&K, &mut V) -> bool,
|
||||
@@ -2311,10 +2311,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
impl<K, V, F> FusedIterator for ExtractIf<'_, K, V, F> where F: FnMut(&K, &mut V) -> bool {}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
impl<'a, K, V, F> fmt::Debug for ExtractIf<'a, K, V, F>
|
||||
where
|
||||
F: FnMut(&K, &mut V) -> bool,
|
||||
|
||||
@@ -308,7 +308,7 @@ impl<T, S> HashSet<T, S> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
pub fn extract_if<F>(&mut self, pred: F) -> ExtractIf<'_, T, F>
|
||||
where
|
||||
F: FnMut(&T) -> bool,
|
||||
@@ -1390,7 +1390,7 @@ pub struct Drain<'a, K: 'a> {
|
||||
///
|
||||
/// let mut extract_ifed = a.extract_if(|v| v % 2 == 0);
|
||||
/// ```
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
pub struct ExtractIf<'a, K, F>
|
||||
where
|
||||
F: FnMut(&K) -> bool,
|
||||
@@ -1673,7 +1673,7 @@ impl<K: fmt::Debug> fmt::Debug for Drain<'_, K> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
impl<K, F> Iterator for ExtractIf<'_, K, F>
|
||||
where
|
||||
F: FnMut(&K) -> bool,
|
||||
@@ -1690,10 +1690,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
impl<K, F> FusedIterator for ExtractIf<'_, K, F> where F: FnMut(&K) -> bool {}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.87.0")]
|
||||
impl<'a, K, F> fmt::Debug for ExtractIf<'a, K, F>
|
||||
where
|
||||
F: FnMut(&K) -> bool,
|
||||
|
||||
@@ -201,5 +201,5 @@ pub use self::c_str::{CStr, CString};
|
||||
#[doc(inline)]
|
||||
pub use self::os_str::{OsStr, OsString};
|
||||
|
||||
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_display", since = "1.87.0")]
|
||||
pub mod os_str;
|
||||
|
||||
@@ -1255,7 +1255,7 @@ impl OsStr {
|
||||
/// let s = OsStr::new("Hello, world!");
|
||||
/// println!("{}", s.display());
|
||||
/// ```
|
||||
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_display", since = "1.87.0")]
|
||||
#[must_use = "this does not display the `OsStr`; \
|
||||
it returns an object that can be displayed"]
|
||||
#[inline]
|
||||
@@ -1612,19 +1612,19 @@ impl fmt::Debug for OsStr {
|
||||
///
|
||||
/// [`Display`]: fmt::Display
|
||||
/// [`format!`]: crate::format
|
||||
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_display", since = "1.87.0")]
|
||||
pub struct Display<'a> {
|
||||
os_str: &'a OsStr,
|
||||
}
|
||||
|
||||
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_display", since = "1.87.0")]
|
||||
impl fmt::Debug for Display<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt::Debug::fmt(&self.os_str, f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "os_str_display", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_display", since = "1.87.0")]
|
||||
impl fmt::Display for Display<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt::Display::fmt(&self.os_str.inner, f)
|
||||
|
||||
@@ -374,7 +374,7 @@ pub enum ErrorKind {
|
||||
/// A filename was invalid.
|
||||
///
|
||||
/// This error can also occur if a length limit for a name was exceeded.
|
||||
#[stable(feature = "io_error_invalid_filename", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "io_error_invalid_filename", since = "1.87.0")]
|
||||
InvalidFilename,
|
||||
/// Program argument list too long.
|
||||
///
|
||||
|
||||
@@ -310,7 +310,7 @@ pub use self::error::RawOsError;
|
||||
pub use self::error::SimpleMessage;
|
||||
#[unstable(feature = "io_const_error", issue = "133448")]
|
||||
pub use self::error::const_error;
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
pub use self::pipe::{PipeReader, PipeWriter, pipe};
|
||||
#[stable(feature = "is_terminal", since = "1.70.0")]
|
||||
pub use self::stdio::IsTerminal;
|
||||
|
||||
@@ -67,19 +67,19 @@ use crate::sys_common::{FromInner, IntoInner};
|
||||
/// ```
|
||||
/// [changes]: io#platform-specific-behavior
|
||||
/// [man page]: https://man7.org/linux/man-pages/man7/pipe.7.html
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[inline]
|
||||
pub fn pipe() -> io::Result<(PipeReader, PipeWriter)> {
|
||||
pipe_inner().map(|(reader, writer)| (PipeReader(reader), PipeWriter(writer)))
|
||||
}
|
||||
|
||||
/// Read end of an anonymous pipe.
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[derive(Debug)]
|
||||
pub struct PipeReader(pub(crate) AnonPipe);
|
||||
|
||||
/// Write end of an anonymous pipe.
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[derive(Debug)]
|
||||
pub struct PipeWriter(pub(crate) AnonPipe);
|
||||
|
||||
@@ -160,7 +160,7 @@ impl PipeReader {
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
pub fn try_clone(&self) -> io::Result<Self> {
|
||||
self.0.try_clone().map(Self)
|
||||
}
|
||||
@@ -199,13 +199,13 @@ impl PipeWriter {
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
pub fn try_clone(&self) -> io::Result<Self> {
|
||||
self.0.try_clone().map(Self)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl io::Read for &PipeReader {
|
||||
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
||||
self.0.read(buf)
|
||||
@@ -225,7 +225,7 @@ impl io::Read for &PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl io::Read for PipeReader {
|
||||
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
|
||||
self.0.read(buf)
|
||||
@@ -245,7 +245,7 @@ impl io::Read for PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl io::Write for &PipeWriter {
|
||||
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
||||
self.0.write(buf)
|
||||
@@ -263,7 +263,7 @@ impl io::Write for &PipeWriter {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl io::Write for PipeWriter {
|
||||
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
||||
self.0.write(buf)
|
||||
|
||||
@@ -505,7 +505,7 @@ impl<'a> AsFd for io::StderrLock<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl AsFd for io::PipeReader {
|
||||
fn as_fd(&self) -> BorrowedFd<'_> {
|
||||
@@ -513,7 +513,7 @@ impl AsFd for io::PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl From<io::PipeReader> for OwnedFd {
|
||||
fn from(pipe: io::PipeReader) -> Self {
|
||||
@@ -521,7 +521,7 @@ impl From<io::PipeReader> for OwnedFd {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl AsFd for io::PipeWriter {
|
||||
fn as_fd(&self) -> BorrowedFd<'_> {
|
||||
@@ -529,7 +529,7 @@ impl AsFd for io::PipeWriter {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl From<io::PipeWriter> for OwnedFd {
|
||||
fn from(pipe: io::PipeWriter) -> Self {
|
||||
@@ -537,7 +537,7 @@ impl From<io::PipeWriter> for OwnedFd {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl From<OwnedFd> for io::PipeReader {
|
||||
fn from(owned_fd: OwnedFd) -> Self {
|
||||
@@ -545,7 +545,7 @@ impl From<OwnedFd> for io::PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl From<OwnedFd> for io::PipeWriter {
|
||||
fn from(owned_fd: OwnedFd) -> Self {
|
||||
|
||||
@@ -285,7 +285,7 @@ impl<T: AsRawFd> AsRawFd for Box<T> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl AsRawFd for io::PipeReader {
|
||||
fn as_raw_fd(&self) -> RawFd {
|
||||
@@ -293,7 +293,7 @@ impl AsRawFd for io::PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl FromRawFd for io::PipeReader {
|
||||
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self {
|
||||
@@ -301,7 +301,7 @@ impl FromRawFd for io::PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl IntoRawFd for io::PipeReader {
|
||||
fn into_raw_fd(self) -> RawFd {
|
||||
@@ -309,7 +309,7 @@ impl IntoRawFd for io::PipeReader {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl AsRawFd for io::PipeWriter {
|
||||
fn as_raw_fd(&self) -> RawFd {
|
||||
@@ -317,7 +317,7 @@ impl AsRawFd for io::PipeWriter {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl FromRawFd for io::PipeWriter {
|
||||
unsafe fn from_raw_fd(raw_fd: RawFd) -> Self {
|
||||
@@ -325,7 +325,7 @@ impl FromRawFd for io::PipeWriter {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
#[cfg(not(target_os = "trusty"))]
|
||||
impl IntoRawFd for io::PipeWriter {
|
||||
fn into_raw_fd(self) -> RawFd {
|
||||
|
||||
@@ -661,42 +661,42 @@ impl<T> From<crate::thread::JoinHandle<T>> for OwnedHandle {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl AsHandle for io::PipeReader {
|
||||
fn as_handle(&self) -> BorrowedHandle<'_> {
|
||||
self.0.as_handle()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl From<io::PipeReader> for OwnedHandle {
|
||||
fn from(pipe: io::PipeReader) -> Self {
|
||||
pipe.into_inner().into_inner()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl AsHandle for io::PipeWriter {
|
||||
fn as_handle(&self) -> BorrowedHandle<'_> {
|
||||
self.0.as_handle()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl From<io::PipeWriter> for OwnedHandle {
|
||||
fn from(pipe: io::PipeWriter) -> Self {
|
||||
pipe.into_inner().into_inner()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl From<OwnedHandle> for io::PipeReader {
|
||||
fn from(owned_handle: OwnedHandle) -> Self {
|
||||
Self::from_inner(FromInner::from_inner(owned_handle))
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl From<OwnedHandle> for io::PipeWriter {
|
||||
fn from(owned_handle: OwnedHandle) -> Self {
|
||||
Self::from_inner(FromInner::from_inner(owned_handle))
|
||||
|
||||
@@ -311,42 +311,42 @@ impl IntoRawSocket for net::UdpSocket {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl AsRawHandle for io::PipeReader {
|
||||
fn as_raw_handle(&self) -> RawHandle {
|
||||
self.0.as_raw_handle()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl FromRawHandle for io::PipeReader {
|
||||
unsafe fn from_raw_handle(raw_handle: RawHandle) -> Self {
|
||||
unsafe { Self::from_inner(FromRawHandle::from_raw_handle(raw_handle)) }
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl IntoRawHandle for io::PipeReader {
|
||||
fn into_raw_handle(self) -> RawHandle {
|
||||
self.0.into_raw_handle()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl AsRawHandle for io::PipeWriter {
|
||||
fn as_raw_handle(&self) -> RawHandle {
|
||||
self.0.as_raw_handle()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl FromRawHandle for io::PipeWriter {
|
||||
unsafe fn from_raw_handle(raw_handle: RawHandle) -> Self {
|
||||
unsafe { Self::from_inner(FromRawHandle::from_raw_handle(raw_handle)) }
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl IntoRawHandle for io::PipeWriter {
|
||||
fn into_raw_handle(self) -> RawHandle {
|
||||
self.0.into_raw_handle()
|
||||
|
||||
@@ -1659,14 +1659,14 @@ impl From<io::Stderr> for Stdio {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl From<io::PipeWriter> for Stdio {
|
||||
fn from(pipe: io::PipeWriter) -> Self {
|
||||
Stdio::from_inner(pipe.into_inner().into())
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "anonymous_pipe", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "anonymous_pipe", since = "1.87.0")]
|
||||
impl From<io::PipeReader> for Stdio {
|
||||
fn from(pipe: io::PipeReader) -> Self {
|
||||
Stdio::from_inner(pipe.into_inner().into())
|
||||
|
||||
Reference in New Issue
Block a user