Rollup merge of #99043 - compiler-errors:derive-nit, r=cjgillot
Collapse some weirdly-wrapping derives self-explanatory
This commit is contained in:
commit
6497130baa
2 changed files with 12 additions and 72 deletions
|
@ -244,18 +244,8 @@ impl FromStr for InlineAsmArch {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Copy,
|
||||
Clone,
|
||||
Encodable,
|
||||
Decodable,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
PartialOrd,
|
||||
Hash,
|
||||
HashStable_Generic
|
||||
)]
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||
pub enum InlineAsmReg {
|
||||
X86(X86InlineAsmReg),
|
||||
Arm(ArmInlineAsmReg),
|
||||
|
@ -406,18 +396,8 @@ impl InlineAsmReg {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Copy,
|
||||
Clone,
|
||||
Encodable,
|
||||
Decodable,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
PartialOrd,
|
||||
Hash,
|
||||
HashStable_Generic
|
||||
)]
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||
pub enum InlineAsmRegClass {
|
||||
X86(X86InlineAsmRegClass),
|
||||
Arm(ArmInlineAsmRegClass),
|
||||
|
@ -620,18 +600,8 @@ impl InlineAsmRegClass {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Copy,
|
||||
Clone,
|
||||
Encodable,
|
||||
Decodable,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
PartialOrd,
|
||||
Hash,
|
||||
HashStable_Generic
|
||||
)]
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||
pub enum InlineAsmRegOrRegClass {
|
||||
Reg(InlineAsmReg),
|
||||
RegClass(InlineAsmRegClass),
|
||||
|
@ -808,18 +778,8 @@ pub fn allocatable_registers(
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Copy,
|
||||
Clone,
|
||||
Encodable,
|
||||
Decodable,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
PartialOrd,
|
||||
Hash,
|
||||
HashStable_Generic
|
||||
)]
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||
pub enum InlineAsmClobberAbi {
|
||||
X86,
|
||||
X86_64Win,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue