get rid of rustc_codegen_ssa::common::AtomicOrdering
This commit is contained in:
@@ -426,14 +426,14 @@ pub(crate) enum AtomicOrdering {
|
||||
}
|
||||
|
||||
impl AtomicOrdering {
|
||||
pub(crate) fn from_generic(ao: rustc_codegen_ssa::common::AtomicOrdering) -> Self {
|
||||
use rustc_codegen_ssa::common::AtomicOrdering as Common;
|
||||
pub(crate) fn from_generic(ao: rustc_middle::ty::AtomicOrdering) -> Self {
|
||||
use rustc_middle::ty::AtomicOrdering as Common;
|
||||
match ao {
|
||||
Common::Relaxed => Self::Monotonic,
|
||||
Common::Acquire => Self::Acquire,
|
||||
Common::Release => Self::Release,
|
||||
Common::AcquireRelease => Self::AcquireRelease,
|
||||
Common::SequentiallyConsistent => Self::SequentiallyConsistent,
|
||||
Common::AcqRel => Self::AcquireRelease,
|
||||
Common::SeqCst => Self::SequentiallyConsistent,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user