use clippy_utils::diagnostics::span_lint_and_then;
-use clippy_utils::higher;
use clippy_utils::source::snippet_with_macro_callsite;
use rustc_errors::Applicability;
use rustc_hir::{Stmt, StmtKind};
if in_external_macro(cx.sess(), stmt.span) || local.pat.span.from_expansion() {
return;
}
- if higher::is_from_for_desugar(local) {
- return;
- }
span_lint_and_then(
cx,
LET_UNIT_VALUE,