Skip to content

Commit 081d65f

Browse files
authored
Rollup merge of #93134 - tlyu:delete-stdin-split, r=Amanieu
delete `Stdin::split` forwarder Part of #87096. Delete the `Stdin::split` forwarder because it's seen as too niche to expose at this level. `@rustbot` label T-libs-api A-io
2 parents 9474c74 + fdf930c commit 081d65f

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

library/std/src/io/stdio.rs

+1-24
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::io::prelude::*;
77

88
use crate::cell::{Cell, RefCell};
99
use crate::fmt;
10-
use crate::io::{self, BufReader, IoSlice, IoSliceMut, LineWriter, Lines, Split};
10+
use crate::io::{self, BufReader, IoSlice, IoSliceMut, LineWriter, Lines};
1111
use crate::lazy::SyncOnceCell;
1212
use crate::pin::Pin;
1313
use 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

Comments
 (0)