about summary refs log tree commit diff
path: root/library/std/src/io/stdio.rs
diff options
context:
space:
mode:
authorTaylor Yu <tlyu@mit.edu>2022-01-20 15:37:44 -0600
committerTaylor Yu <tlyu@mit.edu>2022-01-20 15:37:44 -0600
commitfdf930ce0193d0b3fe1ad711a07061ba29f8072a (patch)
treeaaf0b30422ce53c3a053a002820adab046310b45 /library/std/src/io/stdio.rs
parent74fbbefea8d13683cca5eee62e4740706cb3144a (diff)
downloadrust-fdf930ce0193d0b3fe1ad711a07061ba29f8072a.tar.gz
rust-fdf930ce0193d0b3fe1ad711a07061ba29f8072a.zip
delete `Stdin::split` forwarder
Diffstat (limited to 'library/std/src/io/stdio.rs')
-rw-r--r--library/std/src/io/stdio.rs25
1 files changed, 1 insertions, 24 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs
index c072f0cafe4..3d6de20d860 100644
--- a/library/std/src/io/stdio.rs
+++ b/library/std/src/io/stdio.rs
@@ -7,7 +7,7 @@ use crate::io::prelude::*;
 
 use crate::cell::{Cell, RefCell};
 use crate::fmt;
-use crate::io::{self, BufReader, IoSlice, IoSliceMut, LineWriter, Lines, Split};
+use crate::io::{self, BufReader, IoSlice, IoSliceMut, LineWriter, Lines};
 use crate::lazy::SyncOnceCell;
 use crate::pin::Pin;
 use crate::sync::atomic::{AtomicBool, Ordering};
@@ -465,29 +465,6 @@ impl Stdin {
     pub fn lines(self) -> Lines<StdinLock<'static>> {
         self.into_locked().lines()
     }
-
-    /// Consumes this handle and returns an iterator over input bytes,
-    /// split at the specified byte value.
-    ///
-    /// For detailed semantics of this method, see the documentation on
-    /// [`BufRead::split`].
-    ///
-    /// # Examples
-    ///
-    /// ```no_run
-    /// #![feature(stdin_forwarders)]
-    /// use std::io;
-    ///
-    /// let splits = io::stdin().split(b'-');
-    /// for split in splits {
-    ///     println!("got a chunk: {}", String::from_utf8_lossy(&split.unwrap()));
-    /// }
-    /// ```
-    #[must_use = "`self` will be dropped if the result is not used"]
-    #[unstable(feature = "stdin_forwarders", issue = "87096")]
-    pub fn split(self, byte: u8) -> Split<StdinLock<'static>> {
-        self.into_locked().split(byte)
-    }
 }
 
 #[stable(feature = "std_debug", since = "1.16.0")]