Skip to content

Commit e63c622

Browse files
authored
Rollup merge of rust-lang#67632 - kraai:remove-collapsed-reference-links, r=steveklabnik
Convert collapsed to shortcut reference links
2 parents 9f5259a + 2f43313 commit e63c622

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

RELEASES.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -4951,10 +4951,10 @@ Stabilized APIs
49514951
---------------
49524952

49534953
* [`std::panic`]
4954-
* [`std::panic::catch_unwind`][] (renamed from `recover`)
4955-
* [`std::panic::resume_unwind`][] (renamed from `propagate`)
4956-
* [`std::panic::AssertUnwindSafe`][] (renamed from `AssertRecoverSafe`)
4957-
* [`std::panic::UnwindSafe`][] (renamed from `RecoverSafe`)
4954+
* [`std::panic::catch_unwind`] (renamed from `recover`)
4955+
* [`std::panic::resume_unwind`] (renamed from `propagate`)
4956+
* [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
4957+
* [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
49584958
* [`str::is_char_boundary`]
49594959
* [`<*const T>::as_ref`]
49604960
* [`<*mut T>::as_ref`]
@@ -5234,18 +5234,18 @@ Libraries
52345234
---------
52355235

52365236
* Stabilized APIs:
5237-
* [`str::encode_utf16`][] (renamed from `utf16_units`)
5238-
* [`str::EncodeUtf16`][] (renamed from `Utf16Units`)
5237+
* [`str::encode_utf16`] (renamed from `utf16_units`)
5238+
* [`str::EncodeUtf16`] (renamed from `Utf16Units`)
52395239
* [`Ref::map`]
52405240
* [`RefMut::map`]
52415241
* [`ptr::drop_in_place`]
52425242
* [`time::Instant`]
52435243
* [`time::SystemTime`]
52445244
* [`Instant::now`]
5245-
* [`Instant::duration_since`][] (renamed from `duration_from_earlier`)
5245+
* [`Instant::duration_since`] (renamed from `duration_from_earlier`)
52465246
* [`Instant::elapsed`]
52475247
* [`SystemTime::now`]
5248-
* [`SystemTime::duration_since`][] (renamed from `duration_from_earlier`)
5248+
* [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
52495249
* [`SystemTime::elapsed`]
52505250
* Various `Add`/`Sub` impls for `Time` and `SystemTime`
52515251
* [`SystemTimeError`]
@@ -5432,8 +5432,8 @@ Libraries
54325432

54335433
* Stabilized APIs
54345434
* `Path`
5435-
* [`Path::strip_prefix`][] (renamed from relative_from)
5436-
* [`path::StripPrefixError`][] (new error type returned from strip_prefix)
5435+
* [`Path::strip_prefix`] (renamed from relative_from)
5436+
* [`path::StripPrefixError`] (new error type returned from strip_prefix)
54375437
* `Ipv4Addr`
54385438
* [`Ipv4Addr::is_loopback`]
54395439
* [`Ipv4Addr::is_private`]
@@ -5646,7 +5646,7 @@ Libraries
56465646

56475647
* Stabilized APIs:
56485648
[`Read::read_exact`],
5649-
[`ErrorKind::UnexpectedEof`][] (renamed from `UnexpectedEOF`),
5649+
[`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
56505650
[`fs::DirBuilder`], [`fs::DirBuilder::new`],
56515651
[`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
56525652
[`os::unix::fs::DirBuilderExt`],
@@ -5659,11 +5659,11 @@ Libraries
56595659
[`collections::hash_set::HashSet::drain`],
56605660
[`collections::binary_heap::Drain`],
56615661
[`collections::binary_heap::BinaryHeap::drain`],
5662-
[`Vec::extend_from_slice`][] (renamed from `push_all`),
5662+
[`Vec::extend_from_slice`] (renamed from `push_all`),
56635663
[`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
56645664
[`RwLock::into_inner`],
5665-
[`Iterator::min_by_key`][] (renamed from `min_by`),
5666-
[`Iterator::max_by_key`][] (renamed from `max_by`).
5665+
[`Iterator::min_by_key`] (renamed from `min_by`),
5666+
[`Iterator::max_by_key`] (renamed from `max_by`).
56675667
* The [core library][1.6co] is stable, as are most of its APIs.
56685668
* [The `assert_eq!` macro supports arguments that don't implement
56695669
`Sized`][1.6ae], such as arrays. In this way it behaves more like

src/libcore/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub trait Unsize<T: ?Sized> {
142142
/// In either of the two scenarios above, we reject usage of such a constant in
143143
/// a pattern match.
144144
///
145-
/// See also the [structural match RFC][RFC1445], and [issue 63438][] which
145+
/// See also the [structural match RFC][RFC1445], and [issue 63438] which
146146
/// motivated migrating from attribute-based design to this trait.
147147
///
148148
/// [RFC1445]: https://github.com/rust-lang/rfcs/blob/master/text/1445-restrict-constants-in-patterns.md

src/libcore/ops/function.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
///
33
/// Instances of `Fn` can be called repeatedly without mutating state.
44
///
5-
/// *This trait (`Fn`) is not to be confused with [function pointers][]
5+
/// *This trait (`Fn`) is not to be confused with [function pointers]
66
/// (`fn`).*
77
///
88
/// `Fn` is implemented automatically by closures which only take immutable
99
/// references to captured variables or don't capture anything at all, as well
10-
/// as (safe) [function pointers][] (with some caveats, see their documentation
10+
/// as (safe) [function pointers] (with some caveats, see their documentation
1111
/// for more details). Additionally, for any type `F` that implements `Fn`, `&F`
1212
/// implements `Fn`, too.
1313
///
@@ -78,7 +78,7 @@ pub trait Fn<Args>: FnMut<Args> {
7878
///
7979
/// `FnMut` is implemented automatically by closures which take mutable
8080
/// references to captured variables, as well as all types that implement
81-
/// [`Fn`], e.g., (safe) [function pointers][] (since `FnMut` is a supertrait of
81+
/// [`Fn`], e.g., (safe) [function pointers] (since `FnMut` is a supertrait of
8282
/// [`Fn`]). Additionally, for any type `F` that implements `FnMut`, `&mut F`
8383
/// implements `FnMut`, too.
8484
///
@@ -162,7 +162,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
162162
///
163163
/// `FnOnce` is implemented automatically by closure that might consume captured
164164
/// variables, as well as all types that implement [`FnMut`], e.g., (safe)
165-
/// [function pointers][] (since `FnOnce` is a supertrait of [`FnMut`]).
165+
/// [function pointers] (since `FnOnce` is a supertrait of [`FnMut`]).
166166
///
167167
/// Since both [`Fn`] and [`FnMut`] are subtraits of `FnOnce`, any instance of
168168
/// [`Fn`] or [`FnMut`] can be used where a `FnOnce` is expected.

src/librustc_data_structures/graph/iterate/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ pub enum ControlFlow<T> {
101101
pub enum NodeStatus {
102102
/// This node has been examined by the depth-first search but is not yet `Settled`.
103103
///
104-
/// Also referred to as "gray" or "discovered" nodes in [CLR][].
104+
/// Also referred to as "gray" or "discovered" nodes in [CLR].
105105
///
106106
/// [CLR]: https://en.wikipedia.org/wiki/Introduction_to_Algorithms
107107
Visited,
108108

109109
/// This node and all nodes reachable from it have been examined by the depth-first search.
110110
///
111-
/// Also referred to as "black" or "finished" nodes in [CLR][].
111+
/// Also referred to as "black" or "finished" nodes in [CLR].
112112
///
113113
/// [CLR]: https://en.wikipedia.org/wiki/Introduction_to_Algorithms
114114
Settled,
@@ -122,13 +122,13 @@ struct Event<N> {
122122
/// A depth-first search that also tracks when all successors of a node have been examined.
123123
///
124124
/// This is based on the DFS described in [Introduction to Algorithms (1st ed.)][CLR], hereby
125-
/// referred to as **CLR**. However, we use the terminology in [`NodeStatus`][] above instead of
125+
/// referred to as **CLR**. However, we use the terminology in [`NodeStatus`] above instead of
126126
/// "discovered"/"finished" or "white"/"grey"/"black". Each node begins the search with no status,
127127
/// becomes `Visited` when it is first examined by the DFS and is `Settled` when all nodes
128128
/// reachable from it have been examined. This allows us to differentiate between "tree", "back"
129129
/// and "forward" edges (see [`TriColorVisitor::node_examined`]).
130130
///
131-
/// Unlike the pseudocode in [CLR][], this implementation is iterative and does not use timestamps.
131+
/// Unlike the pseudocode in [CLR], this implementation is iterative and does not use timestamps.
132132
/// We accomplish this by storing `Event`s on the stack that result in a (possible) state change
133133
/// for each node. A `Visited` event signifies that we should examine this node if it has not yet
134134
/// been `Visited` or `Settled`. When a node is examined for the first time, we mark it as
@@ -246,7 +246,7 @@ where
246246
/// By checking the value of `prior_status`, this visitor can determine whether the edge
247247
/// leading to this node was a tree edge (`None`), forward edge (`Some(Settled)`) or back edge
248248
/// (`Some(Visited)`). For a full explanation of each edge type, see the "Depth-first Search"
249-
/// chapter in [CLR][] or [wikipedia][].
249+
/// chapter in [CLR] or [wikipedia].
250250
///
251251
/// If you want to know *both* nodes linked by each edge, you'll need to modify
252252
/// `TriColorDepthFirstSearch` to store a `source` node for each `Visited` event.

src/librustc_mir/dataflow/generic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//! interface, but make `Engine` and `ResultsCursor` the canonical way to perform and inspect a
1111
//! dataflow analysis. This requires porting the graphviz debugging logic to this module, deciding
1212
//! on a way to handle the `before` methods in `BitDenotation` and creating an adapter so that
13-
//! gen-kill problems can still be evaluated efficiently. See the discussion in [#64566][] for more
13+
//! gen-kill problems can still be evaluated efficiently. See the discussion in [#64566] for more
1414
//! information.
1515
//!
1616
//! [gk]: https://en.wikipedia.org/wiki/Data-flow_analysis#Bit_vector_problems

src/libstd/sync/mpsc/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ mod sync;
286286

287287
mod cache_aligned;
288288

289-
/// The receiving half of Rust's [`channel`][] (or [`sync_channel`]) type.
289+
/// The receiving half of Rust's [`channel`] (or [`sync_channel`]) type.
290290
/// This half can only be owned by one thread.
291291
///
292292
/// Messages sent to the channel can be retrieved using [`recv`].
@@ -1108,7 +1108,7 @@ impl<T> Receiver<T> {
11081108
///
11091109
/// This function will always block the current thread if there is no data
11101110
/// available and it's possible for more data to be sent. Once a message is
1111-
/// sent to the corresponding [`Sender`][] (or [`SyncSender`]), then this
1111+
/// sent to the corresponding [`Sender`] (or [`SyncSender`]), then this
11121112
/// receiver will wake up and return that message.
11131113
///
11141114
/// If the corresponding [`Sender`] has disconnected, or it disconnects while
@@ -1194,7 +1194,7 @@ impl<T> Receiver<T> {
11941194
///
11951195
/// This function will always block the current thread if there is no data
11961196
/// available and it's possible for more data to be sent. Once a message is
1197-
/// sent to the corresponding [`Sender`][] (or [`SyncSender`]), then this
1197+
/// sent to the corresponding [`Sender`] (or [`SyncSender`]), then this
11981198
/// receiver will wake up and return that message.
11991199
///
12001200
/// If the corresponding [`Sender`] has disconnected, or it disconnects while
@@ -1295,7 +1295,7 @@ impl<T> Receiver<T> {
12951295
///
12961296
/// This function will always block the current thread if there is no data
12971297
/// available and it's possible for more data to be sent. Once a message is
1298-
/// sent to the corresponding [`Sender`][] (or [`SyncSender`]), then this
1298+
/// sent to the corresponding [`Sender`] (or [`SyncSender`]), then this
12991299
/// receiver will wake up and return that message.
13001300
///
13011301
/// If the corresponding [`Sender`] has disconnected, or it disconnects while

src/libstd/sync/rwlock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::sys_common::rwlock as sys;
2525
/// The type parameter `T` represents the data that this lock protects. It is
2626
/// required that `T` satisfies [`Send`] to be shared across threads and
2727
/// [`Sync`] to allow concurrent access through readers. The RAII guards
28-
/// returned from the locking methods implement [`Deref`][] (and [`DerefMut`]
28+
/// returned from the locking methods implement [`Deref`] (and [`DerefMut`]
2929
/// for the `write` methods) to allow access to the content of the lock.
3030
///
3131
/// # Poisoning

0 commit comments

Comments
 (0)