Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,8 @@ impl<T> AtomicPtr<T> {

/// Gets atomic access to a pointer.
///
/// **Note:** This function is only available on targets where `AtomicPtr<T>` has the same alignment as `*const T`
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -1625,6 +1627,8 @@ impl<T> AtomicPtr<T> {

/// Gets atomic access to a slice of pointers.
///
/// **Note:** This function is only available on targets where `AtomicPtr<T>` has the same alignment as `*const T`
///
/// # Examples
///
/// ```ignore-wasm
Expand Down Expand Up @@ -2804,6 +2808,14 @@ macro_rules! atomic_int {

#[doc = concat!("Get atomic access to a `&mut [", stringify!($int_type), "]` slice.")]
///
#[doc = if_8_bit! {
$int_type,
no = [
"**Note:** This function is only available on targets where `",
stringify!($atomic_type), "` has the same alignment as `", stringify!($int_type), "`."
],
}]
///
/// # Examples
///
/// ```ignore-wasm
Expand Down
Loading