fix: fix regression in #109203
This commit is contained in:
@@ -423,11 +423,11 @@ impl<'a> Parser<'a> {
|
||||
if let token::Literal(Lit {
|
||||
kind: token::LitKind::Integer | token::LitKind::Float,
|
||||
symbol,
|
||||
suffix,
|
||||
suffix: Some(suffix), // no suffix makes it a valid literal
|
||||
}) = self.token.kind
|
||||
&& rustc_ast::MetaItemLit::from_token(&self.token).is_none()
|
||||
{
|
||||
Some((symbol.as_str().len(), suffix.unwrap()))
|
||||
Some((symbol.as_str().len(), suffix))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user