]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
src/doc/guide-tasks.md
src/libtest/lib.rs

Simple merge
Simple merge