all: organize imports

* remove unused imports
* separate external and internal imports
* consistent import of rustc::lint
* move #[allow(unused_imports)] to local impl
This commit is contained in:
Georg Brandl
2015-08-16 08:54:43 +02:00
parent 997f345046
commit 47b605304d
20 changed files with 41 additions and 68 deletions

View File

@@ -1,11 +1,10 @@
use rustc::lint::{Context, Lint, Level};
use syntax::ast::{DefId, Expr, Name, NodeId, Path};
use rustc::lint::*;
use syntax::ast::*;
use syntax::codemap::{ExpnInfo, Span};
use syntax::ptr::P;
use rustc::ast_map::Node::NodeExpr;
use rustc::middle::ty;
use std::borrow::{Cow, IntoCow};
use std::convert::From;
use std::borrow::Cow;
/// returns true if the macro that expanded the crate was outside of
/// the current crate or was a compiler plugin