about summary refs log tree commit diff
path: root/src/libstd/cmp.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-07 00:56:18 -0700
committerbors <bors@rust-lang.org>2013-08-07 00:56:18 -0700
commit4da1cfe92369725b2e6bf34acb1fdebdbaff9339 (patch)
tree49b56d74ac57a6900fc250a5e04b57994b6fd011 /src/libstd/cmp.rs
parent62dbdc4ea2aa5d57d52bca4159a176942e0ad214 (diff)
parent4f3944a34fb5b2f644a2ff6783e0af4116e5a832 (diff)
downloadrust-4da1cfe92369725b2e6bf34acb1fdebdbaff9339.tar.gz
rust-4da1cfe92369725b2e6bf34acb1fdebdbaff9339.zip
auto merge of #8285 : huonw/rust/deriving+++, r=alexcrichton
Some general clean-up relating to deriving:
- `TotalOrd` was too eager, and evaluated the `.cmp` call for every field, even if it could short-circuit earlier.
- the pointer types didn't have impls for `TotalOrd` or `TotalEq`.
- the Makefiles didn't reach deep enough into libsyntax for dependencies.

(Split out from https://github.com/mozilla/rust/pull/8258.)
Diffstat (limited to 'src/libstd/cmp.rs')
-rw-r--r--src/libstd/cmp.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs
index 43a632562b2..b66f89e8341 100644
--- a/src/libstd/cmp.rs
+++ b/src/libstd/cmp.rs
@@ -153,7 +153,6 @@ pub fn cmp2<A:TotalOrd,B:TotalOrd>(
 Return `o1` if it is not `Equal`, otherwise `o2`. Simulates the
 lexical ordering on a type `(int, int)`.
 */
-// used in deriving code in libsyntax
 #[inline]
 pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering {
     match o1 {