diff options
Diffstat (limited to 'src/libsyntax/diagnostics/plugin.rs')
| -rw-r--r-- | src/libsyntax/diagnostics/plugin.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs index b8795ad5be8..d9d549f6841 100644 --- a/src/libsyntax/diagnostics/plugin.rs +++ b/src/libsyntax/diagnostics/plugin.rs @@ -50,7 +50,7 @@ pub fn expand_diagnostic_used<'cx>(ecx: &'cx mut ExtCtxt, token_tree: &[TokenTree]) -> Box<MacResult+'cx> { let code = match token_tree { - [ast::TtToken(_, token::IDENT(code, _))] => code, + [ast::TtToken(_, token::Ident(code, _))] => code, _ => unreachable!() }; with_registered_diagnostics(|diagnostics| { @@ -82,12 +82,12 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt, token_tree: &[TokenTree]) -> Box<MacResult+'cx> { let (code, description) = match token_tree { - [ast::TtToken(_, token::IDENT(ref code, _))] => { + [ast::TtToken(_, token::Ident(ref code, _))] => { (code, None) }, - [ast::TtToken(_, token::IDENT(ref code, _)), - ast::TtToken(_, token::COMMA), - ast::TtToken(_, token::LIT_STR_RAW(description, _))] => { + [ast::TtToken(_, token::Ident(ref code, _)), + ast::TtToken(_, token::Comma), + ast::TtToken(_, token::LitStrRaw(description, _))] => { (code, Some(description)) } _ => unreachable!() @@ -110,7 +110,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt, token_tree: &[TokenTree]) -> Box<MacResult+'cx> { let name = match token_tree { - [ast::TtToken(_, token::IDENT(ref name, _))] => name, + [ast::TtToken(_, token::Ident(ref name, _))] => name, _ => unreachable!() }; |
