@@ -25,12 +25,11 @@ use ast::token::IdentIsRaw;
25
25
use rustc_ast as ast;
26
26
use rustc_ast:: ptr:: P ;
27
27
use rustc_ast:: token:: { self , Delimiter , Lit , LitKind , Token , TokenKind } ;
28
- use rustc_ast:: tokenstream:: AttrTokenTree ;
29
28
use rustc_ast:: util:: parser:: AssocOp ;
30
29
use rustc_ast:: {
31
30
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 ,
34
33
} ;
35
34
use rustc_ast_pretty:: pprust;
36
35
use rustc_data_structures:: fx:: FxHashSet ;
@@ -2366,6 +2365,8 @@ impl<'a> Parser<'a> {
2366
2365
}
2367
2366
err. span_label ( span, "expected expression" ) ;
2368
2367
2368
+ /* njn: temp disabled, which hurts tests/ui/macros/trace_faulty_macros.rs
2369
+
2369
2370
// Walk the chain of macro expansions for the current token to point at how the original
2370
2371
// code was interpreted. This helps the user realize when a macro argument of one type is
2371
2372
// later reinterpreted as a different type, like `$x:expr` being reinterpreted as `$x:pat`
@@ -2411,6 +2412,7 @@ impl<'a> Parser<'a> {
2411
2412
tokens",
2412
2413
);
2413
2414
}
2415
+ */
2414
2416
err
2415
2417
}
2416
2418
0 commit comments