diff options
| author | Alex Huszagh <ahuszagh@gmail.com> | 2021-07-17 00:30:34 -0500 |
|---|---|---|
| committer | Alex Huszagh <ahuszagh@gmail.com> | 2021-07-17 00:30:34 -0500 |
| commit | 8752b403695a8830913571f0fd5ebfcf1483db37 (patch) | |
| tree | fba1ac7613edb617bee5b257b21bd6d10dad0662 /src/test/ui/pattern | |
| parent | d2b04f075c0ce010758c4c8674152ff89d1d73f3 (diff) | |
| download | rust-8752b403695a8830913571f0fd5ebfcf1483db37.tar.gz rust-8752b403695a8830913571f0fd5ebfcf1483db37.zip | |
Changed dec2flt to use the Eisel-Lemire algorithm.
Implementation is based off fast-float-rust, with a few notable changes. - Some unsafe methods have been removed. - Safe methods with inherently unsafe functionality have been removed. - All unsafe functionality is documented and provably safe. - Extensive documentation has been added for simpler maintenance. - Inline annotations on internal routines has been removed. - Fixed Python errors in src/etc/test-float-parse/runtests.py. - Updated test-float-parse to be a library, to avoid missing rand dependency. - Added regression tests for #31109 and #31407 in core tests. - Added regression tests for #31109 and #31407 in ui tests. - Use the existing slice primitive to simplify shared dec2flt methods - Remove Miri ignores from dec2flt, due to faster parsing times. - resolves #85198 - resolves #85214 - resolves #85234 - fixes #31407 - fixes #31109 - fixes #53015 - resolves #68396 - closes https://github.com/aldanor/fast-float-rust/issues/15
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/issue-68396-let-float-bug.rs | 7 | ||||
| -rw-r--r-- | src/test/ui/pattern/issue-68396-let-float-bug.stderr | 15 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/pattern/issue-68396-let-float-bug.rs b/src/test/ui/pattern/issue-68396-let-float-bug.rs deleted file mode 100644 index afc599a4b22..00000000000 --- a/src/test/ui/pattern/issue-68396-let-float-bug.rs +++ /dev/null @@ -1,7 +0,0 @@ -fn main() { - let 1234567890123456789012345678901234567890e-340: f64 = 0.0; - //~^ ERROR could not evaluate float literal (see issue #31407) - - fn param(1234567890123456789012345678901234567890e-340: f64) {} - //~^ ERROR could not evaluate float literal (see issue #31407) -} diff --git a/src/test/ui/pattern/issue-68396-let-float-bug.stderr b/src/test/ui/pattern/issue-68396-let-float-bug.stderr deleted file mode 100644 index 618aa4b5021..00000000000 --- a/src/test/ui/pattern/issue-68396-let-float-bug.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0080]: could not evaluate float literal (see issue #31407) - --> $DIR/issue-68396-let-float-bug.rs:2:9 - | -LL | let 1234567890123456789012345678901234567890e-340: f64 = 0.0; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error[E0080]: could not evaluate float literal (see issue #31407) - --> $DIR/issue-68396-let-float-bug.rs:5:14 - | -LL | fn param(1234567890123456789012345678901234567890e-340: f64) {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0080`. |
