Skip to content

Commit ea85b4c

Browse files
committed
Auto merge of #5123 - JohnTitor:rustup-0202, r=matthiaskrgr
Rustup to rust-lang/rust#68133 changelog: none
2 parents f3e2ccd + f63a6a5 commit ea85b4c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

clippy_lints/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ extern crate fmt_macros;
1919
#[allow(unused_extern_crates)]
2020
extern crate rustc;
2121
#[allow(unused_extern_crates)]
22+
extern crate rustc_ast_pretty;
23+
#[allow(unused_extern_crates)]
24+
extern crate rustc_attr;
25+
#[allow(unused_extern_crates)]
2226
extern crate rustc_data_structures;
2327
#[allow(unused_extern_crates)]
2428
extern crate rustc_driver;

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use rustc::ty::{
3434
subst::GenericArg,
3535
Binder, Ty, TyCtxt,
3636
};
37+
use rustc_attr as attr;
3738
use rustc_errors::Applicability;
3839
use rustc_hir as hir;
3940
use rustc_hir::def::{DefKind, Res};
@@ -47,7 +48,6 @@ use rustc_span::symbol::{self, kw, Symbol};
4748
use rustc_span::{BytePos, Pos, Span, DUMMY_SP};
4849
use smallvec::SmallVec;
4950
use syntax::ast::{self, Attribute, LitKind};
50-
use syntax::attr;
5151

5252
use crate::consts::{constant, Constant};
5353
use crate::reexport::*;

clippy_lints/src/utils/sugg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
use crate::utils::{higher, snippet, snippet_opt, snippet_with_macro_callsite};
55
use matches::matches;
6+
use rustc_ast_pretty::pprust::token_kind_to_string;
67
use rustc_errors::Applicability;
78
use rustc_hir as hir;
89
use rustc_lint::{EarlyContext, LateContext, LintContext};
@@ -12,7 +13,6 @@ use std::borrow::Cow;
1213
use std::convert::TryInto;
1314
use std::fmt::Display;
1415
use syntax::ast;
15-
use syntax::print::pprust::token_kind_to_string;
1616
use syntax::token;
1717
use syntax::util::parser::AssocOp;
1818

0 commit comments

Comments
 (0)