This commit is contained in:
Yuki Okushi 2020-02-02 06:56:27 +09:00
parent f3e2ccd54e
commit f63a6a5baf
3 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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::*;

View File

@ -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;