Remove links that get imported from the prelude

This commit is contained in:
LeSeulArtichaut 2020-08-21 23:25:07 +02:00
parent 8e009bc4f0
commit 9424ac79b2
4 changed files with 3 additions and 14 deletions

View File

@ -80,7 +80,7 @@
///
/// If you'd like explicitly call the destructor of a value, [`mem::drop`] can be used instead.
///
/// [`mem::drop`]: crate::mem::drop
/// [`mem::drop`]: drop
///
/// ## Drop order
///
@ -132,8 +132,6 @@
/// are `Copy` get implicitly duplicated by the compiler, making it very
/// hard to predict when, and how often destructors will be executed. As such,
/// these types cannot have destructors.
///
/// [`Copy`]: crate::marker::Copy
#[lang = "drop"]
#[stable(feature = "rust1", since = "1.0.0")]
pub trait Drop {
@ -160,7 +158,7 @@ pub trait Drop {
///
/// [E0040]: ../../error-index.html#E0040
/// [`panic!`]: crate::panic!
/// [`mem::drop`]: crate::mem::drop
/// [`mem::drop`]: drop
/// [`ptr::drop_in_place`]: crate::ptr::drop_in_place
#[stable(feature = "rust1", since = "1.0.0")]
fn drop(&mut self);

View File

@ -4,7 +4,6 @@
/// but only when used as an immutable value. If a mutable value is requested,
/// [`IndexMut`] is used instead. This allows nice things such as
/// `let value = v[index]` if the type of `value` implements [`Copy`].
/// [`Copy`]: crate::marker::Copy
///
/// # Examples
///

View File

@ -133,7 +133,7 @@
//! // `consume_and_return_x` can no longer be invoked at this point
//! ```
//!
//! [`clone`]: crate::clone::Clone::clone
//! [`clone`]: Clone::clone
//! [operator precedence]: ../../reference/expressions.html#expression-precedence
#![stable(feature = "rust1", since = "1.0.0")]

View File

@ -35,8 +35,6 @@ use crate::hash::Hash;
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
/// ```
///
/// [`IntoIterator`]: crate::iter::IntoIterator
/// [`Iterator`]: crate::iter::Iterator
/// [slicing index]: crate::slice::SliceIndex
#[cfg_attr(not(bootstrap), lang = "RangeFull")]
#[doc(alias = "..")]
@ -178,8 +176,6 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
/// ```
///
/// [`Iterator`]: crate::iter::IntoIterator
#[cfg_attr(not(bootstrap), lang = "RangeFrom")]
#[doc(alias = "..")]
#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186
@ -260,8 +256,6 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
/// ```
///
/// [`IntoIterator`]: crate::iter::IntoIterator
/// [`Iterator`]: crate::iter::Iterator
/// [slicing index]: crate::slice::SliceIndex
#[cfg_attr(not(bootstrap), lang = "RangeTo")]
#[doc(alias = "..")]
@ -558,8 +552,6 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
/// ```
///
/// [`IntoIterator`]: crate::iter::IntoIterator
/// [`Iterator`]: crate::iter::Iterator
/// [slicing index]: crate::slice::SliceIndex
#[cfg_attr(not(bootstrap), lang = "RangeToInclusive")]
#[doc(alias = "..=")]