about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWaffle Lapkin <waffle.lapkin@gmail.com>2024-05-23 01:02:37 +0200
committerWaffle Lapkin <waffle.lapkin@gmail.com>2024-06-13 12:24:31 +0200
commit8400cd0b34bff8f013cd00064fc650fef652fc1d (patch)
treed3063b653a525e57525035048bd3d7a99850a558
parenta22f8aa17abcd2f0dfb83aa8ee41509f922be6ab (diff)
downloadrust-8400cd0b34bff8f013cd00064fc650fef652fc1d.tar.gz
rust-8400cd0b34bff8f013cd00064fc650fef652fc1d.zip
Fixup links in lint docs
looks like prim@ stuff does not work here (is it possibly not handled by rustdoc at all?)
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index e6895fbfd09..a12c76037e7 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -4204,9 +4204,9 @@ declare_lint! {
     /// The `dependency_on_unit_never_type_fallback` lint detects cases where code compiles with
     /// [never type fallback] being [`()`], but will stop compiling with fallback being [`!`].
     ///
-    /// [never type fallback]: prim@never#never-type-fallback
-    /// [`()`]: prim@unit
-    /// [`!`]:
+    /// [never type fallback]: https://doc.rust-lang.org/nightly/core/primitive.never.html#never-type-fallback
+    /// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
+    /// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
     ///
     /// ### Example
     ///
@@ -4243,9 +4243,6 @@ declare_lint! {
     /// ```
     ///
     /// See [Tracking Issue for making `!` fall back to `!`](https://github.com/rust-lang/rust/issues/123748).
-    ///
-    /// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
-    /// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
     pub DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK,
     Warn,
     "never type fallback affecting unsafe function calls",