diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index c99460a55c9..6375fa489ee 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1359,6 +1359,13 @@ impl AsRef<[T]> for Vec { } } +#[stable(feature = "vec_as_mut", since = "1.5.0")] +impl AsMut<[T]> for Vec { + fn as_mut(&mut self) -> &mut [T] { + self + } +} + #[stable(feature = "rust1", since = "1.0.0")] impl<'a, T: Clone> From<&'a [T]> for Vec { #[cfg(not(test))]