From 81b13a4884ba31282cbaefc9edf882125642dec1 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crossbeam-utils/src/atomic/atomic_cell.rs b/crossbeam-utils/src/atomic/atomic_cell.rs index 1561a793d..ea209f17c 100644 --- a/crossbeam-utils/src/atomic/atomic_cell.rs +++ b/crossbeam-utils/src/atomic/atomic_cell.rs @@ -169,8 +169,11 @@ impl AtomicCell { /// /// assert_eq!(a.load(), 8); /// ``` - #[doc(hidden)] - #[deprecated(note = "this method is unsound and will be removed in the next release")] + /// + /// # Caveat + /// + /// This method might be unsound and removed in a future release, but we haven't decided + /// yet. See [#315](https://github.com/crossbeam-rs/crossbeam/issues/315) for more details. pub fn get_mut(&mut self) -> &mut T { unsafe { &mut *self.value.get() } }