diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-03-29 12:12:01 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-04-06 09:04:15 +0300 |
| commit | 7bebe80bc28ff818c7990061275fa0ad6c8b3686 (patch) | |
| tree | 55cbc78dd15233353b37d8242e5ba6434b20be2e /src/librustc_save_analysis | |
| parent | ef4c7241f82c08848938b8b2dafed01535559ec0 (diff) | |
| download | rust-7bebe80bc28ff818c7990061275fa0ad6c8b3686.tar.gz rust-7bebe80bc28ff818c7990061275fa0ad6c8b3686.zip | |
syntax: dismantle ast_util.
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs index e65bf5be256..a4f9720bbe2 100644 --- a/src/librustc_save_analysis/lib.rs +++ b/src/librustc_save_analysis/lib.rs @@ -39,7 +39,6 @@ use std::fs::{self, File}; use std::path::{Path, PathBuf}; use syntax::ast::{self, NodeId, PatKind}; -use syntax::ast_util; use syntax::codemap::*; use syntax::parse::token::{self, keywords}; use syntax::visit::{self, Visitor}; @@ -670,7 +669,7 @@ impl<'v> Visitor<'v> for PathCollector { ast::BindingMode::ByValue(mt) => mt, }; // collect path for either visit_local or visit_arm - let path = ast_util::ident_to_path(path1.span, path1.node); + let path = ast::Path::from_ident(path1.span, path1.node); self.collected_paths.push((p.id, path, immut, recorder::VarRef)); } _ => {} |
