We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea2f68e commit 2532e0dCopy full SHA for 2532e0d
crossbeam-utils/src/atomic/atomic_cell.rs
@@ -57,6 +57,8 @@ impl<T> AtomicCell<T> {
57
///
58
/// assert_eq!(a.load(), 8);
59
/// ```
60
+ #[doc(hidden)]
61
+ #[deprecated(note = "this method is unsound and will be removed in the next release")]
62
pub fn get_mut(&mut self) -> &mut T {
63
unsafe { &mut *self.value.get() }
64
}
0 commit comments