Skip to content

Commit c249247

Browse files
author
Ype Kingma
committed
More dogfood: <url>s
1 parent 94d7374 commit c249247

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

clippy_lints/src/lifetimes_bound_nested_ref.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
/// Lints to help dealing with unsoundness due to a compiler bug described here:
2-
///
3-
/// https://github.com/rust-lang/rustc-dev-guide/blob/478a77a902f64e5128e7164e4e8a3980cfe4b133/src/traits/implied-bounds.md .
2+
/// <https://github.com/rust-lang/rustc-dev-guide/blob/478a77a902f64e5128e7164e4e8a3980cfe4b133/src/traits/implied-bounds.md>.
43
///
54
/// For the following three cases the current compiler (1.76.0) gives a later error message when
65
/// manually adding a generic lifetime bound that is implied by a nested reference:
76
///
8-
/// https://github.com/rust-lang/rust/issues/25860
7+
/// <https://github.com/rust-lang/rust/issues/25860>
98
/// Implied bounds on nested references + variance = soundness hole
10-
/// https://github.com/rust-lang/rust/issues/25860#issue-82044592
119
///
12-
/// https://github.com/rust-lang/rust/issues/84591
10+
/// <https://github.com/rust-lang/rust/issues/84591>
1311
/// HRTB on subtrait unsoundly provides HTRB on supertrait with weaker implied bounds
1412
///
15-
/// https://github.com/rust-lang/rust/issues/100051
13+
/// <https://github.com/rust-lang/rust/issues/100051>
1614
/// implied bounds from projections in impl header can be unsound
1715
///
1816
/// The lints here suggest to manually add such lifetime bounds in the hope that
@@ -43,9 +41,9 @@ declare_clippy_lint! {
4341
/// can lead to a compiler error in related source code, as observed in rustc 1.76.0.
4442
///
4543
/// ### Why is this bad?
46-
/// This is described in: https://github.com/rust-lang/rust/issues/25860
44+
/// This is described in: <https://github.com/rust-lang/rust/issues/25860>
4745
/// and as one case of unsoundness here:
48-
/// https://github.com/rust-lang/rustc-dev-guide/blob/478a77a902f64e5128e7164e4e8a3980cfe4b133/src/traits/implied-bounds.md .
46+
/// <https://github.com/rust-lang/rustc-dev-guide/blob/478a77a902f64e5128e7164e4e8a3980cfe4b133/src/traits/implied-bounds.md>.
4947
///
5048
/// ### Known problems
5149
/// It is not known whether this covers all cases in issue 25860.

0 commit comments

Comments
 (0)