This commit is contained in:
Matthias Krüger
2019-12-04 00:16:03 +01:00
committed by flip1995
parent c66cca44c8
commit 98e433d70d
154 changed files with 308 additions and 151 deletions

View File

@@ -1,9 +1,10 @@
use crate::utils::{is_copy, match_def_path, paths, qpath_res, span_note_and_lint};
use if_chain::if_chain;
use rustc::declare_lint_pass;
use rustc::hir::*;
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
use rustc::ty;
use rustc::{declare_lint_pass, declare_tool_lint};
use rustc_session::declare_tool_lint;
declare_clippy_lint! {
/// **What it does:** Checks for calls to `std::mem::drop` with a reference