diff options
| author | bors <bors@rust-lang.org> | 2018-07-04 16:21:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-04 16:21:42 +0000 |
| commit | 0ad8f9e5b1950e4ac09950def4231c8d5875de57 (patch) | |
| tree | 1447e7b31c5844fb8762c0ed0cfc12f607694c68 /src/libcore/lib.rs | |
| parent | eded1aa14cb322b3b1000ee98ea9ba3a10dacba1 (diff) | |
| parent | 530d7bc5174e93682a38b22ac7ff4e3569bcd813 (diff) | |
| download | rust-0ad8f9e5b1950e4ac09950def4231c8d5875de57.tar.gz rust-0ad8f9e5b1950e4ac09950def4231c8d5875de57.zip | |
Auto merge of #51395 - SimonSapin:repr-transparent, r=SimonSapin
Add #[repr(transparent)] to some libcore types * `UnsafeCell` * `Cell` * `NonZero*` * `NonNull` * `Unique` CC https://github.com/rust-lang/rust/issues/43036
Diffstat (limited to 'src/libcore/lib.rs')
| -rw-r--r-- | src/libcore/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index bbe6ae8619f..b2b38820a89 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -122,6 +122,7 @@ #![feature(const_slice_len)] #![feature(const_str_as_bytes)] #![feature(const_str_len)] +#![cfg_attr(stage0, feature(repr_transparent))] #[prelude_import] #[allow(unused)] |
