Skip to content

Commit 9424ac7

Browse files
Remove links that get imported from the prelude
1 parent 8e009bc commit 9424ac7

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

library/core/src/ops/drop.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
///
8181
/// If you'd like explicitly call the destructor of a value, [`mem::drop`] can be used instead.
8282
///
83-
/// [`mem::drop`]: crate::mem::drop
83+
/// [`mem::drop`]: drop
8484
///
8585
/// ## Drop order
8686
///
@@ -132,8 +132,6 @@
132132
/// are `Copy` get implicitly duplicated by the compiler, making it very
133133
/// hard to predict when, and how often destructors will be executed. As such,
134134
/// these types cannot have destructors.
135-
///
136-
/// [`Copy`]: crate::marker::Copy
137135
#[lang = "drop"]
138136
#[stable(feature = "rust1", since = "1.0.0")]
139137
pub trait Drop {
@@ -160,7 +158,7 @@ pub trait Drop {
160158
///
161159
/// [E0040]: ../../error-index.html#E0040
162160
/// [`panic!`]: crate::panic!
163-
/// [`mem::drop`]: crate::mem::drop
161+
/// [`mem::drop`]: drop
164162
/// [`ptr::drop_in_place`]: crate::ptr::drop_in_place
165163
#[stable(feature = "rust1", since = "1.0.0")]
166164
fn drop(&mut self);

library/core/src/ops/index.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/// but only when used as an immutable value. If a mutable value is requested,
55
/// [`IndexMut`] is used instead. This allows nice things such as
66
/// `let value = v[index]` if the type of `value` implements [`Copy`].
7-
/// [`Copy`]: crate::marker::Copy
87
///
98
/// # Examples
109
///

library/core/src/ops/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
//! // `consume_and_return_x` can no longer be invoked at this point
134134
//! ```
135135
//!
136-
//! [`clone`]: crate::clone::Clone::clone
136+
//! [`clone`]: Clone::clone
137137
//! [operator precedence]: ../../reference/expressions.html#expression-precedence
138138
139139
#![stable(feature = "rust1", since = "1.0.0")]

library/core/src/ops/range.rs

-8
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ use crate::hash::Hash;
3535
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
3636
/// ```
3737
///
38-
/// [`IntoIterator`]: crate::iter::IntoIterator
39-
/// [`Iterator`]: crate::iter::Iterator
4038
/// [slicing index]: crate::slice::SliceIndex
4139
#[cfg_attr(not(bootstrap), lang = "RangeFull")]
4240
#[doc(alias = "..")]
@@ -178,8 +176,6 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
178176
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
179177
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
180178
/// ```
181-
///
182-
/// [`Iterator`]: crate::iter::IntoIterator
183179
#[cfg_attr(not(bootstrap), lang = "RangeFrom")]
184180
#[doc(alias = "..")]
185181
#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186
@@ -260,8 +256,6 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
260256
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
261257
/// ```
262258
///
263-
/// [`IntoIterator`]: crate::iter::IntoIterator
264-
/// [`Iterator`]: crate::iter::Iterator
265259
/// [slicing index]: crate::slice::SliceIndex
266260
#[cfg_attr(not(bootstrap), lang = "RangeTo")]
267261
#[doc(alias = "..")]
@@ -558,8 +552,6 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
558552
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
559553
/// ```
560554
///
561-
/// [`IntoIterator`]: crate::iter::IntoIterator
562-
/// [`Iterator`]: crate::iter::Iterator
563555
/// [slicing index]: crate::slice::SliceIndex
564556
#[cfg_attr(not(bootstrap), lang = "RangeToInclusive")]
565557
#[doc(alias = "..=")]

0 commit comments

Comments
 (0)