@@ -9,15 +9,16 @@ use rustc_ast::ast::{
99 Defaultness , EnumDef , Expr , ExprField , ExprKind , Extern , FieldDef , FloatTy , Fn , FnDecl ,
1010 FnHeader , FnRetTy , FnSig , ForeignItemKind , ForeignMod , GenericArg , GenericArgs , GenericBound ,
1111 GenericParam , GenericParamKind , Generics , Impl , ImplPolarity , Inline , InlineAsm ,
12- InlineAsmOperand , InlineAsmOptions , InlineAsmRegOrRegClass , InlineAsmTemplatePiece , IntTy ,
13- IsAuto , Item , ItemKind , Label , Lifetime , Lit , LitFloatType , LitIntType , LitKind , Local ,
14- LocalKind , MacArgs , MacCall , MacCallStmt , MacDelimiter , MacStmtStyle , MacroDef , ModKind ,
15- ModSpans , Movability , MutTy , Mutability , NodeId , Param , ParenthesizedArgs , Pat , PatField ,
16- PatKind , Path , PathSegment , PolyTraitRef , QSelf , RangeEnd , RangeLimits , RangeSyntax , Stmt ,
17- StmtKind , StrLit , StrStyle , StructExpr , StructRest , Term , Trait , TraitBoundModifier ,
18- TraitObjectSyntax , TraitRef , Ty , TyAlias , TyAliasWhereClause , TyKind , UintTy , UnOp , Unsafe ,
19- UnsafeSource , UseTree , UseTreeKind , Variant , VariantData , Visibility , VisibilityKind ,
20- WhereBoundPredicate , WhereClause , WhereEqPredicate , WherePredicate , WhereRegionPredicate ,
12+ InlineAsmOperand , InlineAsmOptions , InlineAsmRegOrRegClass , InlineAsmSym ,
13+ InlineAsmTemplatePiece , IntTy , IsAuto , Item , ItemKind , Label , Lifetime , Lit , LitFloatType ,
14+ LitIntType , LitKind , Local , LocalKind , MacArgs , MacCall , MacCallStmt , MacDelimiter ,
15+ MacStmtStyle , MacroDef , ModKind , ModSpans , Movability , MutTy , Mutability , NodeId , Param ,
16+ ParenthesizedArgs , Pat , PatField , PatKind , Path , PathSegment , PolyTraitRef , QSelf , RangeEnd ,
17+ RangeLimits , RangeSyntax , Stmt , StmtKind , StrLit , StrStyle , StructExpr , StructRest , Term ,
18+ Trait , TraitBoundModifier , TraitObjectSyntax , TraitRef , Ty , TyAlias , TyAliasWhereClause ,
19+ TyKind , UintTy , UnOp , Unsafe , UnsafeSource , UseTree , UseTreeKind , Variant , VariantData ,
20+ Visibility , VisibilityKind , WhereBoundPredicate , WhereClause , WhereEqPredicate , WherePredicate ,
21+ WhereRegionPredicate ,
2122} ;
2223use rustc_ast:: ptr:: P ;
2324use rustc_ast:: token:: { self , CommentKind , DelimToken , Nonterminal , Token , TokenKind } ;
@@ -316,6 +317,7 @@ spanless_eq_struct!(GenericParam; id ident attrs bounds is_placeholder kind);
316317spanless_eq_struct ! ( Generics ; params where_clause span) ;
317318spanless_eq_struct ! ( Impl ; defaultness unsafety generics constness polarity of_trait self_ty items) ;
318319spanless_eq_struct ! ( InlineAsm ; template template_strs operands clobber_abis options line_spans) ;
320+ spanless_eq_struct ! ( InlineAsmSym ; id qself path) ;
319321spanless_eq_struct ! ( Item <K >; attrs id span vis ident kind !tokens) ;
320322spanless_eq_struct ! ( Label ; ident) ;
321323spanless_eq_struct ! ( Lifetime ; id ident) ;
@@ -413,7 +415,7 @@ spanless_eq_enum!(ExprKind; Box(0) Array(0) ConstBlock(0) Call(0 1)
413415 MacCall ( 0 ) Struct ( 0 ) Repeat ( 0 1 ) Paren ( 0 ) Try ( 0 ) Yield ( 0 ) Err ) ;
414416spanless_eq_enum ! ( InlineAsmOperand ; In ( reg expr) Out ( reg late expr)
415417 InOut ( reg late expr) SplitInOut ( reg late in_expr out_expr) Const ( anon_const)
416- Sym ( expr ) ) ;
418+ Sym ( sym ) ) ;
417419spanless_eq_enum ! ( ItemKind ; ExternCrate ( 0 ) Use ( 0 ) Static ( 0 1 2 ) Const ( 0 1 2 )
418420 Fn ( 0 ) Mod ( 0 1 ) ForeignMod ( 0 ) GlobalAsm ( 0 ) TyAlias ( 0 ) Enum ( 0 1 ) Struct ( 0 1 )
419421 Union ( 0 1 ) Trait ( 0 ) TraitAlias ( 0 1 ) Impl ( 0 ) MacCall ( 0 ) MacroDef ( 0 ) ) ;
0 commit comments