@@ -7,7 +7,7 @@ use crate::io::prelude::*;
77
88use  crate :: cell:: { Cell ,  RefCell } ; 
99use  crate :: fmt; 
10- use  crate :: io:: { self ,  BufReader ,  IoSlice ,  IoSliceMut ,  LineWriter ,  Lines ,   Split } ; 
10+ use  crate :: io:: { self ,  BufReader ,  IoSlice ,  IoSliceMut ,  LineWriter ,  Lines } ; 
1111use  crate :: lazy:: SyncOnceCell ; 
1212use  crate :: pin:: Pin ; 
1313use  crate :: sync:: atomic:: { AtomicBool ,  Ordering } ; 
@@ -465,29 +465,6 @@ impl Stdin {
465465    pub  fn  lines ( self )  -> Lines < StdinLock < ' static > >  { 
466466        self . into_locked ( ) . lines ( ) 
467467    } 
468- 
469-     /// Consumes this handle and returns an iterator over input bytes, 
470-      /// split at the specified byte value. 
471-      /// 
472-      /// For detailed semantics of this method, see the documentation on 
473-      /// [`BufRead::split`]. 
474-      /// 
475-      /// # Examples 
476-      /// 
477-      /// ```no_run 
478-      /// #![feature(stdin_forwarders)] 
479-      /// use std::io; 
480-      /// 
481-      /// let splits = io::stdin().split(b'-'); 
482-      /// for split in splits { 
483-      ///     println!("got a chunk: {}", String::from_utf8_lossy(&split.unwrap())); 
484-      /// } 
485-      /// ``` 
486-      #[ must_use = "`self` will be dropped if the result is not used" ]  
487-     #[ unstable( feature = "stdin_forwarders" ,  issue = "87096" ) ]  
488-     pub  fn  split ( self ,  byte :  u8 )  -> Split < StdinLock < ' static > >  { 
489-         self . into_locked ( ) . split ( byte) 
490-     } 
491468} 
492469
493470#[ stable( feature = "std_debug" ,  since = "1.16.0" ) ]  
0 commit comments