@@ -25,12 +25,11 @@ use ast::token::IdentIsRaw;
2525use rustc_ast as ast;
2626use rustc_ast:: ptr:: P ;
2727use rustc_ast:: token:: { self , Delimiter , Lit , LitKind , Token , TokenKind } ;
28- use rustc_ast:: tokenstream:: AttrTokenTree ;
2928use rustc_ast:: util:: parser:: AssocOp ;
3029use rustc_ast:: {
3130 AngleBracketedArg , AngleBracketedArgs , AnonConst , AttrVec , BinOpKind , BindingMode , Block ,
32- BlockCheckMode , Expr , ExprKind , GenericArg , Generics , HasTokens , Item , ItemKind , Param , Pat ,
33- PatKind , Path , PathSegment , QSelf , Recovered , Ty , TyKind ,
31+ BlockCheckMode , Expr , ExprKind , GenericArg , Generics , Item , ItemKind , Param , Pat , PatKind ,
32+ Path , PathSegment , QSelf , Recovered , Ty , TyKind ,
3433} ;
3534use rustc_ast_pretty:: pprust;
3635use rustc_data_structures:: fx:: FxHashSet ;
@@ -2366,6 +2365,8 @@ impl<'a> Parser<'a> {
23662365 }
23672366 err. span_label ( span, "expected expression" ) ;
23682367
2368+ /* njn: temp disabled, which hurts tests/ui/macros/trace_faulty_macros.rs
2369+
23692370 // Walk the chain of macro expansions for the current token to point at how the original
23702371 // code was interpreted. This helps the user realize when a macro argument of one type is
23712372 // later reinterpreted as a different type, like `$x:expr` being reinterpreted as `$x:pat`
@@ -2411,6 +2412,7 @@ impl<'a> Parser<'a> {
24112412 tokens",
24122413 );
24132414 }
2415+ */
24142416 err
24152417 }
24162418
0 commit comments