Rollup merge of #79612 - jyn514:compiler-links, r=Aaron1011

Switch some links in compiler/ to intra-doc links
This commit is contained in:
Yuki Okushi 2020-12-19 15:16:03 +09:00 committed by GitHub
commit c111404cb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 8 deletions

View File

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

View File

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

View File

@ -138,8 +138,6 @@ impl Diagnostic {
/// ///
/// This span is *not* considered a ["primary span"][`MultiSpan`]; only /// This span is *not* considered a ["primary span"][`MultiSpan`]; only
/// the `Span` supplied when creating the diagnostic is primary. /// the `Span` supplied when creating the diagnostic is primary.
///
/// [`MultiSpan`]: ../rustc_span/struct.MultiSpan.html
pub fn span_label<T: Into<String>>(&mut self, span: Span, label: T) -> &mut Self { pub fn span_label<T: Into<String>>(&mut self, span: Span, label: T) -> &mut Self {
self.span.push_span_label(span, label.into()); self.span.push_span_label(span, label.into());
self self

View File

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

View File

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