diff options
| author | threadexception <hannes.gaumann@outlook.de> | 2021-11-15 17:46:44 +0100 |
|---|---|---|
| committer | threadexception <hannes.gaumann@outlook.de> | 2021-11-20 16:41:36 +0100 |
| commit | 5f6059d9a2433042ffeeec1eb42c94c5f1e75135 (patch) | |
| tree | ce1e5e9a2653ce0fc4a4a8e7316ced3fae7c1bd2 /compiler/rustc_parse/src/parser | |
| parent | 3d789740b09002e3d2be3ab1cf53fdca3995034c (diff) | |
| download | rust-5f6059d9a2433042ffeeec1eb42c94c5f1e75135.tar.gz rust-5f6059d9a2433042ffeeec1eb42c94c5f1e75135.zip | |
Fix float ICE
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 3d29d305021..0c8c45410bd 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1032,6 +1032,8 @@ impl<'a> Parser<'a> { [IdentLike(_), Punct('+' | '-')] | // 1e+2 | 1e-2 [IdentLike(_), Punct('+' | '-'), IdentLike(_)] | + // 1.2e+ | 1.2e- + [IdentLike(_), Punct('.'), IdentLike(_), Punct('+' | '-')] | // 1.2e+3 | 1.2e-3 [IdentLike(_), Punct('.'), IdentLike(_), Punct('+' | '-'), IdentLike(_)] => { // See the FIXME about `TokenCursor` above. |
