Skip to content

Commit ece5f86

Browse files
committed
1 parent 66df92a commit ece5f86

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

clippy_lints/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ extern crate rustc_typeck;
3737
#[allow(unused_extern_crates)]
3838
extern crate syntax;
3939
#[allow(unused_extern_crates)]
40-
extern crate syntax_expand;
41-
#[allow(unused_extern_crates)]
4240
extern crate syntax_pos;
4341

4442
use rustc::lint::{self, LintId};

clippy_lints/src/misc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ fn is_used(cx: &LateContext<'_, '_>, expr: &Expr) -> bool {
596596
/// Tests whether an expression is in a macro expansion (e.g., something
597597
/// generated by `#[derive(...)]` or the like).
598598
fn in_attributes_expansion(expr: &Expr) -> bool {
599-
use syntax_expand::hygiene::MacroKind;
599+
use syntax_pos::hygiene::MacroKind;
600600
if expr.span.from_expansion() {
601601
let data = expr.span.ctxt().outer_expn_data();
602602

clippy_lints/src/types.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ use syntax::ast::{FloatTy, IntTy, LitIntType, LitKind, UintTy};
1919
use syntax::errors::DiagnosticBuilder;
2020
use syntax::source_map::Span;
2121
use syntax::symbol::{sym, Symbol};
22-
use syntax_expand::base::MacroKind;
23-
use syntax_expand::hygiene::ExpnKind;
22+
use syntax_pos::hygiene::{ExpnKind, MacroKind};
2423

2524
use crate::consts::{constant, Constant};
2625
use crate::utils::paths;

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use syntax::ast::{self, LitKind};
4545
use syntax::attr;
4646
use syntax::source_map::{Span, DUMMY_SP};
4747
use syntax::symbol::{kw, Symbol};
48-
use syntax_expand::hygiene::ExpnKind;
48+
use syntax_pos::hygiene::ExpnKind;
4949

5050
use crate::consts::{constant, Constant};
5151
use crate::reexport::*;

0 commit comments

Comments
 (0)