diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-08-11 16:16:26 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-08-11 16:16:28 -0400 |
| commit | a3c73ca88c58082123a217ddaea535639093a4d5 (patch) | |
| tree | b5c596c7ff548a14c9f74b3394aad64675e41e46 | |
| parent | 1275cc15d6aa0597f0b3bbf8aa0750239f9da7b2 (diff) | |
| download | rust-a3c73ca88c58082123a217ddaea535639093a4d5.tar.gz rust-a3c73ca88c58082123a217ddaea535639093a4d5.zip | |
Remove SynchronizationScope::Other
Added in b7615389978eae2ae9f3cba9a776fd8da3f743ca, it started out already unused.
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/ffi.rs | 4 | ||||
| -rw-r--r-- | src/librustc_codegen_ssa/common.rs | 3 | ||||
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs index eb7dc827f93..33caf674bfe 100644 --- a/src/librustc_codegen_llvm/llvm/ffi.rs +++ b/src/librustc_codegen_llvm/llvm/ffi.rs @@ -337,9 +337,6 @@ impl AtomicOrdering { #[derive(Copy, Clone)] #[repr(C)] pub enum SynchronizationScope { - // FIXME: figure out if this variant is needed at all. - #[allow(dead_code)] - Other, SingleThread, CrossThread, } @@ -347,7 +344,6 @@ pub enum SynchronizationScope { impl SynchronizationScope { pub fn from_generic(sc: rustc_codegen_ssa::common::SynchronizationScope) -> Self { match sc { - rustc_codegen_ssa::common::SynchronizationScope::Other => SynchronizationScope::Other, rustc_codegen_ssa::common::SynchronizationScope::SingleThread => { SynchronizationScope::SingleThread } diff --git a/src/librustc_codegen_ssa/common.rs b/src/librustc_codegen_ssa/common.rs index 432b2f3bdc3..e04ed531bbf 100644 --- a/src/librustc_codegen_ssa/common.rs +++ b/src/librustc_codegen_ssa/common.rs @@ -72,9 +72,6 @@ pub enum AtomicOrdering { } pub enum SynchronizationScope { - // FIXME: figure out if this variant is needed at all. - #[allow(dead_code)] - Other, SingleThread, CrossThread, } diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 667bf4a2ded..321e07a5aba 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -366,7 +366,6 @@ LLVMRustBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMValueRef Target, } enum class LLVMRustSynchronizationScope { - Other, SingleThread, CrossThread, }; |
