Skip to content

Commit 8c99bce

Browse files
committed
Auto merge of rust-lang#77856 - GuillaumeGomez:automatic-links-lint, r=jyn514,ollie27
Add non_autolinks lint Part of rust-lang#77501. r? `@jyn514`
2 parents a752327 + 52f64ec commit 8c99bce

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

core/src/future/mod.rs

Lines changed: 1 addition & 1 deletion
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
///

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
//!

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(non_autolinks))]
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)]

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

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.

panic_unwind/src/dwarf/eh.rs

Lines changed: 4 additions & 4 deletions
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).

panic_unwind/src/gcc.rs

Lines changed: 3 additions & 3 deletions
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
//!

0 commit comments

Comments
 (0)