about summary refs log tree commit diff
path: root/src/librustc_parse/parser/module.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-07 03:07:35 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-23 13:55:04 +0100
commit8456c403e1e79220d898b29074ce41dfeb752b08 (patch)
tree20f95a28e7691e6d3c99ee4b3b1ba22468ac3b40 /src/librustc_parse/parser/module.rs
parentefdea63c432fb1c88000bd1e12566641705fdb13 (diff)
extract parse_not_expr
Diffstat (limited to 'src/librustc_parse/parser/module.rs')
-rw-r--r--src/librustc_parse/parser/module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/module.rs b/src/librustc_parse/parser/module.rs
index eaeb3af4ca2..3f54e0b6de0 100644
--- a/src/librustc_parse/parser/module.rs
+++ b/src/librustc_parse/parser/module.rs
@@ -79,7 +79,7 @@ impl<'a> Parser<'a> {
         }
 
         if !self.eat(term) {
-            let token_str = self.this_token_descr();
+            let token_str = super::token_descr(&self.token);
             if !self.maybe_consume_incorrect_semicolon(&items) {
                 let mut err = self.fatal(&format!("expected item, found {}", token_str));
                 err.span_label(self.token.span, "expected item");