Skip to content

Commit 55b4d21

Browse files
Fix automatic_links warnings
1 parent 7f839b2 commit 55b4d21

File tree

8 files changed

+8
-7
lines changed

8 files changed

+8
-7
lines changed

compiler/rustc_target/src/spec/crt_objects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//!
44
//! Table of CRT objects for popular toolchains.
55
//! The `crtx` ones are generally distributed with libc and the `begin/end` ones with gcc.
6-
//! See https://dev.gentoo.org/~vapier/crt.txt for some more details.
6+
//! See <https://dev.gentoo.org/~vapier/crt.txt> for some more details.
77
//!
88
//! | Pre-link CRT objects | glibc | musl | bionic | mingw | wasi |
99
//! |----------------------|------------------------|------------------------|------------------|-------------------|------|

compiler/rustc_target/src/spec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ pub struct TargetOptions {
950950
/// The MergeFunctions pass is generally useful, but some targets may need
951951
/// to opt out. The default is "aliases".
952952
///
953-
/// Workaround for: https://github.com/rust-lang/rust/issues/57356
953+
/// Workaround for: <https://github.com/rust-lang/rust/issues/57356>
954954
pub merge_functions: MergeFunctions,
955955

956956
/// Use platform dependent mcount function

compiler/rustc_target/src/spec/wasm32_unknown_unknown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//! (e.g. trying to create a TCP stream or something like that).
99
//!
1010
//! This target is more or less managed by the Rust and WebAssembly Working
11-
//! Group nowadays at https://github.com/rustwasm.
11+
//! Group nowadays at <https://github.com/rustwasm>.
1212
1313
use super::wasm32_base;
1414
use super::{LinkerFlavor, LldFlavor, Target};

compiler/rustc_target/src/spec/wasm32_wasi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! intended to empower WebAssembly binaries with native capabilities such as
88
//! filesystem access, network access, etc.
99
//!
10-
//! You can see more about the proposal at https://wasi.dev
10+
//! You can see more about the proposal at <https://wasi.dev>.
1111
//!
1212
//! The Rust target definition here is interesting in a few ways. We want to
1313
//! serve two use cases here with this target:

library/core/src/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! This includes changes in the stability of the constness.
1010
//!
1111
//! In order to make an intrinsic usable at compile-time, one needs to copy the implementation
12-
//! from https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs to
12+
//! from <https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs> to
1313
//! `compiler/rustc_mir/src/interpret/intrinsics.rs` and add a
1414
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
1515
//!

library/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ pub mod primitive;
287287
unused_imports,
288288
unsafe_op_in_unsafe_fn
289289
)]
290+
#[cfg_attr(not(bootstrap), allow(automatic_links))]
290291
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
291292
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
292293
#[allow(clashing_extern_declarations)]

library/core/src/num/dec2flt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
//!
3434
//! Primarily, this module and its children implement the algorithms described in:
3535
//! "How to Read Floating Point Numbers Accurately" by William D. Clinger,
36-
//! available online: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.4152
36+
//! available online: <http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.4152>
3737
//!
3838
//! In addition, there are numerous helper functions that are used in the paper but not available
3939
//! in Rust (or at least in core). Our version is additionally complicated by the need to handle

library/core/src/slice/sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Slice sorting
22
//!
33
//! This module contains a sorting algorithm based on Orson Peters' pattern-defeating quicksort,
4-
//! published at: https://github.com/orlp/pdqsort
4+
//! published at: <https://github.com/orlp/pdqsort>
55
//!
66
//! Unstable sorting is compatible with libcore because it doesn't allocate memory, unlike our
77
//! stable sorting implementation.

0 commit comments

Comments
 (0)