Skip to content

Commit 9abb5cf

Browse files
Merge #372
372: De-deprecate AtomicCell::get_mut r=stjepang a=jeehoonkang 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. Co-authored-by: Jeehoon Kang <[email protected]>
2 parents 7308fb3 + 81b13a4 commit 9abb5cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crossbeam-utils/src/atomic/atomic_cell.rs

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

0 commit comments

Comments
 (0)