]> git.lizzy.rs Git - rust.git/commit
Remove redundant Ord method impls.
authorOGINO Masanori <masanori.ogino@gmail.com>
Thu, 8 Aug 2013 01:03:34 +0000 (10:03 +0900)
committerOGINO Masanori <masanori.ogino@gmail.com>
Fri, 9 Aug 2013 05:28:14 +0000 (14:28 +0900)
commitb4d6ae5bb8959affdb91a6b6791e725f97787344
treedc260f75791e1d195a457ca5acb5d9a1df9a7ea5
parent7a1b61d6317c27b735e5471d3d704584bea4c925
Remove redundant Ord method impls.

Basically, generic containers should not use the default methods since a
type of elements may not guarantees total order. str could use them
since u8's Ord guarantees total order. Floating point numbers are also
broken with the default methods because of NaN. Thanks for @thestinger.

Timespec also guarantees total order AIUI. I'm unsure whether
extra::semver::Identifier does so I left it alone. Proof needed.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
src/libextra/time.rs
src/libstd/bool.rs
src/libstd/char.rs
src/libstd/cmp.rs
src/libstd/nil.rs
src/libstd/num/int_macros.rs
src/libstd/num/uint_macros.rs
src/libstd/str.rs