We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c43cf commit aeb9497Copy full SHA for aeb9497
library/alloc/src/slice.rs
@@ -836,14 +836,14 @@ impl<T: Clone, V: Borrow<[T]>> Join<&[T]> for [V] {
836
////////////////////////////////////////////////////////////////////////////////
837
838
#[stable(feature = "rust1", since = "1.0.0")]
839
-impl<T> Borrow<[T]> for Vec<T> {
+impl<T, A: Allocator> Borrow<[T]> for Vec<T, A> {
840
fn borrow(&self) -> &[T] {
841
&self[..]
842
}
843
844
845
846
-impl<T> BorrowMut<[T]> for Vec<T> {
+impl<T, A: Allocator> BorrowMut<[T]> for Vec<T, A> {
847
fn borrow_mut(&mut self) -> &mut [T] {
848
&mut self[..]
849
0 commit comments