diff options
| author | bors <bors@rust-lang.org> | 2014-06-25 04:31:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-25 04:31:19 +0000 |
| commit | 7a93beef7f692b34168ad69633f56483d38ad8fc (patch) | |
| tree | e99530b6eed86ae92bd76f9b0d092ff82763f388 /src/libsyntax/parse | |
| parent | 91be86af0952aebb1f7c1811a6abcccd7bd1c26e (diff) | |
| parent | 3d308fe65b5aa653b482341a04f301b02f263c3b (diff) | |
| download | rust-7a93beef7f692b34168ad69633f56483d38ad8fc.tar.gz rust-7a93beef7f692b34168ad69633f56483d38ad8fc.zip | |
auto merge of #15160 : alexcrichton/rust/remove-f128, r=brson
The f128 type has very little support in the compiler and the feature is basically unusable today. Supporting half-baked features in the compiler can be detrimental to the long-term development of the compiler, and hence this feature is being removed.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index add9a4cb9f3..ac570c88837 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -639,16 +639,9 @@ impl<'a> StringReader<'a> { /* FIXME (#2252): if this is out of range for either a 32-bit or 64-bit float, it won't be noticed till the back-end. */ - } else if c == '1' && n == '2' && self.nextnextch().unwrap_or('\x00') == '8' { - self.bump(); - self.bump(); - self.bump(); - let last_bpos = self.last_pos; - self.check_float_base(start_bpos, last_bpos, base); - return token::LIT_FLOAT(str_to_ident(num_str.as_slice()), ast::TyF128); } let last_bpos = self.last_pos; - self.err_span_(start_bpos, last_bpos, "expected `f32`, `f64` or `f128` suffix"); + self.err_span_(start_bpos, last_bpos, "expected `f32` or `f64` suffix"); } if is_float { let last_bpos = self.last_pos; |
