Fix automatic_links warnings
This commit is contained in:
parent
7f839b2ece
commit
55b4d21e25
8 changed files with 8 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
//!
|
//!
|
||||||
//! Table of CRT objects for popular toolchains.
|
//! Table of CRT objects for popular toolchains.
|
||||||
//! The `crtx` ones are generally distributed with libc and the `begin/end` ones with gcc.
|
//! 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 |
|
//! | Pre-link CRT objects | glibc | musl | bionic | mingw | wasi |
|
||||||
//! |----------------------|------------------------|------------------------|------------------|-------------------|------|
|
//! |----------------------|------------------------|------------------------|------------------|-------------------|------|
|
||||||
|
|
|
@ -950,7 +950,7 @@ pub struct TargetOptions {
|
||||||
/// The MergeFunctions pass is generally useful, but some targets may need
|
/// The MergeFunctions pass is generally useful, but some targets may need
|
||||||
/// to opt out. The default is "aliases".
|
/// 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,
|
pub merge_functions: MergeFunctions,
|
||||||
|
|
||||||
/// Use platform dependent mcount function
|
/// Use platform dependent mcount function
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//! (e.g. trying to create a TCP stream or something like that).
|
//! (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
|
//! 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::wasm32_base;
|
||||||
use super::{LinkerFlavor, LldFlavor, Target};
|
use super::{LinkerFlavor, LldFlavor, Target};
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
//! intended to empower WebAssembly binaries with native capabilities such as
|
//! intended to empower WebAssembly binaries with native capabilities such as
|
||||||
//! filesystem access, network access, etc.
|
//! 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
|
//! The Rust target definition here is interesting in a few ways. We want to
|
||||||
//! serve two use cases here with this target:
|
//! serve two use cases here with this target:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
//! This includes changes in the stability of the constness.
|
//! 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
|
//! 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
|
//! `compiler/rustc_mir/src/interpret/intrinsics.rs` and add a
|
||||||
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
|
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
|
||||||
//!
|
//!
|
||||||
|
|
|
@ -287,6 +287,7 @@ pub mod primitive;
|
||||||
unused_imports,
|
unused_imports,
|
||||||
unsafe_op_in_unsafe_fn
|
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
|
// 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.
|
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
|
||||||
#[allow(clashing_extern_declarations)]
|
#[allow(clashing_extern_declarations)]
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
//!
|
//!
|
||||||
//! Primarily, this module and its children implement the algorithms described in:
|
//! Primarily, this module and its children implement the algorithms described in:
|
||||||
//! "How to Read Floating Point Numbers Accurately" by William D. Clinger,
|
//! "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 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
|
//! in Rust (or at least in core). Our version is additionally complicated by the need to handle
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//! Slice sorting
|
//! Slice sorting
|
||||||
//!
|
//!
|
||||||
//! This module contains a sorting algorithm based on Orson Peters' pattern-defeating quicksort,
|
//! 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
|
//! Unstable sorting is compatible with libcore because it doesn't allocate memory, unlike our
|
||||||
//! stable sorting implementation.
|
//! stable sorting implementation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue