about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-06-10 18:06:12 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-17 09:07:16 -0700
commitf55c366a8ac33307859ae6190d2788270a885f90 (patch)
treec5e8182d5037537f2f6afa3e6a106fb552a67998 /src/libcore
parentc72e01ef7f317a0bad3c3e780cb02858f2017f43 (diff)
downloadrust-f55c366a8ac33307859ae6190d2788270a885f90.tar.gz
rust-f55c366a8ac33307859ae6190d2788270a885f90.zip
std: Deprecate the IntSliceExt trait
This trait has seen very little usage and while safe, may not belong in the
standard library.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 4 insertions, 0 deletions
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<T: PartialOrd> 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<U, S> {
     /// Converts the slice to an immutable slice of unsigned integers with the same width.
     fn as_unsigned<'a>(&'a self) -> &'a [U];