-
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.
The `Float` trait provides correct `min` and `max` methods on floating point types, providing a consistent result regardless of the order the parameters are passed. These generic functions do not take the necessary performance hit to correctly support a partial order, so the true requirement should be given as a type bound. Closes #12712
- Loading branch information
1 parent
3fbee34
commit 4e1c215
Showing
4 changed files
with
7 additions
and
9 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
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
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
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
4e1c215
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 https://github.com/thestinger/rust/commit/4e1c2158f29fbb6c2bdb4d50f1fdc6a30685bc3c
4e1c215
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/cmp = 4e1c215 into auto
4e1c215
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/cmp = 4e1c215 merged ok, testing candidate = 42fc32f
4e1c215
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-linux-32-opt/builds/4758
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3846
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3852
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4760
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3846
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3851
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3919
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4756
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3858
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3864
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4519
4e1c215
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 = 42fc32f