Rename Parser::span_fatal_err -> Parser::span_err

The name was misleading, it wasn't actually a fatal error.
This commit is contained in:
Joshua Nelson 2021-03-27 22:46:50 -04:00
parent d6d028369b
commit 955fdaea4a
4 changed files with 4 additions and 8 deletions

View file

@ -168,7 +168,7 @@ impl<'a> Parser<'a> {
fn error_outer_attrs(&self, attrs: &[Attribute]) {
if let [.., last] = attrs {
if last.is_doc_comment() {
self.span_fatal_err(last.span, Error::UselessDocComment).emit();
self.span_err(last.span, Error::UselessDocComment).emit();
} else if attrs.iter().any(|a| a.style == AttrStyle::Outer) {
self.struct_span_err(last.span, "expected statement after outer attribute").emit();
}