From 8400cd0b34bff8f013cd00064fc650fef652fc1d Mon Sep 17 00:00:00 2001 From: Waffle Lapkin Date: Thu, 23 May 2024 01:02:37 +0200 Subject: [PATCH] Fixup links in lint docs looks like prim@ stuff does not work here (is it possibly not handled by rustdoc at all?) --- compiler/rustc_lint_defs/src/builtin.rs | 9 +++------ 1 file 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",