Skip to content

Commit b73eb9a

Browse files
committed
Fixup links in lint docs
looks like prim@ stuff does not work here (is it possibly not handled by rustdoc at all?)
1 parent 661824c commit b73eb9a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -4333,9 +4333,9 @@ declare_lint! {
43334333
/// The `dependency_on_unit_never_type_fallback` lint detects cases where code compiles with
43344334
/// [never type fallback] being [`()`], but will stop compiling with fallback being [`!`].
43354335
///
4336-
/// [never type fallback]: prim@never#never-type-fallback
4337-
/// [`()`]: prim@unit
4338-
/// [`!`]:
4336+
/// [never type fallback]: https://doc.rust-lang.org/nightly/core/primitive.never.html#never-type-fallback
4337+
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
4338+
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
43394339
///
43404340
/// ### Example
43414341
///
@@ -4372,9 +4372,6 @@ declare_lint! {
43724372
/// ```
43734373
///
43744374
/// See [Tracking Issue for making `!` fall back to `!`](https://github.com/rust-lang/rust/issues/123748).
4375-
///
4376-
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
4377-
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
43784375
pub DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK,
43794376
Warn,
43804377
"never type fallback affecting unsafe function calls",

0 commit comments

Comments
 (0)