Skip to content

Commit a6fee06

Browse files
committed
rename ast_map to hir_map
1 parent 34a25db commit a6fee06

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/librustc/metadata/decoder.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
pub use self::DefLike::*;
1616
use self::Family::*;
1717

18-
use front::map as ast_map;
18+
use front::map as hir_map;
1919
use rustc_front::hir;
2020

2121
use back::svh::Svh;
@@ -241,15 +241,15 @@ fn item_trait_ref<'tcx>(doc: rbml::Doc, tcx: &ty::ctxt<'tcx>, cdata: Cmd)
241241
doc_trait_ref(tp, tcx, cdata)
242242
}
243243

244-
fn item_path(item_doc: rbml::Doc) -> Vec<ast_map::PathElem> {
244+
fn item_path(item_doc: rbml::Doc) -> Vec<hir_map::PathElem> {
245245
let path_doc = reader::get_doc(item_doc, tag_path);
246246
reader::docs(path_doc).filter_map(|(tag, elt_doc)| {
247247
if tag == tag_path_elem_mod {
248248
let s = elt_doc.as_str_slice();
249-
Some(ast_map::PathMod(token::intern(s)))
249+
Some(hir_map::PathMod(token::intern(s)))
250250
} else if tag == tag_path_elem_name {
251251
let s = elt_doc.as_str_slice();
252-
Some(ast_map::PathName(token::intern(s)))
252+
Some(hir_map::PathName(token::intern(s)))
253253
} else {
254254
// ignore tag_path_len element
255255
None
@@ -745,7 +745,7 @@ pub fn each_top_level_item_of_crate<F, G>(intr: Rc<IdentInterner>,
745745
callback)
746746
}
747747

748-
pub fn get_item_path(cdata: Cmd, id: ast::NodeId) -> Vec<ast_map::PathElem> {
748+
pub fn get_item_path(cdata: Cmd, id: ast::NodeId) -> Vec<hir_map::PathElem> {
749749
item_path(cdata.lookup_item(id))
750750
}
751751

@@ -756,9 +756,9 @@ pub fn get_item_name(intr: &IdentInterner, cdata: Cmd, id: ast::NodeId) -> ast::
756756
pub type DecodeInlinedItem<'a> =
757757
Box<for<'tcx> FnMut(Cmd,
758758
&ty::ctxt<'tcx>,
759-
Vec<ast_map::PathElem>,
759+
Vec<hir_map::PathElem>,
760760
rbml::Doc)
761-
-> Result<&'tcx InlinedItem, Vec<ast_map::PathElem>> + 'a>;
761+
-> Result<&'tcx InlinedItem, Vec<hir_map::PathElem>> + 'a>;
762762

763763
pub fn maybe_get_item_ast<'tcx>(cdata: Cmd, tcx: &ty::ctxt<'tcx>, id: ast::NodeId,
764764
mut decode_inlined_item: DecodeInlinedItem)

0 commit comments

Comments
 (0)