about summary refs log tree commit diff
path: root/src/librustc_parse/parser/expr.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-31 00:20:41 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-31 04:33:34 +0100
commit5a64ba63862906588b0dcd8ea2ed9884ec44f4a8 (patch)
tree0cd9756514dc9433cebbebbdc55d231d93809634 /src/librustc_parse/parser/expr.rs
parentb6fc87c5b9af5d626e2b85d008c7146a29733536 (diff)
downloadrust-5a64ba63862906588b0dcd8ea2ed9884ec44f4a8.tar.gz
rust-5a64ba63862906588b0dcd8ea2ed9884ec44f4a8.zip
parser: span_fatal -> struct_span_err
Diffstat (limited to 'src/librustc_parse/parser/expr.rs')
-rw-r--r--src/librustc_parse/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs
index f5cefeca339..49ca5abe97f 100644
--- a/src/librustc_parse/parser/expr.rs
+++ b/src/librustc_parse/parser/expr.rs
@@ -1137,7 +1137,7 @@ impl<'a> Parser<'a> {
     pub(super) fn parse_lit(&mut self) -> PResult<'a, Lit> {
         self.parse_opt_lit().ok_or_else(|| {
             let msg = format!("unexpected token: {}", super::token_descr(&self.token));
-            self.span_fatal(self.token.span, &msg)
+            self.struct_span_err(self.token.span, &msg)
         })
     }