@@ -320,7 +320,7 @@ pub struct Id(pub u32);
320320/// The fundamental kind of an item. Unlike [`ItemEnum`], this does not carry any aditional info.
321321///
322322/// Part of [`ItemSummary`].
323- #[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
323+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
324324#[ serde( rename_all = "snake_case" ) ]
325325pub enum ItemKind {
326326 /// A module declaration, e.g. `mod foo;` or `mod foo {}`
@@ -904,7 +904,7 @@ pub enum GenericBound {
904904}
905905
906906/// A set of modifiers applied to a trait.
907- #[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
907+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
908908#[ serde( rename_all = "snake_case" ) ]
909909pub enum TraitBoundModifier {
910910 /// Marks the absence of a modifier.
@@ -1205,7 +1205,7 @@ pub struct ProcMacro {
12051205}
12061206
12071207/// The way a [`ProcMacro`] is declared to be used.
1208- #[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
1208+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
12091209#[ serde( rename_all = "snake_case" ) ]
12101210pub enum MacroKind {
12111211 /// A bang macro `foo!()`.
0 commit comments