Skip to content

Commit 2b4e435

Browse files
committed
Auto merge of #4747 - matthiaskrgr:rustup_19, r=flip1995
rustup rust-lang/rust#65792 changelog: none
2 parents 66df92a + 7e064da commit 2b4e435

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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)