diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-08 01:52:56 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-15 16:05:36 +0000 |
| commit | 677ccca13b8e0f84b8dadbbff44d68e32df016d0 (patch) | |
| tree | d35e20398f8d7a2805d31d94716c03119c580724 | |
| parent | f90e8ef6b82574a7ed41e2f3abcc157b93411cf4 (diff) | |
| download | rust-677ccca13b8e0f84b8dadbbff44d68e32df016d0.tar.gz rust-677ccca13b8e0f84b8dadbbff44d68e32df016d0.zip | |
Don't pass lint back out of lint decorator
| -rw-r--r-- | clippy_utils/src/diagnostics.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clippy_utils/src/diagnostics.rs b/clippy_utils/src/diagnostics.rs index fa56e5b0ba2..7562961538e 100644 --- a/clippy_utils/src/diagnostics.rs +++ b/clippy_utils/src/diagnostics.rs @@ -49,7 +49,6 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult #[expect(clippy::disallowed_methods)] cx.struct_span_lint(lint, sp, msg.to_string(), |diag| { docs_link(diag, lint); - diag }); } @@ -90,7 +89,6 @@ pub fn span_lint_and_help<T: LintContext>( diag.help(help.to_string()); } docs_link(diag, lint); - diag }); } @@ -134,7 +132,6 @@ pub fn span_lint_and_note<T: LintContext>( diag.note(note); } docs_link(diag, lint); - diag }); } @@ -152,7 +149,6 @@ where cx.struct_span_lint(lint, sp, msg.to_string(), |diag| { f(diag); docs_link(diag, lint); - diag }); } @@ -160,7 +156,6 @@ pub fn span_lint_hir(cx: &LateContext<'_>, lint: &'static Lint, hir_id: HirId, s #[expect(clippy::disallowed_methods)] cx.tcx.struct_span_lint_hir(lint, hir_id, sp, msg.to_string(), |diag| { docs_link(diag, lint); - diag }); } @@ -176,7 +171,6 @@ pub fn span_lint_hir_and_then( cx.tcx.struct_span_lint_hir(lint, hir_id, sp, msg.to_string(), |diag| { f(diag); docs_link(diag, lint); - diag }); } |
