Skip to content

Commit 35f16c6

Browse files
committed
Switch compiler/ to intra-doc links
rustc_lint and rustc_lint_defs weren't switched because they're included in the compiler book and so can't use intra-doc links.
1 parent d8d3ab9 commit 35f16c6

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

compiler/rustc_data_structures/src/graph/iterate/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ struct Event<N> {
149149
/// those successors), we will pop off that node's `Settled` event.
150150
///
151151
/// [CLR]: https://en.wikipedia.org/wiki/Introduction_to_Algorithms
152-
/// [`NodeStatus`]: ./enum.NodeStatus.html
153-
/// [`TriColorVisitor::node_examined`]: ./trait.TriColorVisitor.html#method.node_examined
154152
pub struct TriColorDepthFirstSearch<'graph, G>
155153
where
156154
G: ?Sized + DirectedGraph + WithNumNodes + WithSuccessors,

compiler/rustc_data_structures/src/sorted_map/index_map.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ use rustc_index::vec::{Idx, IndexVec};
2424
/// to insert into the middle of the sorted array. Users should avoid mutating this data structure
2525
/// in-place.
2626
///
27-
/// [`IndexVec`]: ../../rustc_index/vec/struct.IndexVec.html
28-
/// [`SortedMap`]: ../sorted_map/struct.SortedMap.html
27+
/// [`SortedMap`]: super::SortedMap
2928
#[derive(Clone, Debug)]
3029
pub struct SortedIndexMultiMap<I: Idx, K, V> {
3130
/// The elements of the map in insertion order.

compiler/rustc_errors/src/diagnostic.rs

-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ impl Diagnostic {
138138
///
139139
/// This span is *not* considered a ["primary span"][`MultiSpan`]; only
140140
/// the `Span` supplied when creating the diagnostic is primary.
141-
///
142-
/// [`MultiSpan`]: ../rustc_span/struct.MultiSpan.html
143141
pub fn span_label<T: Into<String>>(&mut self, span: Span, label: T) -> &mut Self {
144142
self.span.push_span_label(span, label.into());
145143
self

compiler/rustc_index/src/bit_set.rs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pub const WORD_BITS: usize = WORD_BYTES * 8;
2727
/// to or greater than the domain size. All operations that involve two bitsets
2828
/// will panic if the bitsets have differing domain sizes.
2929
///
30-
/// [`GrowableBitSet`]: struct.GrowableBitSet.html
3130
#[derive(Eq, PartialEq, Decodable, Encodable)]
3231
pub struct BitSet<T> {
3332
domain_size: usize,

compiler/rustc_mir/src/dataflow/impls/liveness.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::dataflow::{AnalysisDomain, Backward, GenKill, GenKillAnalysis};
1111
/// exist. See [this `mir-dataflow` test][flow-test] for an example. You almost never want to use
1212
/// this analysis without also looking at the results of [`MaybeBorrowedLocals`].
1313
///
14-
/// [`MaybeBorrowedLocals`]: ../struct.MaybeBorrowedLocals.html
14+
/// [`MaybeBorrowedLocals`]: super::MaybeBorrowedLocals
1515
/// [flow-test]: https://github.com/rust-lang/rust/blob/a08c47310c7d49cbdc5d7afb38408ba519967ecd/src/test/ui/mir-dataflow/liveness-ptr.rs
1616
/// [liveness]: https://en.wikipedia.org/wiki/Live_variable_analysis
1717
pub struct MaybeLiveLocals;

0 commit comments

Comments
 (0)