Skip to content

Commit a3c73ca

Browse files
Remove SynchronizationScope::Other
Added in b761538, it started out already unused.
1 parent 1275cc1 commit a3c73ca

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/librustc_codegen_llvm/llvm/ffi.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,17 +337,13 @@ impl AtomicOrdering {
337337
#[derive(Copy, Clone)]
338338
#[repr(C)]
339339
pub enum SynchronizationScope {
340-
// FIXME: figure out if this variant is needed at all.
341-
#[allow(dead_code)]
342-
Other,
343340
SingleThread,
344341
CrossThread,
345342
}
346343

347344
impl SynchronizationScope {
348345
pub fn from_generic(sc: rustc_codegen_ssa::common::SynchronizationScope) -> Self {
349346
match sc {
350-
rustc_codegen_ssa::common::SynchronizationScope::Other => SynchronizationScope::Other,
351347
rustc_codegen_ssa::common::SynchronizationScope::SingleThread => {
352348
SynchronizationScope::SingleThread
353349
}

src/librustc_codegen_ssa/common.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ pub enum AtomicOrdering {
7272
}
7373

7474
pub enum SynchronizationScope {
75-
// FIXME: figure out if this variant is needed at all.
76-
#[allow(dead_code)]
77-
Other,
7875
SingleThread,
7976
CrossThread,
8077
}

src/rustllvm/RustWrapper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ LLVMRustBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Target,
366366
}
367367

368368
enum class LLVMRustSynchronizationScope {
369-
Other,
370369
SingleThread,
371370
CrossThread,
372371
};

0 commit comments

Comments
 (0)