Skip to content

Commit d7272ea

Browse files
Fix automatic_links warnings
1 parent e833cd3 commit d7272ea

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

library/core/src/intrinsics.rs

+1-1
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

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ pub mod primitive;
283283
unused_imports,
284284
unsafe_op_in_unsafe_fn
285285
)]
286+
#[cfg_attr(not(bootstrap), allow(automatic_links))]
286287
// FIXME: This annotation should be moved into rust-lang/stdarch after clashing_extern_declarations is
287288
// merged. It currently cannot because bootstrap fails as the lint hasn't been defined yet.
288289
#[allow(clashing_extern_declarations)]

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

+1-1
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

+1-1
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)