@@ -265,7 +265,7 @@ impl InferArg {
265265#[ derive( Debug , HashStable_Generic ) ]
266266pub enum GenericArg < ' hir > {
267267 Lifetime ( Lifetime ) ,
268- Type ( Ty < ' hir > ) ,
268+ Type ( & ' hir Ty < ' hir > ) ,
269269 Const ( ConstArg ) ,
270270 Infer ( InferArg ) ,
271271}
@@ -280,7 +280,7 @@ impl GenericArg<'_> {
280280 }
281281 }
282282
283- pub fn id ( & self ) -> HirId {
283+ pub fn hir_id ( & self ) -> HirId {
284284 match self {
285285 GenericArg :: Lifetime ( l) => l. hir_id ,
286286 GenericArg :: Type ( t) => t. hir_id ,
@@ -1438,7 +1438,7 @@ pub struct BodyId {
14381438#[ derive( Debug , HashStable_Generic ) ]
14391439pub struct Body < ' hir > {
14401440 pub params : & ' hir [ Param < ' hir > ] ,
1441- pub value : Expr < ' hir > ,
1441+ pub value : & ' hir Expr < ' hir > ,
14421442 pub generator_kind : Option < GeneratorKind > ,
14431443}
14441444
@@ -2561,23 +2561,23 @@ pub enum TyKind<'hir> {
25612561pub enum InlineAsmOperand < ' hir > {
25622562 In {
25632563 reg : InlineAsmRegOrRegClass ,
2564- expr : Expr < ' hir > ,
2564+ expr : & ' hir Expr < ' hir > ,
25652565 } ,
25662566 Out {
25672567 reg : InlineAsmRegOrRegClass ,
25682568 late : bool ,
2569- expr : Option < Expr < ' hir > > ,
2569+ expr : Option < & ' hir Expr < ' hir > > ,
25702570 } ,
25712571 InOut {
25722572 reg : InlineAsmRegOrRegClass ,
25732573 late : bool ,
2574- expr : Expr < ' hir > ,
2574+ expr : & ' hir Expr < ' hir > ,
25752575 } ,
25762576 SplitInOut {
25772577 reg : InlineAsmRegOrRegClass ,
25782578 late : bool ,
2579- in_expr : Expr < ' hir > ,
2580- out_expr : Option < Expr < ' hir > > ,
2579+ in_expr : & ' hir Expr < ' hir > ,
2580+ out_expr : Option < & ' hir Expr < ' hir > > ,
25812581 } ,
25822582 Const {
25832583 anon_const : AnonConst ,
@@ -2991,7 +2991,7 @@ pub enum ItemKind<'hir> {
29912991 /// A MBE macro definition (`macro_rules!` or `macro`).
29922992 Macro ( ast:: MacroDef , MacroKind ) ,
29932993 /// A module.
2994- Mod ( Mod < ' hir > ) ,
2994+ Mod ( & ' hir Mod < ' hir > ) ,
29952995 /// An external module, e.g. `extern { .. }`.
29962996 ForeignMod { abi : Abi , items : & ' hir [ ForeignItemRef ] } ,
29972997 /// Module-level inline assembly (from `global_asm!`).
@@ -3495,16 +3495,32 @@ impl<'hir> Node<'hir> {
34953495mod size_asserts {
34963496 use super :: * ;
34973497 // These are in alphabetical order, which is easy to maintain.
3498- static_assert_size ! ( Block <' static >, 48 ) ;
3499- static_assert_size ! ( Expr <' static >, 56 ) ;
3500- static_assert_size ! ( ForeignItem <' static >, 72 ) ;
3498+ static_assert_size ! ( Block <' _>, 48 ) ;
3499+ static_assert_size ! ( Body <' _>, 32 ) ;
3500+ static_assert_size ! ( Expr <' _>, 56 ) ;
3501+ static_assert_size ! ( ExprKind <' _>, 40 ) ;
3502+ static_assert_size ! ( FnDecl <' _>, 40 ) ;
3503+ static_assert_size ! ( ForeignItem <' _>, 72 ) ;
3504+ static_assert_size ! ( ForeignItemKind <' _>, 40 ) ;
3505+ static_assert_size ! ( GenericArg <' _>, 40 ) ;
35013506 static_assert_size ! ( GenericBound <' _>, 48 ) ;
3502- static_assert_size ! ( Generics <' static >, 56 ) ;
3503- static_assert_size ! ( ImplItem <' static >, 88 ) ;
3504- static_assert_size ! ( Impl <' static >, 80 ) ;
3505- static_assert_size ! ( Item <' static >, 80 ) ;
3506- static_assert_size ! ( Pat <' static >, 88 ) ;
3507- static_assert_size ! ( QPath <' static >, 24 ) ;
3508- static_assert_size ! ( TraitItem <' static >, 96 ) ;
3509- static_assert_size ! ( Ty <' static >, 72 ) ;
3507+ static_assert_size ! ( Generics <' _>, 56 ) ;
3508+ static_assert_size ! ( Impl <' _>, 80 ) ;
3509+ static_assert_size ! ( ImplItem <' _>, 88 ) ;
3510+ static_assert_size ! ( ImplItemKind <' _>, 40 ) ;
3511+ static_assert_size ! ( Item <' _>, 80 ) ;
3512+ static_assert_size ! ( ItemKind <' _>, 48 ) ;
3513+ static_assert_size ! ( Local <' _>, 64 ) ;
3514+ static_assert_size ! ( Param <' _>, 32 ) ;
3515+ static_assert_size ! ( Pat <' _>, 88 ) ;
3516+ static_assert_size ! ( PatKind <' _>, 64 ) ;
3517+ static_assert_size ! ( Path <' _>, 48 ) ;
3518+ static_assert_size ! ( PathSegment <' _>, 56 ) ;
3519+ static_assert_size ! ( QPath <' _>, 24 ) ;
3520+ static_assert_size ! ( Stmt <' _>, 32 ) ;
3521+ static_assert_size ! ( StmtKind <' _>, 16 ) ;
3522+ static_assert_size ! ( TraitItem <' _>, 96 ) ;
3523+ static_assert_size ! ( TraitItemKind <' _>, 56 ) ;
3524+ static_assert_size ! ( Ty <' _>, 72 ) ;
3525+ static_assert_size ! ( TyKind <' _>, 56 ) ;
35103526}
0 commit comments