diff options
| author | y21 <30553356+y21@users.noreply.github.com> | 2023-05-22 00:01:40 +0200 |
|---|---|---|
| committer | y21 <30553356+y21@users.noreply.github.com> | 2023-05-22 00:01:40 +0200 |
| commit | 3eeeaa2bc7bff6b9f11dfe99889a4627904de221 (patch) | |
| tree | e278ec5b27fa6c474147f6ba6239b7e3cb5d503c | |
| parent | 1e73a9eb4be45092fdd5b76cc50db00970c852f7 (diff) | |
| download | rust-3eeeaa2bc7bff6b9f11dfe99889a4627904de221.tar.gz rust-3eeeaa2bc7bff6b9f11dfe99889a4627904de221.zip | |
remove old span_lint
| -rw-r--r-- | clippy_lints/src/unused_async.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clippy_lints/src/unused_async.rs b/clippy_lints/src/unused_async.rs index c1339d94637..4c68cda7aa7 100644 --- a/clippy_lints/src/unused_async.rs +++ b/clippy_lints/src/unused_async.rs @@ -1,4 +1,4 @@ -use clippy_utils::diagnostics::{span_lint_and_help, span_lint_and_then}; +use clippy_utils::diagnostics::span_lint_and_then; use rustc_hir::intravisit::{walk_body, walk_expr, walk_fn, FnKind, Visitor}; use rustc_hir::{Body, Expr, ExprKind, FnDecl, YieldSource}; use rustc_lint::{LateContext, LateLintPass}; @@ -113,14 +113,6 @@ impl<'tcx> LateLintPass<'tcx> for UnusedAsync { } }, ); - span_lint_and_help( - cx, - UNUSED_ASYNC, - span, - "unused `async` for function with no await statements", - None, - "consider removing the `async` from this function", - ); } } } |
