diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-10-04 19:19:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-04 19:19:26 -0700 |
| commit | 3078b23bbf66966860c8a16fda8eb500f52fde73 (patch) | |
| tree | 335b33dc183df1b42d488528eaea32c2a3a004ba /library/std/src | |
| parent | f66aa600d93059e0a1bd7ee73f311ad8e1946cec (diff) | |
| parent | e08002f6d0bfcea06357137dd52ee2c163757154 (diff) | |
| download | rust-3078b23bbf66966860c8a16fda8eb500f52fde73.tar.gz rust-3078b23bbf66966860c8a16fda8eb500f52fde73.zip | |
Rollup merge of #131267 - okaneco:bufread_skip_until, r=tgross35
Stabilize `BufRead::skip_until` FCP completed https://github.com/rust-lang/rust/issues/111735#issuecomment-2393893069 Closes #111735
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index dd6458c38c6..8fedcb241d0 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -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"); @@ -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) } |
