diff options
| author | Gabriel Bjørnager Jensen <gabriel@achernar.io> | 2025-02-06 11:52:13 +0100 |
|---|---|---|
| committer | Gabriel Bjørnager Jensen <gabriel@achernar.io> | 2025-02-06 11:54:25 +0100 |
| commit | 4500ed525620707cd5d01ae8ad84dfbcd84c996a (patch) | |
| tree | fb413ec793814e17b3d52005214ea897c9157e0f | |
| parent | 59588250ad973ce69bd15879314c9769e65f36b3 (diff) | |
| download | rust-4500ed525620707cd5d01ae8ad84dfbcd84c996a.tar.gz rust-4500ed525620707cd5d01ae8ad84dfbcd84c996a.zip | |
Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios;
| -rw-r--r-- | library/std/src/io/cursor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/cursor.rs b/library/std/src/io/cursor.rs index b2ffeb0f95d..606099c8bc6 100644 --- a/library/std/src/io/cursor.rs +++ b/library/std/src/io/cursor.rs @@ -153,7 +153,7 @@ impl<T> Cursor<T> { /// let reference = buff.get_mut(); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_mut_cursor", issue = "130801")] + #[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")] pub const fn get_mut(&mut self) -> &mut T { &mut self.inner } @@ -201,7 +201,7 @@ impl<T> Cursor<T> { /// assert_eq!(buff.position(), 4); /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_mut_cursor", issue = "130801")] + #[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")] pub const fn set_position(&mut self, pos: u64) { self.pos = pos; } |
