This commit is contained in:
Yuki Okushi 2020-01-07 01:39:50 +09:00
parent 732825dcff
commit 2f2eaf8b7e
140 changed files with 231 additions and 218 deletions

View file

@ -5,7 +5,7 @@ use rustc_session::declare_tool_lint;
use crate::utils::{higher::if_block, match_type, paths, span_lint_and_then, usage::is_potentially_mutated};
use rustc::hir::intravisit::*;
use rustc::hir::*;
use rustc_hir::*;
use rustc_span::source_map::Span;
declare_clippy_lint! {
@ -93,7 +93,7 @@ fn collect_unwrap_info<'a, 'tcx>(
},
_ => (),
}
} else if let ExprKind::Unary(UnNot, expr) = &expr.kind {
} else if let ExprKind::Unary(UnOp::UnNot, expr) = &expr.kind {
return collect_unwrap_info(cx, expr, !invert);
} else {
if_chain! {