Skip to content

Commit 8400cd0

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 a22f8aa commit 8400cd0

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
@@ -4204,9 +4204,9 @@ declare_lint! {
42044204
/// The `dependency_on_unit_never_type_fallback` lint detects cases where code compiles with
42054205
/// [never type fallback] being [`()`], but will stop compiling with fallback being [`!`].
42064206
///
4207-
/// [never type fallback]: prim@never#never-type-fallback
4208-
/// [`()`]: prim@unit
4209-
/// [`!`]:
4207+
/// [never type fallback]: https://doc.rust-lang.org/nightly/core/primitive.never.html#never-type-fallback
4208+
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
4209+
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
42104210
///
42114211
/// ### Example
42124212
///
@@ -4243,9 +4243,6 @@ declare_lint! {
42434243
/// ```
42444244
///
42454245
/// See [Tracking Issue for making `!` fall back to `!`](https://github.com/rust-lang/rust/issues/123748).
4246-
///
4247-
/// [`!`]: https://doc.rust-lang.org/core/primitive.never.html
4248-
/// [`()`]: https://doc.rust-lang.org/core/primitive.unit.html
42494246
pub DEPENDENCY_ON_UNIT_NEVER_TYPE_FALLBACK,
42504247
Warn,
42514248
"never type fallback affecting unsafe function calls",

0 commit comments

Comments
 (0)