about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-09-06 15:19:13 +0000
committerbors <bors@rust-lang.org>2018-09-06 15:19:13 +0000
commit309e21c88d0893bdcd747b4924678d117ac36da5 (patch)
treefacc3c322b823ee99f0422663af4182a53430e9c /src
parent4dcf42f985f2d3e12f91d465a6a10f8b1d6782bf (diff)
parent44fcbe719b41aae2b7f23e596b9bc4d9d5296dc1 (diff)
downloadrust-309e21c88d0893bdcd747b4924678d117ac36da5.tar.gz
rust-309e21c88d0893bdcd747b4924678d117ac36da5.zip
Auto merge of #53978 - alexcrichton:remove-repr-transparent-atomics, r=nikomatsakis
[beta]: Remove `#[repr(transparent)]` from atomics

Added in #52149 the discussion in #53514 is showing how we may not want to
actually add this attribute to the atomic types. While we continue to
debate #53514 this commit reverts the addition of the `transparent` attribute
before it hits stable.
Diffstat (limited to 'src')
-rw-r--r--src/libcore/sync/atomic.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 1e2b18bf9b0..e9d1fb89115 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -124,7 +124,6 @@ pub fn spin_loop_hint() {
 /// [`bool`]: ../../../std/primitive.bool.html
 #[cfg(target_has_atomic = "8")]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[repr(transparent)]
 pub struct AtomicBool {
     v: UnsafeCell<u8>,
 }
@@ -148,7 +147,6 @@ unsafe impl Sync for AtomicBool {}
 /// This type has the same in-memory representation as a `*mut T`.
 #[cfg(target_has_atomic = "ptr")]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[repr(transparent)]
 pub struct AtomicPtr<T> {
     p: UnsafeCell<*mut T>,
 }
@@ -978,7 +976,6 @@ macro_rules! atomic_int {
         ///
         /// [module-level documentation]: index.html
         #[$stable]
-        #[repr(transparent)]
         pub struct $atomic_type {
             v: UnsafeCell<$int_type>,
         }