From 3eaa180cf5c2eaaf2b651d9746fd5e7b1da2506c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 28 Oct 2019 20:40:45 +0100 Subject: [PATCH] submodules: update clippy from 66df92ae to c8e3cfbd Changes: ```` travis: temporarily disable rustfmt ci check until #4742 is resolved rustup https://github.com/rust-lang/rust/pull/65792/ Fix ICE #4579 Add regression test for ICE #4579 Run update_lints for Unicode lint Re-add false positive check Add raw string regression test for useless_format lint Re-factor useless_format lint Update Unicode lint tests [Backported] Rustup to https://github.com/rust-lang/rust/pull/59545 ```` Fixes ##65888 --- .travis.yml | 5 +++-- clippy_lints/src/lib.rs | 2 -- clippy_lints/src/misc.rs | 2 +- clippy_lints/src/types.rs | 3 +-- clippy_lints/src/utils/mod.rs | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 64036ec3aa3a..862a6a79cc09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,8 +63,9 @@ matrix: if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try) - env: INTEGRATION=Geal/nom if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try) - - env: INTEGRATION=rust-lang/rustfmt - if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try) + # FIXME blocked on https://github.com/rust-lang/rust-clippy/issues/4742 + #- env: INTEGRATION=rust-lang/rustfmt + # if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try) - env: INTEGRATION=hyperium/hyper if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try) - env: INTEGRATION=bluss/rust-itertools diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 717451903243..817575092cc5 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -37,8 +37,6 @@ extern crate rustc_typeck; #[allow(unused_extern_crates)] extern crate syntax; #[allow(unused_extern_crates)] -extern crate syntax_expand; -#[allow(unused_extern_crates)] extern crate syntax_pos; use rustc::lint::{self, LintId}; 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::*;