]> git.lizzy.rs Git - rust.git/commitdiff
Fix automatic_links warnings
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 14 Oct 2020 15:35:43 +0000 (17:35 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 5 Nov 2020 09:22:08 +0000 (10:22 +0100)
compiler/rustc_target/src/spec/crt_objects.rs
compiler/rustc_target/src/spec/mod.rs
compiler/rustc_target/src/spec/wasm32_unknown_unknown.rs
compiler/rustc_target/src/spec/wasm32_wasi.rs
library/core/src/intrinsics.rs
library/core/src/lib.rs
library/core/src/num/dec2flt/mod.rs
library/core/src/slice/sort.rs

index 8991691a9a30c63b4f3f22d071bb2f9bc1496ea9..76c0bf419e8c4d36141da30c993a4bdd984e53ad 100644 (file)
@@ -3,7 +3,7 @@
 //!
 //! Table of CRT objects for popular toolchains.
 //! The `crtx` ones are generally distributed with libc and the `begin/end` ones with gcc.
-//! See https://dev.gentoo.org/~vapier/crt.txt for some more details.
+//! See <https://dev.gentoo.org/~vapier/crt.txt> for some more details.
 //!
 //! | Pre-link CRT objects | glibc                  | musl                   | bionic           | mingw             | wasi |
 //! |----------------------|------------------------|------------------------|------------------|-------------------|------|
index ba9e2f7fa0648d6e057d9a83e03bcc18ec9da0e9..d3c5a9433d08e638d1a02e60c3afa8cf2d701a38 100644 (file)
@@ -950,7 +950,7 @@ pub struct TargetOptions {
     /// The MergeFunctions pass is generally useful, but some targets may need
     /// to opt out. The default is "aliases".
     ///
-    /// Workaround for: https://github.com/rust-lang/rust/issues/57356
+    /// Workaround for: <https://github.com/rust-lang/rust/issues/57356>
     pub merge_functions: MergeFunctions,
 
     /// Use platform dependent mcount function
index 19609b0d496f29b4ca72fcdcd8db1e10f2857975..1ef0a81937849002dc68a3cfa9c7ca0c955235e0 100644 (file)
@@ -8,7 +8,7 @@
 //! (e.g. trying to create a TCP stream or something like that).
 //!
 //! This target is more or less managed by the Rust and WebAssembly Working
-//! Group nowadays at https://github.com/rustwasm.
+//! Group nowadays at <https://github.com/rustwasm>.
 
 use super::wasm32_base;
 use super::{LinkerFlavor, LldFlavor, Target};
index 26e0722fcf0c2c498fabe7d83a6e631d56739248..8c2bb9208291d77dce3f71e3504f069b69e97c22 100644 (file)
@@ -7,7 +7,7 @@
 //! intended to empower WebAssembly binaries with native capabilities such as
 //! filesystem access, network access, etc.
 //!
-//! You can see more about the proposal at https://wasi.dev
+//! You can see more about the proposal at <https://wasi.dev>.
 //!
 //! The Rust target definition here is interesting in a few ways. We want to
 //! serve two use cases here with this target:
index 3e5d7caa2fe5d0ff3c0d9ca5a3dde56e3d82b82f..3570cab0022e8ba2f29a27263c5e19fab2e17a95 100644 (file)
@@ -9,7 +9,7 @@
 //! This includes changes in the stability of the constness.
 //!
 //! In order to make an intrinsic usable at compile-time, one needs to copy the implementation
-//! from https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs to
+//! from <https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs> to
 //! `compiler/rustc_mir/src/interpret/intrinsics.rs` and add a
 //! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
 //!
index b89ec93834fcc7232df1850e7338a31ea53001dd..09dbde2c121f6c5f3e55a0222b09c41cca97788c 100644 (file)
     unused_imports,
     unsafe_op_in_unsafe_fn
 )]
+#[cfg_attr(not(bootstrap), allow(automatic_links))]
 // FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
 // merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
 #[allow(clashing_extern_declarations)]
index 6f3a3a867450db0d9e3cf6ee1e9c3127bed0cd22..039112e9f34687d073e4c988df8c188e230d7a6a 100644 (file)
@@ -33,7 +33,7 @@
 //!
 //! Primarily, this module and its children implement the algorithms described in:
 //! "How to Read Floating Point Numbers Accurately" by William D. Clinger,
-//! available online: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.4152
+//! available online: <http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.45.4152>
 //!
 //! In addition, there are numerous helper functions that are used in the paper but not available
 //! in Rust (or at least in core). Our version is additionally complicated by the need to handle
index 71d2c2c9b2f4c2f3be43c3f9754ceec87f56c8dc..2a7693d27efa2d9649ec667b6a71d4f5a28514b7 100644 (file)
@@ -1,7 +1,7 @@
 //! Slice sorting
 //!
 //! This module contains a sorting algorithm based on Orson Peters' pattern-defeating quicksort,
-//! published at: https://github.com/orlp/pdqsort
+//! published at: <https://github.com/orlp/pdqsort>
 //!
 //! Unstable sorting is compatible with libcore because it doesn't allocate memory, unlike our
 //! stable sorting implementation.