@@ -12,12 +12,12 @@ use rustc_ast::ast::{
1212 InlineAsmOperand , InlineAsmOptions , InlineAsmRegOrRegClass , InlineAsmTemplatePiece , IntTy ,
1313 IsAuto , Item , ItemKind , Label , Lifetime , Lit , LitFloatType , LitIntType , LitKind , Local ,
1414 LocalKind , MacArgs , MacCall , MacCallStmt , MacDelimiter , MacStmtStyle , MacroDef , ModKind ,
15- Movability , MutTy , Mutability , NodeId , Param , ParenthesizedArgs , Pat , PatField , PatKind , Path ,
16- PathSegment , PolyTraitRef , QSelf , RangeEnd , RangeLimits , RangeSyntax , Stmt , StmtKind , StrLit ,
17- StrStyle , StructExpr , StructRest , Term , Trait , TraitBoundModifier , TraitObjectSyntax , TraitRef ,
18- Ty , TyAlias , TyAliasWhereClause , TyKind , UintTy , UnOp , Unsafe , UnsafeSource , UseTree ,
19- UseTreeKind , Variant , VariantData , Visibility , VisibilityKind , WhereBoundPredicate ,
20- WhereClause , WhereEqPredicate , WherePredicate , WhereRegionPredicate ,
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 ,
2121} ;
2222use rustc_ast:: ptr:: P ;
2323use rustc_ast:: token:: { self , CommentKind , DelimToken , Nonterminal , Token , TokenKind } ;
@@ -302,7 +302,7 @@ spanless_eq_struct!(Attribute; kind id style span);
302302spanless_eq_struct ! ( AttributesData ; attrs tokens) ;
303303spanless_eq_struct ! ( BareFnTy ; unsafety ext generic_params decl) ;
304304spanless_eq_struct ! ( Block ; stmts id rules span tokens could_be_bare_literal) ;
305- spanless_eq_struct ! ( Crate ; attrs items span id is_placeholder) ;
305+ spanless_eq_struct ! ( Crate ; attrs items spans id is_placeholder) ;
306306spanless_eq_struct ! ( EnumDef ; variants) ;
307307spanless_eq_struct ! ( Expr ; id kind span attrs !tokens) ;
308308spanless_eq_struct ! ( ExprField ; attrs id span ident expr is_shorthand is_placeholder) ;
@@ -324,6 +324,7 @@ spanless_eq_struct!(Local; pat ty kind id span attrs !tokens);
324324spanless_eq_struct ! ( MacCall ; path args prior_type_ascription) ;
325325spanless_eq_struct ! ( MacCallStmt ; mac style attrs tokens) ;
326326spanless_eq_struct ! ( MacroDef ; body macro_rules) ;
327+ spanless_eq_struct ! ( ModSpans ; !inner_span !inject_use_span) ;
327328spanless_eq_struct ! ( MutTy ; ty mutbl) ;
328329spanless_eq_struct ! ( ParenthesizedArgs ; span inputs inputs_span output) ;
329330spanless_eq_struct ! ( Pat ; id kind span tokens) ;
0 commit comments