Skip to content

Commit

Permalink
Merge #436
Browse files Browse the repository at this point in the history
436: Apply #[repr(transparent)] to AtomicCell r=stjepang a=taiki-e



Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e committed Oct 22, 2019
2 parents af68803 + 042d157 commit caa52c4
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 caa52c4

Please sign in to comment.