mirror of
https://github.com/rust-lang/rust
synced 2024-10-02 14:54:35 +00:00
Simplify match statement since variable arch that is predictable
This commit is contained in:
parent
8ad78cb02c
commit
c5382adc65
|
@ -33,12 +33,11 @@ pub fn default_modifier(self, _arch: InlineAsmArch) -> Option<(char, &'static st
|
|||
|
||||
pub fn supported_types(
|
||||
self,
|
||||
arch: InlineAsmArch,
|
||||
_arch: InlineAsmArch,
|
||||
) -> &'static [(InlineAsmType, Option<Symbol>)] {
|
||||
match (self, arch) {
|
||||
(Self::reg, InlineAsmArch::LoongArch64) => types! { _: I8, I16, I32, I64, F32, F64; },
|
||||
(Self::reg, _) => types! { _: I8, I16, I32, F32; },
|
||||
(Self::freg, _) => types! { _: F32, F64; },
|
||||
match self {
|
||||
Self::reg => types! { _: I8, I16, I32, I64, F32, F64; },
|
||||
Self::freg => types! { _: F32, F64; },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue