@@ -3063,7 +3063,7 @@ impl ItemId {
30633063/// An item
30643064///
30653065/// The name might be a dummy name in case of anonymous items
3066- #[ derive( Debug , HashStable_Generic ) ]
3066+ #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
30673067pub struct Item < ' hir > {
30683068 pub ident : Ident ,
30693069 pub owner_id : OwnerId ,
@@ -3271,7 +3271,7 @@ impl FnHeader {
32713271 }
32723272}
32733273
3274- #[ derive( Debug , HashStable_Generic ) ]
3274+ #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
32753275pub enum ItemKind < ' hir > {
32763276 /// An `extern crate` item, with optional *original* crate name if the crate was renamed.
32773277 ///
@@ -3292,7 +3292,7 @@ pub enum ItemKind<'hir> {
32923292 /// A function declaration.
32933293 Fn ( FnSig < ' hir > , & ' hir Generics < ' hir > , BodyId ) ,
32943294 /// A MBE macro definition (`macro_rules!` or `macro`).
3295- Macro ( ast:: MacroDef , MacroKind ) ,
3295+ Macro ( & ' hir ast:: MacroDef , MacroKind ) ,
32963296 /// A module.
32973297 Mod ( & ' hir Mod < ' hir > ) ,
32983298 /// An external module, e.g. `extern { .. }`.
0 commit comments