diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-06-06 13:30:35 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-06-16 18:25:15 +0200 |
| commit | 530d7bc5174e93682a38b22ac7ff4e3569bcd813 (patch) | |
| tree | b3e20df02eeac01e46a7fc7e024977847ecf7a81 /src/libcore/lib.rs | |
| parent | 253205658edc477a0b429f3ce25a92099dc7ddc4 (diff) | |
| download | rust-530d7bc5174e93682a38b22ac7ff4e3569bcd813.tar.gz rust-530d7bc5174e93682a38b22ac7ff4e3569bcd813.zip | |
Add #[repr(transparent)] to some libcore types
* `UnsafeCell` * `Cell` * `NonZero*` * `NonNull` * `Unique`
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 40caee85541..2d227ebc8c2 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -124,6 +124,7 @@ #![feature(const_slice_len)] #![feature(const_str_as_bytes)] #![feature(const_str_len)] +#![cfg_attr(stage0, feature(repr_transparent))] #[prelude_import] #[allow(unused)] |
