about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authoraaishwarymishra@gmail.com <aaishwarymishra@gmail.com>2024-11-12 13:45:54 +0530
committeraaishwarymishra@gmail.com <aaishwarymishra@gmail.com>2024-11-12 13:45:54 +0530
commit29cfb35074fc27fc421c34a3bbb295a8f653bf76 (patch)
treed1b728a0a98ee54ac75fcb1de524865b79322424 /library
parent3904426188b5d7bf42213e6a2dd56d8e18a9297c (diff)
downloadrust-29cfb35074fc27fc421c34a3bbb295a8f653bf76.tar.gz
rust-29cfb35074fc27fc421c34a3bbb295a8f653bf76.zip
adds new declaration to codegen
Diffstat (limited to 'library')
-rw-r--r--library/core/src/intrinsics/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/intrinsics/mod.rs b/library/core/src/intrinsics/mod.rs
index 6aa80af5f95..cbf32e0b550 100644
--- a/library/core/src/intrinsics/mod.rs
+++ b/library/core/src/intrinsics/mod.rs
@@ -307,6 +307,8 @@ pub unsafe fn atomic_cxchgweak_relaxed_acquire<T: Copy>(
 /// [`atomic`] types via the `compare_exchange_weak` method by passing
 /// [`Ordering::Relaxed`] and [`Ordering::SeqCst`] as the success and failure parameters.
 /// For example, [`AtomicBool::compare_exchange_weak`].
+#[rustc_intrinsic]
+#[rustc_intrinsic_must_be_overridden]
 #[rustc_nounwind]
 pub unsafe fn atomic_cxchgweak_relaxed_seqcst<T: Copy>(
     _dst: *mut T,