diff options
| author | Timo <30553356+y21@users.noreply.github.com> | 2025-06-16 21:52:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-16 21:52:28 +0000 |
| commit | b765acb49d0db109a08e665bf1bdcec38b1c3519 (patch) | |
| tree | 0142c45ac986358c91c05b243b48f12eafbdc468 | |
| parent | af9d56860e4c18b7ac985eebbf7b55ddde6cfd60 (diff) | |
| parent | 75762c41d479e6dac162ed5f778357510cda3e45 (diff) | |
| download | rust-b765acb49d0db109a08e665bf1bdcec38b1c3519.tar.gz rust-b765acb49d0db109a08e665bf1bdcec38b1c3519.zip | |
docs: add link to span_lint in diagnostics.rs. (#15065)
Some of the docs in `clippy_utils/src/diagnostics.rs` were missing links to `span_lint`. changelog: none
| -rw-r--r-- | clippy_utils/src/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_utils/src/diagnostics.rs b/clippy_utils/src/diagnostics.rs index cd2098a8989..dc240dd067b 100644 --- a/clippy_utils/src/diagnostics.rs +++ b/clippy_utils/src/diagnostics.rs @@ -109,7 +109,7 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult }); } -/// Same as `span_lint` but with an extra `help` message. +/// Same as [`span_lint`] but with an extra `help` message. /// /// Use this if you want to provide some general help but /// can't provide a specific machine applicable suggestion. @@ -166,7 +166,7 @@ pub fn span_lint_and_help<T: LintContext>( }); } -/// Like `span_lint` but with a `note` section instead of a `help` message. +/// Like [`span_lint`] but with a `note` section instead of a `help` message. /// /// The `note` message is presented separately from the main lint message /// and is attached to a specific span: @@ -226,7 +226,7 @@ pub fn span_lint_and_note<T: LintContext>( }); } -/// Like `span_lint` but allows to add notes, help and suggestions using a closure. +/// Like [`span_lint`] but allows to add notes, help and suggestions using a closure. /// /// If you need to customize your lint output a lot, use this function. /// If you change the signature, remember to update the internal lint `CollapsibleCalls` |
