diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-11-13 07:39:17 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-11-15 19:41:28 -0500 |
| commit | db3e2bacb69c068fd9262a3aadd961ea2f7f940e (patch) | |
| tree | 0572b5e415d8b77a62133845eb41f13551e4b09a /library/core/src/mem/mod.rs | |
| parent | 74cf505e365966a4005cf7b71cacab0659732552 (diff) | |
| download | rust-db3e2bacb69c068fd9262a3aadd961ea2f7f940e.tar.gz rust-db3e2bacb69c068fd9262a3aadd961ea2f7f940e.zip | |
Bump cfg(bootstrap)s
Diffstat (limited to 'library/core/src/mem/mod.rs')
| -rw-r--r-- | library/core/src/mem/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index 34534ba3b43..b810318fe7d 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -1358,7 +1358,7 @@ impl<T> SizedTypeProperties for T {} /// /// ``` /// #![feature(offset_of)] -/// # #![cfg_attr(not(bootstrap), feature(offset_of_enum))] +/// # #![feature(offset_of_enum)] /// /// use std::mem; /// #[repr(C)] @@ -1388,12 +1388,9 @@ impl<T> SizedTypeProperties for T {} /// B { one: u8, two: u16 }, /// } /// -/// # #[cfg(not(bootstrap))] /// assert_eq!(mem::offset_of!(Enum, A.0), 1); -/// # #[cfg(not(bootstrap))] /// assert_eq!(mem::offset_of!(Enum, B.two), 2); /// -/// # #[cfg(not(bootstrap))] /// assert_eq!(mem::offset_of!(Option<&u8>, Some.0), 0); /// ``` #[unstable(feature = "offset_of", issue = "106655")] |
