From f63a6a5baf6666dbbf2e05d1518e7d8a7d511a9c Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 2 Feb 2020 06:56:27 +0900 Subject: [PATCH] Rustup to rust-lang/rust#68133 --- clippy_lints/src/lib.rs | 4 ++++ clippy_lints/src/utils/mod.rs | 2 +- clippy_lints/src/utils/sugg.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 04239b797e3..fcf01ae48a1 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -19,6 +19,10 @@ extern crate fmt_macros; #[allow(unused_extern_crates)] extern crate rustc; #[allow(unused_extern_crates)] +extern crate rustc_ast_pretty; +#[allow(unused_extern_crates)] +extern crate rustc_attr; +#[allow(unused_extern_crates)] extern crate rustc_data_structures; #[allow(unused_extern_crates)] extern crate rustc_driver; diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index d1849a7c314..5fd2f0c258c 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -34,6 +34,7 @@ use rustc::ty::{ subst::GenericArg, Binder, Ty, TyCtxt, }; +use rustc_attr as attr; use rustc_errors::Applicability; use rustc_hir as hir; use rustc_hir::def::{DefKind, Res}; @@ -47,7 +48,6 @@ use rustc_span::symbol::{self, kw, Symbol}; use rustc_span::{BytePos, Pos, Span, DUMMY_SP}; use smallvec::SmallVec; use syntax::ast::{self, Attribute, LitKind}; -use syntax::attr; use crate::consts::{constant, Constant}; use crate::reexport::*; diff --git a/clippy_lints/src/utils/sugg.rs b/clippy_lints/src/utils/sugg.rs index d3be8c90658..3e694f40d19 100644 --- a/clippy_lints/src/utils/sugg.rs +++ b/clippy_lints/src/utils/sugg.rs @@ -3,6 +3,7 @@ use crate::utils::{higher, snippet, snippet_opt, snippet_with_macro_callsite}; use matches::matches; +use rustc_ast_pretty::pprust::token_kind_to_string; use rustc_errors::Applicability; use rustc_hir as hir; use rustc_lint::{EarlyContext, LateContext, LintContext}; @@ -12,7 +13,6 @@ use std::borrow::Cow; use std::convert::TryInto; use std::fmt::Display; use syntax::ast; -use syntax::print::pprust::token_kind_to_string; use syntax::token; use syntax::util::parser::AssocOp;