From 7242fa5e415bddf092fc762f1e79ad379e960d56 Mon Sep 17 00:00:00 2001 From: Devin R Date: Mon, 30 Mar 2020 14:39:27 -0400 Subject: [PATCH] fix map import to rustc_middle --- README.md | 2 +- clippy_lints/src/if_let_mutex.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6df641a979f..9d5939db8d5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. -[There are 363 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) +[There are 362 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you: diff --git a/clippy_lints/src/if_let_mutex.rs b/clippy_lints/src/if_let_mutex.rs index 4f0681c4ade..321201f9909 100644 --- a/clippy_lints/src/if_let_mutex.rs +++ b/clippy_lints/src/if_let_mutex.rs @@ -1,5 +1,5 @@ use crate::utils::{match_type, paths, span_lint_and_help}; -use rustc::hir::map::Map; +use rustc_middle::hir::map::Map; use rustc_hir::intravisit::{self as visit, NestedVisitorMap, Visitor}; use rustc_hir::{Arm, Expr, ExprKind, MatchSource, StmtKind}; use rustc_lint::{LateContext, LateLintPass};