Skip to content

Commit

Permalink
Fixup links in lint docs
Browse files Browse the repository at this point in the history
looks like prim@ stuff does not work here (is it possibly not handled by rustdoc at all?)
  • Loading branch information
WaffleLapkin authored and compiler-errors committed Jun 13, 2024
1 parent fa864f8 commit a87727d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4200,9 +4200,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
///
Expand Down Expand Up @@ -4239,9 +4239,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",
Expand Down

0 comments on commit a87727d

Please sign in to comment.