]> git.lizzy.rs Git - rust.git/commitdiff
slice: Use doc(hidden) on private traits
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 6 Apr 2016 10:19:19 +0000 (12:19 +0200)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 6 Apr 2016 10:19:19 +0000 (12:19 +0200)
This should avoid the trait impls showing up in rustdoc.

src/libcore/slice.rs

index e9cf650af70726fcca65f3543efb533df95838cb..25082eed2fe6f4b7843eb06064110157f8366f00 100644 (file)
@@ -1672,6 +1672,7 @@ fn partial_cmp(&self, other: &[T]) -> Option<Ordering> {
     }
 }
 
+#[doc(hidden)]
 // intermediate trait for specialization of slice's PartialEq
 trait SlicePartialEq<B> {
     fn equal(&self, other: &[B]) -> bool;
@@ -1731,6 +1732,7 @@ fn not_equal(&self, other: &[A]) -> bool {
     }
 }
 
+#[doc(hidden)]
 // intermediate trait for specialization of slice's PartialOrd
 trait SlicePartialOrd<B> {
     fn partial_compare(&self, other: &[B]) -> Option<Ordering>;
@@ -1765,6 +1767,7 @@ fn partial_compare(&self, other: &[u8]) -> Option<Ordering> {
     }
 }
 
+#[doc(hidden)]
 // intermediate trait for specialization of slice's Ord
 trait SliceOrd<B> {
     fn compare(&self, other: &[B]) -> Ordering;
@@ -1811,6 +1814,7 @@ fn compare(&self, other: &[u8]) -> Ordering {
     }
 }
 
+#[doc(hidden)]
 /// Trait implemented for types that can be compared for equality using
 /// their bytewise representation
 trait BytewiseEquality { }