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.
UnsafeCell::get_mut
1 parent 385f8e2 commit efeb461Copy full SHA for efeb461
library/core/src/cell.rs
@@ -1916,7 +1916,8 @@ impl<T: ?Sized> UnsafeCell<T> {
1916
/// ```
1917
#[inline(always)]
1918
#[stable(feature = "unsafe_cell_get_mut", since = "1.50.0")]
1919
- pub fn get_mut(&mut self) -> &mut T {
+ #[rustc_const_unstable(feature = "const_unsafecell_get_mut", issue = "none")]
1920
+ pub const fn get_mut(&mut self) -> &mut T {
1921
&mut self.value
1922
}
1923
0 commit comments