Skip to content

Commit e979eb4

Browse files
committed
Auto merge of #4689 - Manishearth:rustup, r=Yaahc
Rustup to rustc 1.40.0-nightly (fa0f7d0 2019-10-17) changelog: none
2 parents 4a388e1 + fcad3cb commit e979eb4

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

clippy_lints/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ 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)]
4042
extern crate syntax_pos;
4143

4244
use toml;

clippy_lints/src/misc.rs

Lines changed: 1 addition & 1 deletion
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::ext::hygiene::MacroKind;
599+
use syntax_expand::hygiene::MacroKind;
600600
if expr.span.from_expansion() {
601601
let data = expr.span.ctxt().outer_expn_data();
602602

clippy_lints/src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ use rustc_target::spec::abi::Abi;
1717
use rustc_typeck::hir_ty_to_ty;
1818
use syntax::ast::{FloatTy, IntTy, LitIntType, LitKind, UintTy};
1919
use syntax::errors::DiagnosticBuilder;
20-
use syntax::ext::base::MacroKind;
21-
use syntax::ext::hygiene::ExpnKind;
2220
use syntax::source_map::Span;
2321
use syntax::symbol::{sym, Symbol};
22+
use syntax_expand::base::MacroKind;
23+
use syntax_expand::hygiene::ExpnKind;
2424

2525
use crate::consts::{constant, Constant};
2626
use crate::utils::paths;

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ use rustc_errors::Applicability;
4343
use smallvec::SmallVec;
4444
use syntax::ast::{self, LitKind};
4545
use syntax::attr;
46-
use syntax::ext::hygiene::ExpnKind;
4746
use syntax::source_map::{Span, DUMMY_SP};
4847
use syntax::symbol::{kw, Symbol};
48+
use syntax_expand::hygiene::ExpnKind;
4949

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

0 commit comments

Comments
 (0)