Skip to content

Commit

Permalink
Unrolled build for rust-lang#131267
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#131267 - okaneco:bufread_skip_until, r=tgross35

Stabilize `BufRead::skip_until`

FCP completed rust-lang#111735 (comment)

Closes rust-lang#111735
  • Loading branch information
rust-timer authored Oct 5, 2024
2 parents 495f75a + e08002f commit c4bb2d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2382,8 +2382,6 @@ pub trait BufRead: Read {
/// about Ferris from a binary string, skipping the fun fact:
///
/// ```
/// #![feature(bufread_skip_until)]
///
/// use std::io::{self, BufRead};
///
/// let mut cursor = io::Cursor::new(b"Ferris\0Likes long walks on the beach\0Crustacean\0");
Expand All @@ -2407,7 +2405,7 @@ pub trait BufRead: Read {
/// assert_eq!(num_bytes, 11);
/// assert_eq!(animal, b"Crustacean\0");
/// ```
#[unstable(feature = "bufread_skip_until", issue = "111735")]
#[stable(feature = "bufread_skip_until", since = "CURRENT_RUSTC_VERSION")]
fn skip_until(&mut self, byte: u8) -> Result<usize> {
skip_until(self, byte)
}
Expand Down

0 comments on commit c4bb2d9

Please sign in to comment.