From 774588fd9def900a467ba2b4ec3620f89832a799 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 4 Jan 2015 21:39:02 -0500 Subject: sed -i -s 's/ for Sized?//g' **/*.rs --- src/libcollections/slice.rs | 4 ++-- src/libcollections/str.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcollections') diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index 3602bfc10c3..a5e44dc1ddc 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -120,7 +120,7 @@ pub use core::slice::{from_raw_buf, from_raw_mut_buf}; /// Allocating extension methods for slices. #[unstable = "needs associated types, may merge with other traits"] -pub trait SliceExt for Sized? { +pub trait SliceExt { type Item; /// Sorts the slice, in place, using `compare` to compare @@ -989,7 +989,7 @@ impl SliceExt for [T] { //////////////////////////////////////////////////////////////////////////////// #[unstable = "U should be an associated type"] /// An extension trait for concatenating slices -pub trait SliceConcatExt for Sized? { +pub trait SliceConcatExt { /// Flattens a slice of `T` into a single value `U`. #[stable] fn concat(&self) -> U; diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index ecf17820d2d..0f33d21ef02 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -401,7 +401,7 @@ Section: Trait implementations */ /// Any string that can be represented as a slice. -pub trait StrExt for Sized?: ops::Slice { +pub trait StrExt: ops::Slice { /// Escapes each char in `s` with `char::escape_default`. #[unstable = "return type may change to be an iterator"] fn escape_default(&self) -> String { -- cgit 1.4.1-3-g733a5 From c26f5801f5bfca0840c7fc3e01e4c14f8437ef58 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 4 Jan 2015 21:47:03 -0500 Subject: remove unused `Sized` imports --- src/libcollections/str.rs | 1 - src/libcore/raw.rs | 1 - src/libcore/slice.rs | 1 - src/libstd/ascii.rs | 1 - 4 files changed, 4 deletions(-) (limited to 'src/libcollections') diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 0f33d21ef02..9ba1264f51e 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -59,7 +59,6 @@ use core::char::CharExt; use core::clone::Clone; use core::iter::AdditiveIterator; use core::iter::{range, Iterator, IteratorExt}; -use core::kinds::Sized; use core::ops; use core::option::Option::{self, Some, None}; use core::slice::AsSlice; diff --git a/src/libcore/raw.rs b/src/libcore/raw.rs index 0e91d6123f5..5ef6f6b2623 100644 --- a/src/libcore/raw.rs +++ b/src/libcore/raw.rs @@ -20,7 +20,6 @@ use kinds::Copy; use mem; -use kinds::Sized; /// The representation of a Rust slice #[repr(C)] diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 9aa3f76b525..1fde906062e 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -1372,7 +1372,6 @@ pub unsafe fn from_raw_mut_buf<'a, T>(p: &'a *mut T, len: uint) -> &'a mut [T] { /// Operations on `[u8]`. #[experimental = "needs review"] pub mod bytes { - use kinds::Sized; use ptr; use slice::SliceExt; diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index c0b9bbbbc29..abd4c7faa5b 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -14,7 +14,6 @@ #![unstable = "unsure about placement and naming"] -use core::kinds::Sized; use iter::IteratorExt; use ops::FnMut; use slice::SliceExt; -- cgit 1.4.1-3-g733a5