Skip to content

Commit 03b2493

Browse files
committed
remove 'unordered' atomic intrinsics
1 parent e741187 commit 03b2493

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

core/src/intrinsics/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,6 @@ pub unsafe fn atomic_load_acquire<T: Copy>(src: *const T) -> T;
439439
#[rustc_intrinsic]
440440
#[rustc_nounwind]
441441
pub unsafe fn atomic_load_relaxed<T: Copy>(src: *const T) -> T;
442-
/// Do NOT use this intrinsic; "unordered" operations do not exist in our memory model!
443-
/// In terms of the Rust Abstract Machine, this operation is equivalent to `src.read()`,
444-
/// i.e., it performs a non-atomic read.
445-
#[rustc_intrinsic]
446-
#[rustc_nounwind]
447-
pub unsafe fn atomic_load_unordered<T: Copy>(src: *const T) -> T;
448442

449443
/// Stores the value at the specified memory location.
450444
/// `T` must be an integer or pointer type.
@@ -473,12 +467,6 @@ pub unsafe fn atomic_store_release<T: Copy>(dst: *mut T, val: T);
473467
#[rustc_intrinsic]
474468
#[rustc_nounwind]
475469
pub unsafe fn atomic_store_relaxed<T: Copy>(dst: *mut T, val: T);
476-
/// Do NOT use this intrinsic; "unordered" operations do not exist in our memory model!
477-
/// In terms of the Rust Abstract Machine, this operation is equivalent to `dst.write(val)`,
478-
/// i.e., it performs a non-atomic write.
479-
#[rustc_intrinsic]
480-
#[rustc_nounwind]
481-
pub unsafe fn atomic_store_unordered<T: Copy>(dst: *mut T, val: T);
482470

483471
/// Stores the value at the specified memory location, returning the old value.
484472
/// `T` must be an integer or pointer type.

0 commit comments

Comments
 (0)