15
15
pub use self :: DefLike :: * ;
16
16
use self :: Family :: * ;
17
17
18
- use front:: map as ast_map ;
18
+ use front:: map as hir_map ;
19
19
use rustc_front:: hir;
20
20
21
21
use back:: svh:: Svh ;
@@ -241,15 +241,15 @@ fn item_trait_ref<'tcx>(doc: rbml::Doc, tcx: &ty::ctxt<'tcx>, cdata: Cmd)
241
241
doc_trait_ref ( tp, tcx, cdata)
242
242
}
243
243
244
- fn item_path ( item_doc : rbml:: Doc ) -> Vec < ast_map :: PathElem > {
244
+ fn item_path ( item_doc : rbml:: Doc ) -> Vec < hir_map :: PathElem > {
245
245
let path_doc = reader:: get_doc ( item_doc, tag_path) ;
246
246
reader:: docs ( path_doc) . filter_map ( |( tag, elt_doc) | {
247
247
if tag == tag_path_elem_mod {
248
248
let s = elt_doc. as_str_slice ( ) ;
249
- Some ( ast_map :: PathMod ( token:: intern ( s) ) )
249
+ Some ( hir_map :: PathMod ( token:: intern ( s) ) )
250
250
} else if tag == tag_path_elem_name {
251
251
let s = elt_doc. as_str_slice ( ) ;
252
- Some ( ast_map :: PathName ( token:: intern ( s) ) )
252
+ Some ( hir_map :: PathName ( token:: intern ( s) ) )
253
253
} else {
254
254
// ignore tag_path_len element
255
255
None
@@ -745,7 +745,7 @@ pub fn each_top_level_item_of_crate<F, G>(intr: Rc<IdentInterner>,
745
745
callback)
746
746
}
747
747
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 > {
749
749
item_path ( cdata. lookup_item ( id) )
750
750
}
751
751
@@ -756,9 +756,9 @@ pub fn get_item_name(intr: &IdentInterner, cdata: Cmd, id: ast::NodeId) -> ast::
756
756
pub type DecodeInlinedItem < ' a > =
757
757
Box < for <' tcx > FnMut ( Cmd ,
758
758
& ty:: ctxt < ' tcx > ,
759
- Vec < ast_map :: PathElem > ,
759
+ Vec < hir_map :: PathElem > ,
760
760
rbml:: Doc )
761
- -> Result < & ' tcx InlinedItem , Vec < ast_map :: PathElem > > + ' a > ;
761
+ -> Result < & ' tcx InlinedItem , Vec < hir_map :: PathElem > > + ' a > ;
762
762
763
763
pub fn maybe_get_item_ast < ' tcx > ( cdata : Cmd , tcx : & ty:: ctxt < ' tcx > , id : ast:: NodeId ,
764
764
mut decode_inlined_item : DecodeInlinedItem )
0 commit comments