Stabilize scoped threads.
This commit is contained in:
parent
14947924df
commit
ae0a533b0b
3 changed files with 18 additions and 16 deletions
|
@ -350,7 +350,7 @@ impl AtomicBool {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(atomic_from_mut, inline_const, scoped_threads)]
|
||||
/// #![feature(atomic_from_mut, inline_const)]
|
||||
/// use std::sync::atomic::{AtomicBool, Ordering};
|
||||
///
|
||||
/// let mut some_bools = [const { AtomicBool::new(false) }; 10];
|
||||
|
@ -381,7 +381,7 @@ impl AtomicBool {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(atomic_from_mut, scoped_threads)]
|
||||
/// #![feature(atomic_from_mut)]
|
||||
/// use std::sync::atomic::{AtomicBool, Ordering};
|
||||
///
|
||||
/// let mut some_bools = [false; 10];
|
||||
|
@ -1015,7 +1015,7 @@ impl<T> AtomicPtr<T> {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(atomic_from_mut, inline_const, scoped_threads)]
|
||||
/// #![feature(atomic_from_mut, inline_const)]
|
||||
/// use std::ptr::null_mut;
|
||||
/// use std::sync::atomic::{AtomicPtr, Ordering};
|
||||
///
|
||||
|
@ -1052,7 +1052,7 @@ impl<T> AtomicPtr<T> {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(atomic_from_mut, scoped_threads)]
|
||||
/// #![feature(atomic_from_mut)]
|
||||
/// use std::ptr::null_mut;
|
||||
/// use std::sync::atomic::{AtomicPtr, Ordering};
|
||||
///
|
||||
|
@ -1607,7 +1607,7 @@ macro_rules! atomic_int {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(atomic_from_mut, inline_const, scoped_threads)]
|
||||
/// #![feature(atomic_from_mut, 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];")]
|
||||
|
@ -1640,7 +1640,7 @@ macro_rules! atomic_int {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(atomic_from_mut, scoped_threads)]
|
||||
/// #![feature(atomic_from_mut)]
|
||||
#[doc = concat!($extra_feature, "use std::sync::atomic::{", stringify!($atomic_type), ", Ordering};")]
|
||||
///
|
||||
/// let mut some_ints = [0; 10];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue