Skip to content

Commit a6c27be

Browse files
committed
slice: Use doc(hidden) on private traits
This should avoid the trait impls showing up in rustdoc.
1 parent 28c4d12 commit a6c27be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/slice.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ impl<T: PartialOrd> PartialOrd for [T] {
16721672
}
16731673
}
16741674

1675+
#[doc(hidden)]
16751676
// intermediate trait for specialization of slice's PartialEq
16761677
trait SlicePartialEq<B> {
16771678
fn equal(&self, other: &[B]) -> bool;
@@ -1731,6 +1732,7 @@ impl<A> SlicePartialEq<A> for [A]
17311732
}
17321733
}
17331734

1735+
#[doc(hidden)]
17341736
// intermediate trait for specialization of slice's PartialOrd
17351737
trait SlicePartialOrd<B> {
17361738
fn partial_compare(&self, other: &[B]) -> Option<Ordering>;
@@ -1765,6 +1767,7 @@ impl SlicePartialOrd<u8> for [u8] {
17651767
}
17661768
}
17671769

1770+
#[doc(hidden)]
17681771
// intermediate trait for specialization of slice's Ord
17691772
trait SliceOrd<B> {
17701773
fn compare(&self, other: &[B]) -> Ordering;
@@ -1811,6 +1814,7 @@ impl SliceOrd<u8> for [u8] {
18111814
}
18121815
}
18131816

1817+
#[doc(hidden)]
18141818
/// Trait implemented for types that can be compared for equality using
18151819
/// their bytewise representation
18161820
trait BytewiseEquality { }

0 commit comments

Comments
 (0)