auto merge of #5292 : thestinger/rust/nil, r=graydon

This commit is contained in:
bors 2013-03-11 17:27:43 -07:00
commit a6bb4a0f1a

View File

@ -15,7 +15,7 @@
*/
#[cfg(notest)]
use cmp::{Eq, Ord};
use cmp::{Eq, Ord, TotalOrd, Ordering, Equal};
#[cfg(notest)]
impl Eq for () {
@ -37,3 +37,8 @@ impl Ord for () {
pure fn gt(&self, _other: &()) -> bool { false }
}
#[cfg(notest)]
impl TotalOrd for () {
#[inline(always)]
pure fn cmp(&self, _other: &()) -> Ordering { Equal }
}