Eliminate comments::Literal
This commit is contained in:
parent
751ae5af1a
commit
a5b3f33cb9
7 changed files with 61 additions and 210 deletions
|
@ -2121,11 +2121,11 @@ impl<'a> Parser<'a> {
|
|||
Applicability::MachineApplicable,
|
||||
);
|
||||
err.emit();
|
||||
return Ok(match float_suffix {
|
||||
"f32" => (ast::LitKind::Float(val, ast::FloatTy::F32), token::Float(val), suffix),
|
||||
"f64" => (ast::LitKind::Float(val, ast::FloatTy::F64), token::Float(val), suffix),
|
||||
_ => (ast::LitKind::FloatUnsuffixed(val), token::Float(val), suffix),
|
||||
});
|
||||
return Ok((match float_suffix {
|
||||
"f32" => ast::LitKind::Float(val, ast::FloatTy::F32),
|
||||
"f64" => ast::LitKind::Float(val, ast::FloatTy::F64),
|
||||
_ => ast::LitKind::FloatUnsuffixed(val),
|
||||
}, token::Float(val), suffix));
|
||||
} else {
|
||||
unreachable!();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue