Skip to content

Commit f55c366

Browse files
committed
std: Deprecate the IntSliceExt trait
This trait has seen very little usage and while safe, may not belong in the standard library.
1 parent c72e01e commit f55c366

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/slice.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,10 @@ impl<T: PartialOrd> PartialOrd for [T] {
15011501

15021502
/// Extension methods for slices containing integers.
15031503
#[unstable(feature = "int_slice")]
1504+
#[deprecated(since = "1.2.0",
1505+
reason = "has not seen much usage and may want to live in the \
1506+
standard library now that most slice methods are \
1507+
on an inherent implementation block")]
15041508
pub trait IntSliceExt<U, S> {
15051509
/// Converts the slice to an immutable slice of unsigned integers with the same width.
15061510
fn as_unsigned<'a>(&'a self) -> &'a [U];

0 commit comments

Comments
 (0)