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
|
@ -525,7 +525,7 @@ impl<'a> Parser<'a> {
|
|||
fn ident_or_err(&mut self) -> PResult<'a, (Ident, /* is_raw */ bool)> {
|
||||
self.token.ident().ok_or_else(|| match self.prev_token.kind {
|
||||
TokenKind::DocComment(..) => {
|
||||
self.span_fatal_err(self.prev_token.span, Error::UselessDocComment)
|
||||
self.span_err(self.prev_token.span, Error::UselessDocComment)
|
||||
}
|
||||
_ => self.expected_ident_found(),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue