diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 6375fa489ee2f..7899b4091fce0 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1352,6 +1352,13 @@ impl AsRef> for Vec { } } +#[stable(feature = "vec_as_mut", since = "1.5.0")] +impl AsMut> for Vec { + fn as_mut(&mut self) -> &mut Vec { + self + } +} + #[stable(feature = "rust1", since = "1.0.0")] impl AsRef<[T]> for Vec { fn as_ref(&self) -> &[T] {