Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ff18c73

Browse files
committed
comment feedback
1 parent 9db8e18 commit ff18c73

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-2
lines changed

compiler/rustc_parse/src/parser/stmt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ impl<'a> Parser<'a> {
362362
let Err(_) = rustc_ast::Lit::from_token(&self.token) &&
363363
(lit.kind == token::LitKind::Integer || lit.kind == token::LitKind::Float) &&
364364
self.look_ahead(1, |t| matches!(t.kind, token::Eq) || matches!(t.kind, token::Colon ) ) {
365-
let err = self.sess.create_err(InvalidIdentiferStartsWithNumber { span: self.token.span });
366-
return Err(err);
365+
return Err(self.sess.create_err(InvalidIdentiferStartsWithNumber { span: self.token.span }));
367366
}
368367
Ok(())
369368
}

0 commit comments

Comments
 (0)