Skip to content

Commit a87727d

Browse files
WaffleLapkincompiler-errors
authored andcommitted
Fixup links in lint docs
looks like prim@ stuff does not work here (is it possibly not handled by rustdoc at all?)
1 parent fa864f8 commit a87727d

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
@@ -4200,9 +4200,9 @@ declare_lint! {
42004200
/// The `dependency_on_unit_never_type_fallback` lint detects cases where code compiles with
42014201
/// [never type fallback] being [`()`], but will stop compiling with fallback being [`!`].
42024202
///
4203-
/// [never type fallback]: prim@never#never-type-fallback
4204-
/// [`()`]: prim@unit
4205-
/// [`!`]:
4203+
/// [never type fallback]: https://doc.rust-lang.org/nightly/core/primitive.never.html#never-type-fallback
4204+
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
4205+
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
42064206
///
42074207
/// ### Example
42084208
///
@@ -4239,9 +4239,6 @@ declare_lint! {
42394239
/// ```
42404240
///
42414241
/// See [Tracking Issue for making `!` fall back to `!`](https://github.com/rust-lang/rust/issues/123748).
4242-
///
4243-
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
4244-
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
42454242
pub DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK,
42464243
Warn,
42474244
"never type fallback affecting unsafe function calls",

0 commit comments

Comments
 (0)