Skip to content

Commit 2532e0d

Browse files
author
Stjepan Glavina
committed
Deprecate AtomicCell::get_mut
1 parent ea2f68e commit 2532e0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crossbeam-utils/src/atomic/atomic_cell.rs

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ impl<T> AtomicCell<T> {
5757
///
5858
/// assert_eq!(a.load(), 8);
5959
/// ```
60+
#[doc(hidden)]
61+
#[deprecated(note = "this method is unsound and will be removed in the next release")]
6062
pub fn get_mut(&mut self) -> &mut T {
6163
unsafe { &mut *self.value.get() }
6264
}

0 commit comments

Comments
 (0)