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 @@ pub fn from_mut(v: &mut bool) -> &mut Self { /// /// ``` /// #![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 @@ pub fn from_mut(v: &mut *mut T) -> &mut Self { /// /// ``` /// #![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 @@ pub fn from_mut(v: &mut $int_type) -> &mut Self { /// /// ``` /// #![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];")]