-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stats: fix handling of NaN in
min
and max
The `cmp::min` and `cmp::max` functions are not correct with partially ordered values. #12712
- Loading branch information
1 parent
5973b0c
commit a871068
Showing
1 changed file
with
11 additions
and
3 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
a871068
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 alexcrichton
at https://github.com/thestinger/rust/commit/a871068b472d234e6515d5e979fac4826ec1dac1
a871068
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 thestinger/rust/min_max = a871068 into auto
a871068
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.
thestinger/rust/min_max = a871068 merged ok, testing candidate = 67c5d79
a871068
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/4597
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/2439
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/2439
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4594
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3694
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3700
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4610
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3698
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3704
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4612
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3698
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3703
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3771
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1589
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4606
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3707
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3714
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4371
a871068
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 = 67c5d79