remove old span_lint

This commit is contained in:
y21 2023-05-22 00:01:40 +02:00
parent 1e73a9eb4b
commit 3eeeaa2bc7

View File

@ -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",
);
}
}
}