@@ -87,6 +87,7 @@ use rustc_ast::ast::GenericParamKind;
8787use rustc_ast:: ast:: Generics ;
8888use rustc_ast:: ast:: Impl ;
8989use rustc_ast:: ast:: ImplPolarity ;
90+ use rustc_ast:: ast:: ImplRestriction ;
9091use rustc_ast:: ast:: Inline ;
9192use rustc_ast:: ast:: InlineAsm ;
9293use rustc_ast:: ast:: InlineAsmOperand ;
@@ -140,6 +141,7 @@ use rustc_ast::ast::RangeEnd;
140141use rustc_ast:: ast:: RangeLimits ;
141142use rustc_ast:: ast:: RangeSyntax ;
142143use rustc_ast:: ast:: Recovered ;
144+ use rustc_ast:: ast:: RestrictionKind ;
143145use rustc_ast:: ast:: Safety ;
144146use rustc_ast:: ast:: StaticItem ;
145147use rustc_ast:: ast:: Stmt ;
@@ -522,6 +524,7 @@ spanless_eq_struct!(FormatPlaceholder; argument span format_trait format_options
522524spanless_eq_struct ! ( GenericParam ; id ident attrs bounds is_placeholder kind !colon_span) ;
523525spanless_eq_struct ! ( Generics ; params where_clause span) ;
524526spanless_eq_struct ! ( Impl ; generics constness of_trait self_ty items) ;
527+ spanless_eq_struct ! ( ImplRestriction ; kind span tokens) ;
525528spanless_eq_struct ! ( InlineAsm ; asm_macro template template_strs operands clobber_abis options line_spans) ;
526529spanless_eq_struct ! ( InlineAsmSym ; id qself path) ;
527530spanless_eq_struct ! ( Item <K >; attrs id span vis kind !tokens) ;
@@ -550,7 +553,7 @@ spanless_eq_struct!(Stmt; id kind span);
550553spanless_eq_struct ! ( StrLit ; symbol suffix symbol_unescaped style span) ;
551554spanless_eq_struct ! ( StructExpr ; qself path fields rest) ;
552555spanless_eq_struct ! ( Token ; kind span) ;
553- spanless_eq_struct ! ( Trait ; constness safety is_auto ident generics bounds items) ;
556+ spanless_eq_struct ! ( Trait ; constness safety is_auto impl_restriction ident generics bounds items) ;
554557spanless_eq_struct ! ( TraitAlias ; constness ident generics bounds) ;
555558spanless_eq_struct ! ( TraitBoundModifiers ; constness asyncness polarity) ;
556559spanless_eq_struct ! ( TraitImplHeader ; defaultness safety polarity trait_ref) ;
@@ -630,10 +633,11 @@ spanless_eq_enum!(PreciseCapturingArg; Lifetime(0) Arg(0 1));
630633spanless_eq_enum ! ( RangeEnd ; Included ( 0 ) Excluded ) ;
631634spanless_eq_enum ! ( RangeLimits ; HalfOpen Closed ) ;
632635spanless_eq_enum ! ( Recovered ; No Yes ( 0 ) ) ;
636+ spanless_eq_enum ! ( RestrictionKind ; Unrestricted Restricted ( path id shorthand) ) ;
633637spanless_eq_enum ! ( Safety ; Unsafe ( 0 ) Safe ( 0 ) Default ) ;
634638spanless_eq_enum ! ( StmtKind ; Let ( 0 ) Item ( 0 ) Expr ( 0 ) Semi ( 0 ) Empty MacCall ( 0 ) ) ;
635639spanless_eq_enum ! ( StrStyle ; Cooked Raw ( 0 ) ) ;
636- spanless_eq_enum ! ( StructRest ; Base ( 0 ) Rest ( 0 ) None ) ;
640+ spanless_eq_enum ! ( StructRest ; Base ( 0 ) Rest ( 0 ) None NoneWithError ( 0 ) ) ;
637641spanless_eq_enum ! ( Term ; Ty ( 0 ) Const ( 0 ) ) ;
638642spanless_eq_enum ! ( TokenTree ; Token ( 0 1 ) Delimited ( 0 1 2 3 ) ) ;
639643spanless_eq_enum ! ( TraitObjectSyntax ; Dyn None ) ;
0 commit comments