Rustup to rust-lang/rust#67886
This commit is contained in:
parent
732825dcff
commit
2f2eaf8b7e
140 changed files with 231 additions and 218 deletions
|
|
@ -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! {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue