]> git.lizzy.rs Git - rust.git/commit
auto merge of #12869 : thestinger/rust/cmp, r=brson
authorbors <bors@rust-lang.org>
Fri, 14 Mar 2014 20:41:36 +0000 (13:41 -0700)
committerbors <bors@rust-lang.org>
Fri, 14 Mar 2014 20:41:36 +0000 (13:41 -0700)
commit42fc32f293eb7de7139f058fa06f580a503b87b5
tree3e59bee58501bd7e74f7ca03c887f78eef81b6ab
parente99d523707c8058383e7a551e49d59ce622d5765
parent4e1c2158f29fbb6c2bdb4d50f1fdc6a30685bc3c
auto merge of #12869 : thestinger/rust/cmp, r=brson

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
src/doc/guide-tasks.md
src/libtest/lib.rs