diff options
| author | bors <bors@rust-lang.org> | 2020-02-01 22:40:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-01 22:40:18 +0000 |
| commit | ea85b4c7fb9826f72bd4ab743a703a34c75a40f0 (patch) | |
| tree | f1704c9879148008d912f0bd9676c8d33a27f043 | |
| parent | f3e2ccd54e785cc7120f30ad41cd8b28bb2bbcd0 (diff) | |
| parent | f63a6a5baf6666dbbf2e05d1518e7d8a7d511a9c (diff) | |
| download | rust-ea85b4c7fb9826f72bd4ab743a703a34c75a40f0.tar.gz rust-ea85b4c7fb9826f72bd4ab743a703a34c75a40f0.zip | |
Auto merge of #5123 - JohnTitor:rustup-0202, r=matthiaskrgr
Rustup to rust-lang/rust#68133 changelog: none
| -rw-r--r-- | clippy_lints/src/lib.rs | 4 | ||||
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 2 | ||||
| -rw-r--r-- | 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; |
