From e0452c9af5e6c1c6a6b3bc82be3158e543789b1e Mon Sep 17 00:00:00 2001 From: "aaishwarymishra@gmail.com" Date: Tue, 12 Nov 2024 13:45:54 +0530 Subject: [PATCH] adds new declaration to codegen --- core/src/intrinsics/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/intrinsics/mod.rs b/core/src/intrinsics/mod.rs index 6aa80af5f955a..cbf32e0b550ad 100644 --- a/core/src/intrinsics/mod.rs +++ b/core/src/intrinsics/mod.rs @@ -307,6 +307,8 @@ pub unsafe fn atomic_cxchgweak_relaxed_acquire( /// [`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( _dst: *mut T,