mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
f4dcb7fad0
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](https://github.com/rust-lang/stdarch/blob/8764244589373b8b48864c0ad11fd9233c672249/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`