Skip to content

Commit e93a8f9

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

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ matrix:
6363
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
6464
- env: INTEGRATION=Geal/nom
6565
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
66-
- env: INTEGRATION=rust-lang/rustfmt
67-
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
66+
# FIXME blocked on https://github.com/rust-lang/rust-clippy/issues/4742
67+
#- env: INTEGRATION=rust-lang/rustfmt
68+
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
6869
- env: INTEGRATION=hyperium/hyper
6970
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
7071
- env: INTEGRATION=bluss/rust-itertools

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)