diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-02 12:54:43 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-11 03:19:50 +0100 |
| commit | fff5ef68b0d5c314569a71c7fae136196b14a6bc (patch) | |
| tree | aa6c50f7580a513b635762066c658329dfe2e91a | |
| parent | 1af8c10bd42570ccbb112f3741fafbe6cf71ac67 (diff) | |
| download | rust-fff5ef68b0d5c314569a71c7fae136196b14a6bc.tar.gz rust-fff5ef68b0d5c314569a71c7fae136196b14a6bc.zip | |
canonicalize rustc::session import
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | src/librustc_passes/Cargo.toml | 1 | ||||
| -rw-r--r-- | src/librustc_passes/ast_validation.rs | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock index 6116ae03387..2522eb85a7c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3787,6 +3787,7 @@ dependencies = [ "rustc_hir", "rustc_index", "rustc_parse", + "rustc_session", "rustc_span", "rustc_target", "syntax", diff --git a/src/librustc_passes/Cargo.toml b/src/librustc_passes/Cargo.toml index 4adc6dabb9f..897581b32b5 100644 --- a/src/librustc_passes/Cargo.toml +++ b/src/librustc_passes/Cargo.toml @@ -17,6 +17,7 @@ rustc_feature = { path = "../librustc_feature" } rustc_hir = { path = "../librustc_hir" } rustc_index = { path = "../librustc_index" } rustc_parse = { path = "../librustc_parse" } +rustc_session = { path = "../librustc_session" } rustc_target = { path = "../librustc_target" } syntax = { path = "../libsyntax" } rustc_span = { path = "../librustc_span" } diff --git a/src/librustc_passes/ast_validation.rs b/src/librustc_passes/ast_validation.rs index be58a790fa8..9cd7d9a89fd 100644 --- a/src/librustc_passes/ast_validation.rs +++ b/src/librustc_passes/ast_validation.rs @@ -7,10 +7,10 @@ // or type checking or some other kind of complex analysis. use rustc::lint; -use rustc::session::Session; use rustc_data_structures::fx::FxHashMap; use rustc_errors::{struct_span_err, Applicability, FatalError}; use rustc_parse::validate_attr; +use rustc_session::Session; use rustc_span::source_map::Spanned; use rustc_span::symbol::{kw, sym}; use rustc_span::Span; |
