use crate::utils::{
- differing_macro_contexts, is_type_diagnostic_item, span_lint_and_then,
- usage::is_potentially_mutated,
+ differing_macro_contexts, is_type_diagnostic_item, span_lint_and_then, usage::is_potentially_mutated,
};
use if_chain::if_chain;
use rustc_hir::intravisit::{walk_expr, walk_fn, FnKind, NestedVisitorMap, Visitor};
},
_ => (),
}
- } else if let ExprKind::Unary(UnOp::UnNot, expr) = &expr.kind {
+ } else if let ExprKind::Unary(UnOp::Not, expr) = &expr.kind {
return collect_unwrap_info(cx, expr, branch, !invert);
} else {
if_chain! {