Rollup merge of #141687 - RalfJung:atomic_compare_exchange, r=bjorn3

core: unstably expose atomic_compare_exchange so stdarch can use it

Due to https://github.com/rust-lang/stdarch/issues/1655, cleaning up the atomic intrinsics will be a bunch of extra work: stdarch directly calls them [here](8764244589/crates/core_arch/src/x86_64/cmpxchg16b.rs (L58-L74)).

Instead of duplicating that match, stdarch should use what we have in libcore, so let's expose that.

r? `@bjorn3`
This commit is contained in:
Jacob Pratt 2025-05-29 04:49:46 +02:00 committed by GitHub
commit 7c783dad9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available