about summary refs log tree commit diff
path: root/src/librustc_parse/parser/ty.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/ty.rs
parentefdea63c432fb1c88000bd1e12566641705fdb13 (diff)
extract parse_not_expr
Diffstat (limited to 'src/librustc_parse/parser/ty.rs')
-rw-r--r--src/librustc_parse/parser/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/ty.rs b/src/librustc_parse/parser/ty.rs
index fe3db358acc..049c077c3ce 100644
--- a/src/librustc_parse/parser/ty.rs
+++ b/src/librustc_parse/parser/ty.rs
@@ -135,7 +135,7 @@ impl<'a> Parser<'a> {
                 TyKind::Err
             }
         } else {
-            let msg = format!("expected type, found {}", self.this_token_descr());
+            let msg = format!("expected type, found {}", super::token_descr(&self.token));
             let mut err = self.struct_span_err(self.token.span, &msg);
             err.span_label(self.token.span, "expected type");
             self.maybe_annotate_with_ascription(&mut err, true);