Skip to content

Commit 63e5e9e

Browse files
committed
change stability name
Signed-off-by: tison <[email protected]>
1 parent efb65e9 commit 63e5e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/cell/once.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl<T> OnceCell<T> {
189189
/// assert_eq!(value, &94);
190190
/// ```
191191
#[inline]
192-
#[stable(feature = "once_cell", since = "1.70.0")]
192+
#[unstable(feature = "once_cell_get_mut")]
193193
pub fn get_mut_or_init<F>(&mut self, f: F) -> &mut T
194194
where
195195
F: FnOnce() -> T,
@@ -267,7 +267,7 @@ impl<T> OnceCell<T> {
267267
/// *value.unwrap() += 2;
268268
/// assert_eq!(cell.get(), Some(&94))
269269
/// ```
270-
#[unstable(feature = "once_cell_try", issue = "109737")]
270+
#[unstable(feature = "once_cell_get_mut")]
271271
pub fn get_mut_or_try_init<F, E>(&mut self, f: F) -> Result<&mut T, E>
272272
where
273273
F: FnOnce() -> Result<T, E>,

0 commit comments

Comments
 (0)