@@ -32,6 +32,7 @@ use rustc_ast::ast::CaptureBy;
32
32
use rustc_ast:: ast:: Closure ;
33
33
use rustc_ast:: ast:: ClosureBinder ;
34
34
use rustc_ast:: ast:: Const ;
35
+ use rustc_ast:: ast:: ConstItem ;
35
36
use rustc_ast:: ast:: Crate ;
36
37
use rustc_ast:: ast:: Defaultness ;
37
38
use rustc_ast:: ast:: DelimArgs ;
@@ -115,6 +116,7 @@ use rustc_ast::ast::QSelf;
115
116
use rustc_ast:: ast:: RangeEnd ;
116
117
use rustc_ast:: ast:: RangeLimits ;
117
118
use rustc_ast:: ast:: RangeSyntax ;
119
+ use rustc_ast:: ast:: StaticItem ;
118
120
use rustc_ast:: ast:: Stmt ;
119
121
use rustc_ast:: ast:: StmtKind ;
120
122
use rustc_ast:: ast:: StrLit ;
@@ -454,6 +456,7 @@ spanless_eq_struct!(BareFnTy; unsafety ext generic_params decl decl_span);
454
456
spanless_eq_struct ! ( BindingAnnotation ; 0 1 ) ;
455
457
spanless_eq_struct ! ( Block ; stmts id rules span tokens could_be_bare_literal) ;
456
458
spanless_eq_struct ! ( Closure ; binder capture_clause constness asyncness movability fn_decl body !fn_decl_span !fn_arg_span) ;
459
+ spanless_eq_struct ! ( ConstItem ; defaultness ty expr) ;
457
460
spanless_eq_struct ! ( Crate ; attrs items spans id is_placeholder) ;
458
461
spanless_eq_struct ! ( DelimArgs ; dspan delim tokens) ;
459
462
spanless_eq_struct ! ( EnumDef ; variants) ;
@@ -495,6 +498,7 @@ spanless_eq_struct!(Path; span segments tokens);
495
498
spanless_eq_struct ! ( PathSegment ; ident id args) ;
496
499
spanless_eq_struct ! ( PolyTraitRef ; bound_generic_params trait_ref span) ;
497
500
spanless_eq_struct ! ( QSelf ; ty path_span position) ;
501
+ spanless_eq_struct ! ( StaticItem ; ty mutability expr) ;
498
502
spanless_eq_struct ! ( Stmt ; id kind span) ;
499
503
spanless_eq_struct ! ( StrLit ; symbol suffix symbol_unescaped style span) ;
500
504
spanless_eq_struct ! ( StructExpr ; qself path fields rest) ;
@@ -513,7 +517,7 @@ spanless_eq_struct!(WhereEqPredicate; span lhs_ty rhs_ty);
513
517
spanless_eq_struct ! ( WhereRegionPredicate ; span lifetime bounds) ;
514
518
spanless_eq_enum ! ( AngleBracketedArg ; Arg ( 0 ) Constraint ( 0 ) ) ;
515
519
spanless_eq_enum ! ( AssocConstraintKind ; Equality ( term) Bound ( bounds) ) ;
516
- spanless_eq_enum ! ( AssocItemKind ; Const ( 0 1 2 ) Fn ( 0 ) Type ( 0 ) MacCall ( 0 ) ) ;
520
+ spanless_eq_enum ! ( AssocItemKind ; Const ( 0 ) Fn ( 0 ) Type ( 0 ) MacCall ( 0 ) ) ;
517
521
spanless_eq_enum ! ( Async ; Yes ( span closure_id return_impl_trait_id) No ) ;
518
522
spanless_eq_enum ! ( AttrArgs ; Empty Delimited ( 0 ) Eq ( 0 1 ) ) ;
519
523
spanless_eq_enum ! ( AttrArgsEq ; Ast ( 0 ) Hir ( 0 ) ) ;
@@ -584,8 +588,8 @@ spanless_eq_enum!(ExprKind; Array(0) ConstBlock(0) Call(0 1) MethodCall(0)
584
588
spanless_eq_enum ! ( InlineAsmOperand ; In ( reg expr) Out ( reg late expr)
585
589
InOut ( reg late expr) SplitInOut ( reg late in_expr out_expr) Const ( anon_const)
586
590
Sym ( sym) ) ;
587
- spanless_eq_enum ! ( ItemKind ; ExternCrate ( 0 ) Use ( 0 ) Static ( 0 1 2 ) Const ( 0 1 2 )
588
- Fn ( 0 ) Mod ( 0 1 ) ForeignMod ( 0 ) GlobalAsm ( 0 ) TyAlias ( 0 ) Enum ( 0 1 ) Struct ( 0 1 )
591
+ spanless_eq_enum ! ( ItemKind ; ExternCrate ( 0 ) Use ( 0 ) Static ( 0 ) Const ( 0 ) Fn ( 0 )
592
+ Mod ( 0 1 ) ForeignMod ( 0 ) GlobalAsm ( 0 ) TyAlias ( 0 ) Enum ( 0 1 ) Struct ( 0 1 )
589
593
Union ( 0 1 ) Trait ( 0 ) TraitAlias ( 0 1 ) Impl ( 0 ) MacCall ( 0 ) MacroDef ( 0 ) ) ;
590
594
spanless_eq_enum ! ( LitKind ; Str ( 0 1 ) ByteStr ( 0 1 ) Byte ( 0 ) Char ( 0 ) Int ( 0 1 )
591
595
Float ( 0 1 ) Bool ( 0 ) Err ) ;
0 commit comments