auto merge of #6327 : z0w0/rust/rm-notest, r=brson

Makes it more consistent, imo.
This commit is contained in:
bors
2013-05-08 18:15:41 -07:00
20 changed files with 131 additions and 132 deletions

View File

@@ -15,7 +15,7 @@ use libc;
use libc::{c_void, size_t};
use sys;
#[cfg(notest)] use cmp::{Eq, Ord};
#[cfg(not(test))] use cmp::{Eq, Ord};
use uint;
pub mod libc_ {
@@ -243,7 +243,7 @@ impl<T> Ptr<T> for *mut T {
}
// Equality for pointers
#[cfg(notest)]
#[cfg(not(test))]
impl<T> Eq for *const T {
#[inline(always)]
fn eq(&self, other: &*const T) -> bool {
@@ -258,7 +258,7 @@ impl<T> Eq for *const T {
}
// Comparison for pointers
#[cfg(notest)]
#[cfg(not(test))]
impl<T> Ord for *const T {
#[inline(always)]
fn lt(&self, other: &*const T) -> bool {
@@ -295,7 +295,7 @@ impl<T> Ord for *const T {
}
// Equality for region pointers
#[cfg(notest)]
#[cfg(not(test))]
impl<'self,T:Eq> Eq for &'self T {
#[inline(always)]
fn eq(&self, other: & &'self T) -> bool {
@@ -308,7 +308,7 @@ impl<'self,T:Eq> Eq for &'self T {
}
// Comparison for region pointers
#[cfg(notest)]
#[cfg(not(test))]
impl<'self,T:Ord> Ord for &'self T {
#[inline(always)]
fn lt(&self, other: & &'self T) -> bool {