Skip to content

Commit

Permalink
De-deprecate AtomicCell::get_mut
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeehoonkang committed May 10, 2019
1 parent 6ac269b commit ebab79d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crossbeam-utils/src/atomic/atomic_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ impl<T: ?Sized> AtomicCell<T> {
///
/// 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() }
}
Expand Down

0 comments on commit ebab79d

Please sign in to comment.