canonicalize rustc::session import

This commit is contained in:
Mazdak Farrokhzad 2020-01-02 12:54:43 +01:00
parent 1af8c10bd4
commit fff5ef68b0
3 changed files with 3 additions and 1 deletions

View File

@ -3787,6 +3787,7 @@ dependencies = [
"rustc_hir", "rustc_hir",
"rustc_index", "rustc_index",
"rustc_parse", "rustc_parse",
"rustc_session",
"rustc_span", "rustc_span",
"rustc_target", "rustc_target",
"syntax", "syntax",

View File

@ -17,6 +17,7 @@ rustc_feature = { path = "../librustc_feature" }
rustc_hir = { path = "../librustc_hir" } rustc_hir = { path = "../librustc_hir" }
rustc_index = { path = "../librustc_index" } rustc_index = { path = "../librustc_index" }
rustc_parse = { path = "../librustc_parse" } rustc_parse = { path = "../librustc_parse" }
rustc_session = { path = "../librustc_session" }
rustc_target = { path = "../librustc_target" } rustc_target = { path = "../librustc_target" }
syntax = { path = "../libsyntax" } syntax = { path = "../libsyntax" }
rustc_span = { path = "../librustc_span" } rustc_span = { path = "../librustc_span" }

View File

@ -7,10 +7,10 @@
// or type checking or some other kind of complex analysis. // or type checking or some other kind of complex analysis.
use rustc::lint; use rustc::lint;
use rustc::session::Session;
use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::fx::FxHashMap;
use rustc_errors::{struct_span_err, Applicability, FatalError}; use rustc_errors::{struct_span_err, Applicability, FatalError};
use rustc_parse::validate_attr; use rustc_parse::validate_attr;
use rustc_session::Session;
use rustc_span::source_map::Spanned; use rustc_span::source_map::Spanned;
use rustc_span::symbol::{kw, sym}; use rustc_span::symbol::{kw, sym};
use rustc_span::Span; use rustc_span::Span;