Skip to content

Commit 04ee6cd

Browse files
committed
[breaking change] Remove previously deprecated items
1 parent eee285e commit 04ee6cd

File tree

1 file changed

+5
-49
lines changed

1 file changed

+5
-49
lines changed

lib.rs

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use SmallVecData::{Inline, Heap};
6161
/// ## Example
6262
///
6363
/// ```rust
64-
/// use smallvec::{VecLike, SmallVec8};
64+
/// use smallvec::{VecLike, SmallVec};
6565
///
6666
/// fn initialize<V: VecLike<u8>>(v: &mut V) {
6767
/// for i in 0..5 {
@@ -72,7 +72,7 @@ use SmallVecData::{Inline, Heap};
7272
/// let mut vec = Vec::new();
7373
/// initialize(&mut vec);
7474
///
75-
/// let mut small_vec = SmallVec8::new();
75+
/// let mut small_vec = SmallVec::<[u8; 8]>::new();
7676
/// initialize(&mut small_vec);
7777
/// ```
7878
pub trait VecLike<T>:
@@ -105,7 +105,7 @@ impl<T> VecLike<T> for Vec<T> {
105105
/// ## Example
106106
///
107107
/// ```rust
108-
/// use smallvec::{ExtendFromSlice, SmallVec8};
108+
/// use smallvec::{ExtendFromSlice, SmallVec};
109109
///
110110
/// fn initialize<V: ExtendFromSlice<u8>>(v: &mut V) {
111111
/// v.extend_from_slice(b"Test!");
@@ -115,7 +115,7 @@ impl<T> VecLike<T> for Vec<T> {
115115
/// initialize(&mut vec);
116116
/// assert_eq!(&vec, b"Test!");
117117
///
118-
/// let mut small_vec = SmallVec8::new();
118+
/// let mut small_vec = SmallVec::<[u8; 8]>::new();
119119
/// initialize(&mut small_vec);
120120
/// assert_eq!(&small_vec as &[_], b"Test!");
121121
/// ```
@@ -227,19 +227,13 @@ impl<A: Array> Drop for SmallVecData<A> {
227227
/// store can be any type that implements the `Array` trait; usually it is a small fixed-sized
228228
/// array. For example a `SmallVec<[u64; 8]>` can hold up to eight 64-bit integers inline.
229229
///
230-
/// Type aliases like `SmallVec8<T>` are provided as convenient shorthand for types like
231-
/// `SmallVec<[T; 8]>`.
232-
///
233230
/// ## Example
234231
///
235232
/// ```rust
236233
/// use smallvec::SmallVec;
237234
/// let mut v = SmallVec::<[u8; 4]>::new(); // initialize an empty vector
238235
///
239-
/// use smallvec::SmallVec4;
240-
/// let mut v: SmallVec4<u8> = SmallVec::new(); // alternate way to write the above
241-
///
242-
/// // SmallVec4 can hold up to 4 items without spilling onto the heap.
236+
/// // The vector can hold up to 4 items without spilling onto the heap.
243237
/// v.extend(0..4);
244238
/// assert_eq!(v.len(), 4);
245239
/// assert!(!v.spilled());
@@ -406,14 +400,6 @@ impl<A: Array> SmallVec<A> {
406400
}
407401
}
408402

409-
/// Append elements from an iterator.
410-
///
411-
/// This function is deprecated; it has been replaced by `Extend::extend`.
412-
#[deprecated(note = "Use `extend` instead")]
413-
pub fn push_all_move<V: IntoIterator<Item=A::Item>>(&mut self, other: V) {
414-
self.extend(other)
415-
}
416-
417403
/// Remove an item from the end of the vector and return it, or None if empty.
418404
#[inline]
419405
pub fn pop(&mut self) -> Option<A::Item> {
@@ -1040,36 +1026,6 @@ impl<'a, A: Array> IntoIterator for &'a mut SmallVec<A> {
10401026
}
10411027
}
10421028

1043-
// TODO: Remove these and its users.
1044-
1045-
/// Deprecated alias to ease transition from an earlier version.
1046-
#[deprecated]
1047-
pub type SmallVec1<T> = SmallVec<[T; 1]>;
1048-
1049-
/// Deprecated alias to ease transition from an earlier version.
1050-
#[deprecated]
1051-
pub type SmallVec2<T> = SmallVec<[T; 2]>;
1052-
1053-
/// Deprecated alias to ease transition from an earlier version.
1054-
#[deprecated]
1055-
pub type SmallVec4<T> = SmallVec<[T; 4]>;
1056-
1057-
/// Deprecated alias to ease transition from an earlier version.
1058-
#[deprecated]
1059-
pub type SmallVec8<T> = SmallVec<[T; 8]>;
1060-
1061-
/// Deprecated alias to ease transition from an earlier version.
1062-
#[deprecated]
1063-
pub type SmallVec16<T> = SmallVec<[T; 16]>;
1064-
1065-
/// Deprecated alias to ease transition from an earlier version.
1066-
#[deprecated]
1067-
pub type SmallVec24<T> = SmallVec<[T; 24]>;
1068-
1069-
/// Deprecated alias to ease transition from an earlier version.
1070-
#[deprecated]
1071-
pub type SmallVec32<T> = SmallVec<[T; 32]>;
1072-
10731029
/// Types that can be used as the backing store for a SmallVec
10741030
pub unsafe trait Array {
10751031
type Item;

0 commit comments

Comments
 (0)