Skip to content

Commit 4c1208a

Browse files
committed
Update for recent changes in libsyntax
See rust-lang/rust#27234
1 parent b2b2033 commit 4c1208a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn parse_json(cx: &ExtCtxt, parser: &mut Parser) -> P<Expr> {
8282
($expr).to_json()
8383
}})
8484
},
85-
&Token::Ident(id, IdentStyle::Plain) if id.as_str() == "null" => {
85+
&Token::Ident(id, IdentStyle::Plain) if id.name.as_str() == "null" => {
8686
let _ = parser.bump();
8787
quote_expr!(cx, { ::rustc_serialize::json::Json::Null })
8888
},

0 commit comments

Comments
 (0)