diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-11-19 10:17:40 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-11-19 12:52:31 +1100 |
| commit | 5b5638f6863803477d56e200d6a9a208015838c1 (patch) | |
| tree | 2416a92209706f29f9bb81c4becf35c7177adc4f /src/libsyntax/diagnostics | |
| parent | c8d6e3b2c2a780eff92299da5d1c02e081617088 (diff) | |
Switch to an independent enum for `Lit*` subtokens.
Diffstat (limited to 'src/libsyntax/diagnostics')
| -rw-r--r-- | src/libsyntax/diagnostics/plugin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs index d077fbd7bf0..b928fc778e8 100644 --- a/src/libsyntax/diagnostics/plugin.rs +++ b/src/libsyntax/diagnostics/plugin.rs @@ -87,7 +87,7 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt, }, [ast::TtToken(_, token::Ident(ref code, _)), ast::TtToken(_, token::Comma), - ast::TtToken(_, token::LitStrRaw(description, _))] => { + ast::TtToken(_, token::Literal(token::StrRaw(description, _)))] => { (code, Some(description)) } _ => unreachable!() |
