diff options
| author | Gary Guo <gary@garyguo.net> | 2024-04-20 20:35:04 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2024-04-24 13:12:33 +0100 |
| commit | f8a1cad07c71d96c25ec578c0e88a4e22f0a2f39 (patch) | |
| tree | 6944c8cb80586152b80b32ba83d18e67e0be9502 | |
| parent | 9d16364198733d9b54c2d0d64dea2e6a640f8948 (diff) | |
| download | rust-f8a1cad07c71d96c25ec578c0e88a4e22f0a2f39.tar.gz rust-f8a1cad07c71d96c25ec578c0e88a4e22f0a2f39.zip | |
Add `cfg_attr(bootstrap)` to doc tests
| -rw-r--r-- | library/core/src/sync/atomic.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 7b5dfa00e46..073459fcb00 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -512,6 +512,7 @@ impl AtomicBool { /// /// ``` /// #![feature(atomic_from_mut)] + /// # #![cfg_attr(bootstrap, feature(inline_const))] /// use std::sync::atomic::{AtomicBool, Ordering}; /// /// let mut some_bools = [const { AtomicBool::new(false) }; 10]; @@ -1314,6 +1315,7 @@ impl<T> AtomicPtr<T> { /// /// ``` /// #![feature(atomic_from_mut)] + /// # #![cfg_attr(bootstrap, feature(inline_const))] /// use std::ptr::null_mut; /// use std::sync::atomic::{AtomicPtr, Ordering}; /// @@ -2304,6 +2306,7 @@ macro_rules! atomic_int { /// /// ``` /// #![feature(atomic_from_mut)] + /// # #![cfg_attr(bootstrap, feature(inline_const))] #[doc = concat!($extra_feature, "use std::sync::atomic::{", stringify!($atomic_type), ", Ordering};")] /// #[doc = concat!("let mut some_ints = [const { ", stringify!($atomic_type), "::new(0) }; 10];")] |
