From ebab79d1b7b9050024c530e266fcfceda691ee9f Mon Sep 17 00:00:00 2001 From: Jeehoon Kang Date: Fri, 10 May 2019 23:20:34 +0900 Subject: [PATCH] De-deprecate AtomicCell::get_mut PR #332 deprecated after the discussion of issue #315, but it is a measure not yet necessary to take. Revert the deprecation and wait for us to reach a consensus. --- crossbeam-utils/src/atomic/atomic_cell.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crossbeam-utils/src/atomic/atomic_cell.rs b/crossbeam-utils/src/atomic/atomic_cell.rs index 594c3ca0b..1cb0bf7e5 100644 --- a/crossbeam-utils/src/atomic/atomic_cell.rs +++ b/crossbeam-utils/src/atomic/atomic_cell.rs @@ -168,8 +168,6 @@ impl AtomicCell { /// /// assert_eq!(a.load(), 8); /// ``` - #[doc(hidden)] - #[deprecated(note = "this method is unsound and will be removed in the next release")] pub fn get_mut(&mut self) -> &mut T { unsafe { &mut *self.value.get() } }