Rollup merge of #131267 - okaneco:bufread_skip_until, r=tgross35 · qinheping/verify-rust-std@bbe8bf7 (original) (raw)

Original file line number Diff line number Diff line change
@@ -2382,8 +2382,6 @@ pub trait BufRead: Read {
2382 2382 /// about Ferris from a binary string, skipping the fun fact:
2383 2383 ///
2384 2384 /// ```
2385 - /// #![feature(bufread_skip_until)]
2386 - ///
2387 2385 /// use std::io::{self, BufRead};
2388 2386 ///
2389 2387 /// let mut cursor = io::Cursor::new(b"Ferris\0Likes long walks on the beach\0Crustacean\0");
@@ -2407,7 +2405,7 @@ pub trait BufRead: Read {
2407 2405 /// assert_eq!(num_bytes, 11);
2408 2406 /// assert_eq!(animal, b"Crustacean\0");
2409 2407 /// ```
2410 - #[unstable(feature = "bufread_skip_until", issue = "111735")]
2408 + #[stable(feature = "bufread_skip_until", since = "CURRENT_RUSTC_VERSION")]
2411 2409 fn skip_until(&mut self, byte: u8) -> Result<usize> {
2412 2410 skip_until(self, byte)
2413 2411 }