mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Don't pass lint back out of lint decorator
This commit is contained in:
parent
f90e8ef6b8
commit
677ccca13b
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue