Skip to content

Commit

Permalink
Apply #[repr(transparent)] to AtomicCell
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 21, 2019
1 parent 30f5d8b commit 042d157
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crossbeam-utils/src/atomic/atomic_cell.rs
Expand Up @@ -23,8 +23,7 @@ use super::seq_lock::SeqLock;
/// [`AtomicCell::<T>::is_lock_free()`]: struct.AtomicCell.html#method.is_lock_free
/// [`Acquire`]: https://doc.rust-lang.org/std/sync/atomic/enum.Ordering.html#variant.Acquire
/// [`Release`]: https://doc.rust-lang.org/std/sync/atomic/enum.Ordering.html#variant.Release
// TODO(@jeehoonkang): when the minimum supported Rust version is bumped to 1.28+, apply the
// attribute `#[repr(transparent)]`.
#[repr(transparent)]
pub struct AtomicCell<T: ?Sized> {
/// The inner value.
///
Expand Down

0 comments on commit 042d157

Please sign in to comment.