Skip to content

Commit 3ba2c6f

Browse files
committed
De-deprecate AtomicCell::get_mut
PR crossbeam-rs#332 deprecated after the discussion of issue crossbeam-rs#315, but it is a measure not yet necessary to take. Revert the deprecation and wait for us to reach a consensus.
1 parent 6ac269b commit 3ba2c6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crossbeam-utils/src/atomic/atomic_cell.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ impl<T: ?Sized> AtomicCell<T> {
168168
///
169169
/// assert_eq!(a.load(), 8);
170170
/// ```
171-
#[doc(hidden)]
172-
#[deprecated(note = "this method is unsound and will be removed in the next release")]
171+
///
172+
/// # Caveat
173+
///
174+
/// This method might be unsound and removed in a future release, but we haven't decided
175+
/// yet. See [#315](https://github.com/crossbeam-rs/crossbeam/issues/315) for more details.
173176
pub fn get_mut(&mut self) -> &mut T {
174177
unsafe { &mut *self.value.get() }
175178
}

0 commit comments

Comments
 (0)