auto merge of #5292 : thestinger/rust/nil, r=graydon
This commit is contained in:
commit
a6bb4a0f1a
@ -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 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user