about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-27 22:46:50 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-05-08 23:11:59 -0400
commit955fdaea4a187ab629266ff8fe88a1e3432fb592 (patch)
treeca5c74c2266526d2afb3d5a88416f7231470e49b /compiler/rustc_parse/src/parser/diagnostics.rs
parentd6d028369be9eb02d219506c0dd662a2f863fc18 (diff)
downloadrust-955fdaea4a187ab629266ff8fe88a1e3432fb592.tar.gz
rust-955fdaea4a187ab629266ff8fe88a1e3432fb592.zip
Rename `Parser::span_fatal_err` -> `Parser::span_err`
The name was misleading, it wasn't actually a fatal error.
Diffstat (limited to 'compiler/rustc_parse/src/parser/diagnostics.rs')
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs
index 70a5ac6f15e..72fdc78c30c 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -144,11 +144,7 @@ impl AttemptLocalParseRecovery {
 }
 
 impl<'a> Parser<'a> {
-    pub(super) fn span_fatal_err<S: Into<MultiSpan>>(
-        &self,
-        sp: S,
-        err: Error,
-    ) -> DiagnosticBuilder<'a> {
+    pub(super) fn span_err<S: Into<MultiSpan>>(&self, sp: S, err: Error) -> DiagnosticBuilder<'a> {
         err.span_err(sp, self.diagnostic())
     }