@@ -3063,7 +3063,7 @@ impl ItemId {
3063
3063
/// An item
3064
3064
///
3065
3065
/// The name might be a dummy name in case of anonymous items
3066
- #[ derive( Debug , HashStable_Generic ) ]
3066
+ #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
3067
3067
pub struct Item < ' hir > {
3068
3068
pub ident : Ident ,
3069
3069
pub owner_id : OwnerId ,
@@ -3271,7 +3271,7 @@ impl FnHeader {
3271
3271
}
3272
3272
}
3273
3273
3274
- #[ derive( Debug , HashStable_Generic ) ]
3274
+ #[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
3275
3275
pub enum ItemKind < ' hir > {
3276
3276
/// An `extern crate` item, with optional *original* crate name if the crate was renamed.
3277
3277
///
@@ -3292,7 +3292,7 @@ pub enum ItemKind<'hir> {
3292
3292
/// A function declaration.
3293
3293
Fn ( FnSig < ' hir > , & ' hir Generics < ' hir > , BodyId ) ,
3294
3294
/// A MBE macro definition (`macro_rules!` or `macro`).
3295
- Macro ( ast:: MacroDef , MacroKind ) ,
3295
+ Macro ( & ' hir ast:: MacroDef , MacroKind ) ,
3296
3296
/// A module.
3297
3297
Mod ( & ' hir Mod < ' hir > ) ,
3298
3298
/// An external module, e.g. `extern { .. }`.
0 commit comments