diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-09 19:04:04 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-11 14:24:21 +0300 |
| commit | a5b3f33cb90bf991342afa552bcd993e36f80fa7 (patch) | |
| tree | b9b0b68babb748088183f59438fed5baeba47fb9 /src/libsyntax/parse/parser.rs | |
| parent | 751ae5af1a561a93ce61e9971be4b254a57e6576 (diff) | |
| download | rust-a5b3f33cb90bf991342afa552bcd993e36f80fa7.tar.gz rust-a5b3f33cb90bf991342afa552bcd993e36f80fa7.zip | |
Eliminate `comments::Literal`
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b988cb1447d..8c0c2f4b6e2 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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!(); }; |
