@@ -32,6 +32,7 @@ use rustc_ast::ast::CaptureBy;
3232use rustc_ast:: ast:: Closure ;
3333use rustc_ast:: ast:: ClosureBinder ;
3434use rustc_ast:: ast:: Const ;
35+ use rustc_ast:: ast:: ConstItem ;
3536use rustc_ast:: ast:: Crate ;
3637use rustc_ast:: ast:: Defaultness ;
3738use rustc_ast:: ast:: DelimArgs ;
@@ -115,6 +116,7 @@ use rustc_ast::ast::QSelf;
115116use rustc_ast:: ast:: RangeEnd ;
116117use rustc_ast:: ast:: RangeLimits ;
117118use rustc_ast:: ast:: RangeSyntax ;
119+ use rustc_ast:: ast:: StaticItem ;
118120use rustc_ast:: ast:: Stmt ;
119121use rustc_ast:: ast:: StmtKind ;
120122use rustc_ast:: ast:: StrLit ;
@@ -454,6 +456,7 @@ spanless_eq_struct!(BareFnTy; unsafety ext generic_params decl decl_span);
454456spanless_eq_struct ! ( BindingAnnotation ; 0 1 ) ;
455457spanless_eq_struct ! ( Block ; stmts id rules span tokens could_be_bare_literal) ;
456458spanless_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) ;
457460spanless_eq_struct ! ( Crate ; attrs items spans id is_placeholder) ;
458461spanless_eq_struct ! ( DelimArgs ; dspan delim tokens) ;
459462spanless_eq_struct ! ( EnumDef ; variants) ;
@@ -495,6 +498,7 @@ spanless_eq_struct!(Path; span segments tokens);
495498spanless_eq_struct ! ( PathSegment ; ident id args) ;
496499spanless_eq_struct ! ( PolyTraitRef ; bound_generic_params trait_ref span) ;
497500spanless_eq_struct ! ( QSelf ; ty path_span position) ;
501+ spanless_eq_struct ! ( StaticItem ; ty mutability expr) ;
498502spanless_eq_struct ! ( Stmt ; id kind span) ;
499503spanless_eq_struct ! ( StrLit ; symbol suffix symbol_unescaped style span) ;
500504spanless_eq_struct ! ( StructExpr ; qself path fields rest) ;
@@ -513,7 +517,7 @@ spanless_eq_struct!(WhereEqPredicate; span lhs_ty rhs_ty);
513517spanless_eq_struct ! ( WhereRegionPredicate ; span lifetime bounds) ;
514518spanless_eq_enum ! ( AngleBracketedArg ; Arg ( 0 ) Constraint ( 0 ) ) ;
515519spanless_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 ) ) ;
517521spanless_eq_enum ! ( Async ; Yes ( span closure_id return_impl_trait_id) No ) ;
518522spanless_eq_enum ! ( AttrArgs ; Empty Delimited ( 0 ) Eq ( 0 1 ) ) ;
519523spanless_eq_enum ! ( AttrArgsEq ; Ast ( 0 ) Hir ( 0 ) ) ;
@@ -584,8 +588,8 @@ spanless_eq_enum!(ExprKind; Array(0) ConstBlock(0) Call(0 1) MethodCall(0)
584588spanless_eq_enum ! ( InlineAsmOperand ; In ( reg expr) Out ( reg late expr)
585589 InOut ( reg late expr) SplitInOut ( reg late in_expr out_expr) Const ( anon_const)
586590 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 )
589593 Union ( 0 1 ) Trait ( 0 ) TraitAlias ( 0 1 ) Impl ( 0 ) MacCall ( 0 ) MacroDef ( 0 ) ) ;
590594spanless_eq_enum ! ( LitKind ; Str ( 0 1 ) ByteStr ( 0 1 ) Byte ( 0 ) Char ( 0 ) Int ( 0 1 )
591595 Float ( 0 1 ) Bool ( 0 ) Err ) ;
0 commit comments