about summary refs log tree commit diff
path: root/src/librustc_plugin_impl
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-11 12:49:08 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-03-16 02:52:06 +0100
commit4392a8b73c3f51315c593344f4e7386ebc6e78e5 (patch)
tree36c08e21788437996079116c69b04937e9724c38 /src/librustc_plugin_impl
parent73a625b5fb820964fff4ff85ac0a09b398dbe994 (diff)
downloadrust-4392a8b73c3f51315c593344f4e7386ebc6e78e5.tar.gz
rust-4392a8b73c3f51315c593344f4e7386ebc6e78e5.zip
use direct imports for `rustc::{lint, session}`.
Diffstat (limited to 'src/librustc_plugin_impl')
-rw-r--r--src/librustc_plugin_impl/Cargo.toml1
-rw-r--r--src/librustc_plugin_impl/load.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_plugin_impl/Cargo.toml b/src/librustc_plugin_impl/Cargo.toml
index 89313072590..372d6a534c8 100644
--- a/src/librustc_plugin_impl/Cargo.toml
+++ b/src/librustc_plugin_impl/Cargo.toml
@@ -17,4 +17,5 @@ rustc_hir = { path = "../librustc_hir" }
 rustc_lint = { path = "../librustc_lint" }
 rustc_metadata = { path = "../librustc_metadata" }
 rustc_ast = { path = "../librustc_ast" }
+rustc_session = { path = "../librustc_session" }
 rustc_span = { path = "../librustc_span" }
diff --git a/src/librustc_plugin_impl/load.rs b/src/librustc_plugin_impl/load.rs
index 9bd9bcb25ba..0810cf56d17 100644
--- a/src/librustc_plugin_impl/load.rs
+++ b/src/librustc_plugin_impl/load.rs
@@ -2,10 +2,10 @@
 
 use crate::Registry;
 use rustc::middle::cstore::MetadataLoader;
-use rustc::session::Session;
 use rustc_ast::ast::{Crate, Ident};
 use rustc_errors::struct_span_err;
 use rustc_metadata::locator;
+use rustc_session::Session;
 use rustc_span::symbol::sym;
 use rustc_span::Span;