-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some of the constant values in std::f32 were incorrectly copied from std::f64. More broadly, both modules defined their constants redundantly in two places, which is what led to the bug. Moreover, the specs for some of the constants were incorrent, even when the values were correct. Closes #13297. Closes #11537.
- Loading branch information
Showing
3 changed files
with
94 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
266812e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at aturon@266812e
266812e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging aturon/rust/float-constants = 266812e into auto
266812e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aturon/rust/float-constants = 266812e merged ok, testing candidate = e01e78f
266812e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/5427
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5423
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4516
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4529
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5525
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/4613
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/4621
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5527
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4612
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/4618
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/4680
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2412
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5521
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/4616
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/4631
266812e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = e01e78f