|
1 | 1 | /// 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>. |
4 | 3 | ///
|
5 | 4 | /// For the following three cases the current compiler (1.76.0) gives a later error message when
|
6 | 5 | /// manually adding a generic lifetime bound that is implied by a nested reference:
|
7 | 6 | ///
|
8 |
| -/// https://github.com/rust-lang/rust/issues/25860 |
| 7 | +/// <https://github.com/rust-lang/rust/issues/25860> |
9 | 8 | /// Implied bounds on nested references + variance = soundness hole
|
10 |
| -/// https://github.com/rust-lang/rust/issues/25860#issue-82044592 |
11 | 9 | ///
|
12 |
| -/// https://github.com/rust-lang/rust/issues/84591 |
| 10 | +/// <https://github.com/rust-lang/rust/issues/84591> |
13 | 11 | /// HRTB on subtrait unsoundly provides HTRB on supertrait with weaker implied bounds
|
14 | 12 | ///
|
15 |
| -/// https://github.com/rust-lang/rust/issues/100051 |
| 13 | +/// <https://github.com/rust-lang/rust/issues/100051> |
16 | 14 | /// implied bounds from projections in impl header can be unsound
|
17 | 15 | ///
|
18 | 16 | /// The lints here suggest to manually add such lifetime bounds in the hope that
|
@@ -43,9 +41,9 @@ declare_clippy_lint! {
|
43 | 41 | /// can lead to a compiler error in related source code, as observed in rustc 1.76.0.
|
44 | 42 | ///
|
45 | 43 | /// ### 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> |
47 | 45 | /// 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>. |
49 | 47 | ///
|
50 | 48 | /// ### Known problems
|
51 | 49 | /// It is not known whether this covers all cases in issue 25860.
|
|
0 commit comments