From 7e064da5a946883091a1522174e322d8dc2368cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 28 Oct 2019 09:02:48 +0100 Subject: [PATCH] rustup /~https://github.com/rust-lang/rust/pull/65792/ --- clippy_lints/src/misc.rs | 2 +- clippy_lints/src/types.rs | 3 +-- clippy_lints/src/utils/mod.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/clippy_lints/src/misc.rs b/clippy_lints/src/misc.rs index 84afda30768c..e7197b671c9e 100644 --- a/clippy_lints/src/misc.rs +++ b/clippy_lints/src/misc.rs @@ -596,7 +596,7 @@ fn is_used(cx: &LateContext<'_, '_>, expr: &Expr) -> bool { /// Tests whether an expression is in a macro expansion (e.g., something /// generated by `#[derive(...)]` or the like). fn in_attributes_expansion(expr: &Expr) -> bool { - use syntax_expand::hygiene::MacroKind; + use syntax_pos::hygiene::MacroKind; if expr.span.from_expansion() { let data = expr.span.ctxt().outer_expn_data(); diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index ab29060cc364..6c1e0b808d9f 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -19,8 +19,7 @@ use syntax::ast::{FloatTy, IntTy, LitIntType, LitKind, UintTy}; use syntax::errors::DiagnosticBuilder; use syntax::source_map::Span; use syntax::symbol::{sym, Symbol}; -use syntax_expand::base::MacroKind; -use syntax_expand::hygiene::ExpnKind; +use syntax_pos::hygiene::{ExpnKind, MacroKind}; use crate::consts::{constant, Constant}; use crate::utils::paths; diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index 417f7677bbd3..5729c8c2967a 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -45,7 +45,7 @@ use syntax::ast::{self, LitKind}; use syntax::attr; use syntax::source_map::{Span, DUMMY_SP}; use syntax::symbol::{kw, Symbol}; -use syntax_expand::hygiene::ExpnKind; +use syntax_pos::hygiene::ExpnKind; use crate::consts::{constant, Constant}; use crate::reexport::*;