core: Remove the unnecessary 'traits' module from 'slice'

This is only breaking for code that references the empty `slice::traits`
module.

[breaking-change]
This commit is contained in:
Brian Anderson 2014-06-30 15:43:13 -07:00
parent 16a9258797
commit fa5bc6f1bd
1 changed files with 44 additions and 54 deletions

View File

@ -36,7 +36,7 @@
use mem::transmute;
use clone::Clone;
use collections::Collection;
use cmp::{PartialEq, Ord, Ordering, Less, Equal, Greater};
use cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering, Less, Equal, Greater, Equiv};
use cmp;
use default::Default;
use iter::*;
@ -1422,15 +1422,6 @@ pub mod bytes {
// Boilerplate traits
//
#[allow(missing_doc)]
pub mod traits {
use super::*;
use cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering, Equiv};
use iter::order;
use collections::Collection;
use option::Option;
impl<'a,T:PartialEq> PartialEq for &'a [T] {
fn eq(&self, other: & &'a [T]) -> bool {
self.len() == other.len() &&
@ -1477,4 +1468,3 @@ pub mod traits {
order::gt(self.iter(), other.iter())
}
}
}