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
|
@ -1438,18 +1438,8 @@ impl<'hir> Body<'hir> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The type of source expression that caused this generator to be created.
|
/// The type of source expression that caused this generator to be created.
|
||||||
#[derive(
|
#[derive(Clone, PartialEq, PartialOrd, Eq, Hash, Debug, Copy)]
|
||||||
Clone,
|
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||||
PartialEq,
|
|
||||||
PartialOrd,
|
|
||||||
Eq,
|
|
||||||
Hash,
|
|
||||||
HashStable_Generic,
|
|
||||||
Encodable,
|
|
||||||
Decodable,
|
|
||||||
Debug,
|
|
||||||
Copy
|
|
||||||
)]
|
|
||||||
pub enum GeneratorKind {
|
pub enum GeneratorKind {
|
||||||
/// An explicit `async` block or the body of an async function.
|
/// An explicit `async` block or the body of an async function.
|
||||||
Async(AsyncGeneratorKind),
|
Async(AsyncGeneratorKind),
|
||||||
|
@ -1481,18 +1471,8 @@ impl GeneratorKind {
|
||||||
///
|
///
|
||||||
/// This helps error messages but is also used to drive coercions in
|
/// This helps error messages but is also used to drive coercions in
|
||||||
/// type-checking (see #60424).
|
/// type-checking (see #60424).
|
||||||
#[derive(
|
#[derive(Clone, PartialEq, PartialOrd, Eq, Hash, Debug, Copy)]
|
||||||
Clone,
|
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||||
PartialEq,
|
|
||||||
PartialOrd,
|
|
||||||
Eq,
|
|
||||||
Hash,
|
|
||||||
HashStable_Generic,
|
|
||||||
Encodable,
|
|
||||||
Decodable,
|
|
||||||
Debug,
|
|
||||||
Copy
|
|
||||||
)]
|
|
||||||
pub enum AsyncGeneratorKind {
|
pub enum AsyncGeneratorKind {
|
||||||
/// An explicit `async` block written by the user.
|
/// An explicit `async` block written by the user.
|
||||||
Block,
|
Block,
|
||||||
|
|
|
@ -244,18 +244,8 @@ impl FromStr for InlineAsmArch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||||
Copy,
|
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||||
Clone,
|
|
||||||
Encodable,
|
|
||||||
Decodable,
|
|
||||||
Debug,
|
|
||||||
Eq,
|
|
||||||
PartialEq,
|
|
||||||
PartialOrd,
|
|
||||||
Hash,
|
|
||||||
HashStable_Generic
|
|
||||||
)]
|
|
||||||
pub enum InlineAsmReg {
|
pub enum InlineAsmReg {
|
||||||
X86(X86InlineAsmReg),
|
X86(X86InlineAsmReg),
|
||||||
Arm(ArmInlineAsmReg),
|
Arm(ArmInlineAsmReg),
|
||||||
|
@ -406,18 +396,8 @@ impl InlineAsmReg {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||||
Copy,
|
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||||
Clone,
|
|
||||||
Encodable,
|
|
||||||
Decodable,
|
|
||||||
Debug,
|
|
||||||
Eq,
|
|
||||||
PartialEq,
|
|
||||||
PartialOrd,
|
|
||||||
Hash,
|
|
||||||
HashStable_Generic
|
|
||||||
)]
|
|
||||||
pub enum InlineAsmRegClass {
|
pub enum InlineAsmRegClass {
|
||||||
X86(X86InlineAsmRegClass),
|
X86(X86InlineAsmRegClass),
|
||||||
Arm(ArmInlineAsmRegClass),
|
Arm(ArmInlineAsmRegClass),
|
||||||
|
@ -620,18 +600,8 @@ impl InlineAsmRegClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||||
Copy,
|
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||||
Clone,
|
|
||||||
Encodable,
|
|
||||||
Decodable,
|
|
||||||
Debug,
|
|
||||||
Eq,
|
|
||||||
PartialEq,
|
|
||||||
PartialOrd,
|
|
||||||
Hash,
|
|
||||||
HashStable_Generic
|
|
||||||
)]
|
|
||||||
pub enum InlineAsmRegOrRegClass {
|
pub enum InlineAsmRegOrRegClass {
|
||||||
Reg(InlineAsmReg),
|
Reg(InlineAsmReg),
|
||||||
RegClass(InlineAsmRegClass),
|
RegClass(InlineAsmRegClass),
|
||||||
|
@ -808,18 +778,8 @@ pub fn allocatable_registers(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Hash)]
|
||||||
Copy,
|
#[derive(HashStable_Generic, Encodable, Decodable)]
|
||||||
Clone,
|
|
||||||
Encodable,
|
|
||||||
Decodable,
|
|
||||||
Debug,
|
|
||||||
Eq,
|
|
||||||
PartialEq,
|
|
||||||
PartialOrd,
|
|
||||||
Hash,
|
|
||||||
HashStable_Generic
|
|
||||||
)]
|
|
||||||
pub enum InlineAsmClobberAbi {
|
pub enum InlineAsmClobberAbi {
|
||||||
X86,
|
X86,
|
||||||
X86_64Win,
|
X86_64Win,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue