about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2019-12-15 06:07:46 +0000
committerLzu Tao <taolzu@gmail.com>2019-12-15 13:55:10 +0000
commit7bf55f4aa536ce8fe12fabe640ea4eb5c5a7a572 (patch)
tree2d087fa31d1da662ad683fd28894ac6217bbe144 /src/libcore/sync
parenta605441e049f0b6d5f7715b94b8ac4662fd7fcf6 (diff)
downloadrust-7bf55f4aa536ce8fe12fabe640ea4eb5c5a7a572.tar.gz
rust-7bf55f4aa536ce8fe12fabe640ea4eb5c5a7a572.zip
use Self alias in place of macros
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 7756335ee20..d5b0bc42038 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -1263,7 +1263,7 @@ let atomic_forty_two = ", stringify!($atomic_type), "::new(42);
                 #[$stable]
                 #[cfg_attr(not(bootstrap), $const_stable)]
                 pub const fn new(v: $int_type) -> Self {
-                    $atomic_type {v: UnsafeCell::new(v)}
+                    Self {v: UnsafeCell::new(v)}
                 }
             }