Rename Parser::span_fatal_err
-> Parser::span_err
The name was misleading, it wasn't actually a fatal error.
This commit is contained in:
parent
d6d028369b
commit
955fdaea4a
4 changed files with 4 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue