We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e5e9e commit 9ac48c3Copy full SHA for 9ac48c3
library/core/src/cell/once.rs
@@ -189,7 +189,7 @@ impl<T> OnceCell<T> {
189
/// assert_eq!(value, &94);
190
/// ```
191
#[inline]
192
- #[unstable(feature = "once_cell_get_mut")]
+ #[unstable(feature = "once_cell_get_mut", issue = "121641")]
193
pub fn get_mut_or_init<F>(&mut self, f: F) -> &mut T
194
where
195
F: FnOnce() -> T,
@@ -267,7 +267,7 @@ impl<T> OnceCell<T> {
267
/// *value.unwrap() += 2;
268
/// assert_eq!(cell.get(), Some(&94))
269
270
271
pub fn get_mut_or_try_init<F, E>(&mut self, f: F) -> Result<&mut T, E>
272
273
F: FnOnce() -> Result<T, E>,
0 commit comments