From ba537da80fd90dbbf283b564f6b97a4519ddecff Mon Sep 17 00:00:00 2001 From: mgr-inz-rafal Date: Tue, 10 Dec 2019 19:25:10 +0100 Subject: [PATCH] Adapt to new rustc --- clippy_lints/src/modulo_arithmetic.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/modulo_arithmetic.rs b/clippy_lints/src/modulo_arithmetic.rs index ec0ec25a6ccd..e2c2cce39714 100644 --- a/clippy_lints/src/modulo_arithmetic.rs +++ b/clippy_lints/src/modulo_arithmetic.rs @@ -1,10 +1,11 @@ use crate::consts::{constant, Constant}; use crate::utils::{sext, span_help_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::{self}; -use rustc::{declare_lint_pass, declare_tool_lint}; +use rustc_session::declare_tool_lint; declare_clippy_lint! { /// **What it does:** Checks for modulo arithemtic.