about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-05-10 16:26:02 +0200
committerGitHub <noreply@github.com>2025-05-10 16:26:02 +0200
commitdb5831c76c10e1045823cc442d07eaf4ec404089 (patch)
treecc266835dc5a89eff8fbaa40b9c209edbb0c57d7
parentfcb4ef584d88c3a8210ac17b91732fddb00a6036 (diff)
parent7e5fa896a210b205c48a2a8922d21fd680afd39c (diff)
downloadrust-db5831c76c10e1045823cc442d07eaf4ec404089.tar.gz
rust-db5831c76c10e1045823cc442d07eaf4ec404089.zip
Rollup merge of #140660 - RalfJung:more-order, r=WaffleLapkin
remove 'unordered' atomic intrinsics

As their doc comment already indicates, these operations do not currently have a place in our memory model. The intrinsics were introduced to support a hack in compiler-builtins, but that hack recently got removed (see https://github.com/rust-lang/compiler-builtins/issues/788).
-rw-r--r--src/builder.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 6720f6186d1..9e5ebf3a9a4 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -2454,7 +2454,6 @@ impl ToGccOrdering for AtomicOrdering {
         use MemOrdering::*;
 
         let ordering = match self {
-            AtomicOrdering::Unordered => __ATOMIC_RELAXED,
             AtomicOrdering::Relaxed => __ATOMIC_RELAXED, // TODO(antoyo): check if that's the same.
             AtomicOrdering::Acquire => __ATOMIC_ACQUIRE,
             AtomicOrdering::Release => __ATOMIC_RELEASE,