From f55c366a8ac33307859ae6190d2788270a885f90 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:06:12 -0700 Subject: [PATCH] std: Deprecate the IntSliceExt trait This trait has seen very little usage and while safe, may not belong in the standard library. --- src/libcore/slice.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index c979b97731b..91acb0d6955 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -1501,6 +1501,10 @@ impl PartialOrd for [T] { /// Extension methods for slices containing integers. #[unstable(feature = "int_slice")] +#[deprecated(since = "1.2.0", + reason = "has not seen much usage and may want to live in the \ + standard library now that most slice methods are \ + on an inherent implementation block")] pub trait IntSliceExt { /// Converts the slice to an immutable slice of unsigned integers with the same width. fn as_unsigned<'a>(&'a self) -> &'a [U];