From 4c1208a2d3c93eea607bd873ca5c0cd2c411dcd2 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Wed, 29 Jul 2015 12:50:09 +0200 Subject: [PATCH] Update for recent changes in libsyntax See https://github.com/rust-lang/rust/pull/27234 --- src/plugin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.rs b/src/plugin.rs index c7c869f..cfe37fd 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -82,7 +82,7 @@ fn parse_json(cx: &ExtCtxt, parser: &mut Parser) -> P { ($expr).to_json() }}) }, - &Token::Ident(id, IdentStyle::Plain) if id.as_str() == "null" => { + &Token::Ident(id, IdentStyle::Plain) if id.name.as_str() == "null" => { let _ = parser.bump(); quote_expr!(cx, { ::rustc_serialize::json::Json::Null }) },