From dba647ef32e8f076bdc1338249932ed08b61a127 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Thu, 9 Jul 2020 23:41:56 +0800 Subject: [PATCH 1/3] Remove liballoc unneeded explicit link --- library/alloc/src/vec.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 786d1b6ba82f2..b5c2f1d725618 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -2621,7 +2621,6 @@ where /// This `struct` is created by the `into_iter` method on [`Vec`] (provided /// by the [`IntoIterator`] trait). /// -/// [`Vec`]: struct.Vec.html /// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html #[stable(feature = "rust1", since = "1.0.0")] pub struct IntoIter { @@ -2805,7 +2804,6 @@ unsafe impl<#[may_dangle] T> Drop for IntoIter { /// This `struct` is created by the [`drain`] method on [`Vec`]. /// /// [`drain`]: struct.Vec.html#method.drain -/// [`Vec`]: struct.Vec.html #[stable(feature = "drain", since = "1.6.0")] pub struct Drain<'a, T: 'a> { /// Index of tail to preserve @@ -2937,7 +2935,6 @@ impl FusedIterator for Drain<'_, T> {} /// documentation for more. /// /// [`splice()`]: struct.Vec.html#method.splice -/// [`Vec`]: struct.Vec.html #[derive(Debug)] #[stable(feature = "vec_splice", since = "1.21.0")] pub struct Splice<'a, I: Iterator + 'a> { From e0d215ff9e6ab644b244518616f7979966220e79 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 24 Jul 2020 00:23:24 +0800 Subject: [PATCH 2/3] Update src/liballoc/vec.rs Co-authored-by: Joshua Nelson --- library/alloc/src/vec.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index b5c2f1d725618..d9f22be3ff699 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -2621,7 +2621,6 @@ where /// This `struct` is created by the `into_iter` method on [`Vec`] (provided /// by the [`IntoIterator`] trait). /// -/// [`IntoIterator`]: ../../std/iter/trait.IntoIterator.html #[stable(feature = "rust1", since = "1.0.0")] pub struct IntoIter { buf: NonNull, From d2ecfcf21dc6c9c2a136c8cfefe2b9f8af7ca549 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 24 Jul 2020 17:28:37 +0800 Subject: [PATCH 3/3] Update liballoc vec doc link --- library/alloc/src/vec.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index d9f22be3ff699..15a01166a17c6 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -2620,7 +2620,6 @@ where /// /// This `struct` is created by the `into_iter` method on [`Vec`] (provided /// by the [`IntoIterator`] trait). -/// #[stable(feature = "rust1", since = "1.0.0")] pub struct IntoIter { buf: NonNull, @@ -2800,9 +2799,7 @@ unsafe impl<#[may_dangle] T> Drop for IntoIter { /// A draining iterator for `Vec`. /// -/// This `struct` is created by the [`drain`] method on [`Vec`]. -/// -/// [`drain`]: struct.Vec.html#method.drain +/// This `struct` is created by [`Vec::drain`]. #[stable(feature = "drain", since = "1.6.0")] pub struct Drain<'a, T: 'a> { /// Index of tail to preserve @@ -2930,10 +2927,8 @@ impl FusedIterator for Drain<'_, T> {} /// A splicing iterator for `Vec`. /// -/// This struct is created by the [`splice()`] method on [`Vec`]. See its -/// documentation for more. -/// -/// [`splice()`]: struct.Vec.html#method.splice +/// This struct is created by [`Vec::splice()`]. +/// See its documentation for more. #[derive(Debug)] #[stable(feature = "vec_splice", since = "1.21.0")] pub struct Splice<'a, I: Iterator + 'a> {