about summary refs log tree commit diff
path: root/src/libsyntax/diagnostics/plugin.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-05-19 01:04:26 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-05-23 12:46:24 +0300
commitca2a50fad7439f02a9e99f8107ffed8460fc8c44 (patch)
tree4552fd5c786238aa51f716f983804f8c101dc1fd /src/libsyntax/diagnostics/plugin.rs
parent558559e70f648ff518da5ada726da2f04b617197 (diff)
downloadrust-ca2a50fad7439f02a9e99f8107ffed8460fc8c44.tar.gz
rust-ca2a50fad7439f02a9e99f8107ffed8460fc8c44.zip
syntax: Turn `token::Lit` into a struct
Diffstat (limited to 'src/libsyntax/diagnostics/plugin.rs')
-rw-r--r--src/libsyntax/diagnostics/plugin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs
index e9476e2fdfd..0c57c23b2b5 100644
--- a/src/libsyntax/diagnostics/plugin.rs
+++ b/src/libsyntax/diagnostics/plugin.rs
@@ -77,8 +77,8 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt<'_>,
         },
         (3, Some(&TokenTree::Token(_, token::Ident(ref code, _))),
             Some(&TokenTree::Token(_, token::Comma)),
-            Some(&TokenTree::Token(_, token::Literal(token::StrRaw(description, _), None)))) => {
-            (code, Some(description))
+            Some(&TokenTree::Token(_, token::Literal(token::Lit { symbol, .. })))) => {
+            (code, Some(symbol))
         }
         _ => unreachable!()
     };