Skip to content

Commit 99200f7

Browse files
Fix even more URLs
1 parent 16ed850 commit 99200f7

File tree

16 files changed

+25
-25
lines changed

16 files changed

+25
-25
lines changed

compiler/rustc_codegen_cranelift/src/discriminant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Handling of enum discriminants
22
//!
3-
//! Adapted from https://github.com/rust-lang/rust/blob/d760df5aea483aae041c9a241e7acacf48f75035/src/librustc_codegen_ssa/mir/place.rs
3+
//! Adapted from <https://github.com/rust-lang/rust/blob/d760df5aea483aae041c9a241e7acacf48f75035/src/librustc_codegen_ssa/mir/place.rs>
44
55
use rustc_target::abi::{Int, TagEncoding, Variants};
66

compiler/rustc_middle/src/mir/coverage.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ rustc_index::newtype_index! {
1717
impl ExpressionOperandId {
1818
/// An expression operand for a "zero counter", as described in the following references:
1919
///
20-
/// * https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#counter
21-
/// * https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#tag
22-
/// * https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#counter-expressions
20+
/// * <https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#counter>
21+
/// * <https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#tag>
22+
/// * <https://github.com/rust-lang/llvm-project/blob/llvmorg-8.0.0/llvm/docs/CoverageMappingFormat.rst#counter-expressions>
2323
///
2424
/// This operand can be used to count two or more separate code regions with a single counter,
2525
/// if they run sequentially with no branches, by injecting the `Counter` in a `BasicBlock` for

compiler/rustc_middle/src/mir/mono.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pub struct CodegenUnit<'tcx> {
228228

229229
/// Specifies the linkage type for a `MonoItem`.
230230
///
231-
/// See https://llvm.org/docs/LangRef.html#linkage-types for more details about these variants.
231+
/// See <https://llvm.org/docs/LangRef.html#linkage-types> for more details about these variants.
232232
#[derive(Copy, Clone, PartialEq, Debug, TyEncodable, TyDecodable, HashStable)]
233233
pub enum Linkage {
234234
External,

compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ pub struct TypeckResults<'tcx> {
368368
/// leads to a `vec![&&Option<i32>, &Option<i32>]`. Empty vectors are not stored.
369369
///
370370
/// See:
371-
/// https://github.com/rust-lang/rfcs/blob/master/text/2005-match-ergonomics.md#definitions
371+
/// <https://github.com/rust-lang/rfcs/blob/master/text/2005-match-ergonomics.md#definitions>
372372
pat_adjustments: ItemLocalMap<Vec<Ty<'tcx>>>,
373373

374374
/// Borrows

compiler/rustc_mir/src/borrow_check/region_infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13641364
/// terms that the "longer free region" `'a` outlived the "shorter free region" `'b`.
13651365
///
13661366
/// More details can be found in this blog post by Niko:
1367-
/// http://smallcultfollowing.com/babysteps/blog/2019/01/17/polonius-and-region-errors/
1367+
/// <http://smallcultfollowing.com/babysteps/blog/2019/01/17/polonius-and-region-errors/>
13681368
///
13691369
/// In the canonical example
13701370
///

compiler/rustc_mir/src/transform/dest_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! inside a single block to shuffle a value around unnecessarily.
99
//!
1010
//! LLVM by itself is not good enough at eliminating these redundant copies (eg. see
11-
//! https://github.com/rust-lang/rust/issues/32966), so this leaves some performance on the table
11+
//! <https://github.com/rust-lang/rust/issues/32966>), so this leaves some performance on the table
1212
//! that we can regain by implementing an optimization for removing these assign statements in rustc
1313
//! itself. When this optimization runs fast enough, it can also speed up the constant evaluation
1414
//! and code generation phases of rustc due to the reduced number of statements and locals.

compiler/rustc_mir_build/src/thir/pattern/_match.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! (b) each pattern is necessary (usefulness)
99
//!
1010
//! The algorithm implemented here is a modified version of the one described in:
11-
//! http://moscova.inria.fr/~maranget/papers/warn/index.html
11+
//! <http://moscova.inria.fr/~maranget/papers/warn/index.html>
1212
//! However, to save future implementors from reading the original paper, we
1313
//! summarise the algorithm here to hopefully save time and be a little clearer
1414
//! (without being so rigorous).
@@ -2040,7 +2040,7 @@ impl<'tcx> MissingConstructors<'tcx> {
20402040
}
20412041
}
20422042

2043-
/// Algorithm from http://moscova.inria.fr/~maranget/papers/warn/index.html.
2043+
/// Algorithm from <http://moscova.inria.fr/~maranget/papers/warn/index.html>.
20442044
/// The algorithm from the paper has been modified to correctly handle empty
20452045
/// types. The changes are:
20462046
/// (0) We don't exit early if the pattern matrix has zero rows. We just

compiler/rustc_parse/src/lexer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ impl<'a> StringReader<'a> {
511511
}
512512

513513
/// Note: It was decided to not add a test case, because it would be to big.
514-
/// https://github.com/rust-lang/rust/pull/50296#issuecomment-392135180
514+
/// <https://github.com/rust-lang/rust/pull/50296#issuecomment-392135180>
515515
fn report_too_many_hashes(&self, start: BytePos, found: usize) -> ! {
516516
self.fatal_span_(
517517
start,

compiler/rustc_privacy/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use std::{cmp, fmt, mem};
3838
/// Implemented to visit all `DefId`s in a type.
3939
/// Visiting `DefId`s is useful because visibilities and reachabilities are attached to them.
4040
/// The idea is to visit "all components of a type", as documented in
41-
/// https://github.com/rust-lang/rfcs/blob/master/text/2145-type-privacy.md#how-to-determine-visibility-of-a-type.
41+
/// <https://github.com/rust-lang/rfcs/blob/master/text/2145-type-privacy.md#how-to-determine-visibility-of-a-type>.
4242
/// The default type visitor (`TypeVisitor`) does most of the job, but it has some shortcomings.
4343
/// First, it doesn't have overridable `fn visit_trait_ref`, so we have to catch trait `DefId`s
4444
/// manually. Second, it doesn't visit some type components like signatures of fn types, or traits

compiler/rustc_trait_selection/src/traits/object_safety.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ fn object_ty_for_trait<'tcx>(
621621
///
622622
/// In practice, we cannot use `dyn Trait` explicitly in the obligation because it would result
623623
/// in a new check that `Trait` is object safe, creating a cycle (until object_safe_for_dispatch
624-
/// is stabilized, see tracking issue https://github.com/rust-lang/rust/issues/43561).
624+
/// is stabilized, see tracking issue <https://github.com/rust-lang/rust/issues/43561>).
625625
/// Instead, we fudge a little by introducing a new type parameter `U` such that
626626
/// `Self: Unsize<U>` and `U: Trait + ?Sized`, and use `U` in place of `dyn Trait`.
627627
/// Written as a chalk-style query:

library/core/src/future/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub use poll_fn::{poll_fn, PollFn};
3232
/// This type is needed because:
3333
///
3434
/// a) Generators cannot implement `for<'a, 'b> Generator<&'a mut Context<'b>>`, so we need to pass
35-
/// a raw pointer (see https://github.com/rust-lang/rust/issues/68923).
35+
/// a raw pointer (see <https://github.com/rust-lang/rust/issues/68923>).
3636
/// b) Raw pointers and `NonNull` aren't `Send` or `Sync`, so that would make every single future
3737
/// non-Send/Sync as well, and we don't want that.
3838
///

library/panic_unwind/src/dwarf/eh.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Parsing of GCC-style Language-Specific Data Area (LSDA)
22
//! For details see:
3-
//! http://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/ehframechpt.html
4-
//! http://mentorembedded.github.io/cxx-abi/exceptions.pdf
5-
//! http://www.airs.com/blog/archives/460
6-
//! http://www.airs.com/blog/archives/464
3+
//! * <http://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-PDA/LSB-PDA/ehframechpt.html>
4+
//! * <http://mentorembedded.github.io/cxx-abi/exceptions.pdf>
5+
//! * <http://www.airs.com/blog/archives/460>
6+
//! * <http://www.airs.com/blog/archives/464>
77
//!
88
//! A reference implementation may be found in the GCC source tree
99
//! (`<root>/libgcc/unwind-c.c` as of this writing).

library/panic_unwind/src/gcc.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
//! "Exception Handling in LLVM" (llvm.org/docs/ExceptionHandling.html) and
55
//! documents linked from it.
66
//! These are also good reads:
7-
//! https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html
8-
//! http://monoinfinito.wordpress.com/series/exception-handling-in-c/
9-
//! http://www.airs.com/blog/index.php?s=exception+frames
7+
//! * <https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html>
8+
//! * <http://monoinfinito.wordpress.com/series/exception-handling-in-c/>
9+
//! * <http://www.airs.com/blog/index.php?s=exception+frames>
1010
//!
1111
//! ## A brief summary
1212
//!

src/bootstrap/toolstate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl Step for ToolStateCheck {
152152
/// error if there are any.
153153
///
154154
/// This also handles publishing the results to the `history` directory of
155-
/// the toolstate repo https://github.com/rust-lang-nursery/rust-toolstate
155+
/// the toolstate repo <https://github.com/rust-lang-nursery/rust-toolstate>
156156
/// if the env var `TOOLSTATE_PUBLISH` is set. Note that there is a
157157
/// *separate* step of updating the `latest.json` file and creating GitHub
158158
/// issues and comments in `src/ci/publish_toolstate.sh`, which is only
@@ -162,7 +162,7 @@ impl Step for ToolStateCheck {
162162
/// The rules for failure are:
163163
/// * If the PR modifies a tool, the status must be test-pass.
164164
/// NOTE: There is intent to change this, see
165-
/// https://github.com/rust-lang/rust/issues/65000.
165+
/// <https://github.com/rust-lang/rust/issues/65000>.
166166
/// * All "stable" tools must be test-pass on the stable or beta branches.
167167
/// * During beta promotion week, a PR is not allowed to "regress" a
168168
/// stable tool. That is, the status is not allowed to get worse

src/build_helper/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ macro_rules! t {
3232

3333
/// Reads an environment variable and adds it to dependencies.
3434
/// Supposed to be used for all variables except those set for build scripts by cargo
35-
/// https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts
35+
/// <https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts>
3636
pub fn tracked_env_var_os<K: AsRef<OsStr> + Display>(key: K) -> Option<OsString> {
3737
println!("cargo:rerun-if-env-changed={}", key);
3838
env::var_os(key)

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ fn run_global_ctxt(
665665
(krate, ctxt.renderinfo.into_inner(), ctxt.render_options)
666666
}
667667

668-
/// Due to https://github.com/rust-lang/rust/pull/73566,
668+
/// Due to <https://github.com/rust-lang/rust/pull/73566>,
669669
/// the name resolution pass may find errors that are never emitted.
670670
/// If typeck is called after this happens, then we'll get an ICE:
671671
/// 'Res::Error found but not reported'. To avoid this, emit the errors now.

0 commit comments

Comments
 (0)