@@ -288,7 +288,7 @@ fn enum_variant_ids(item: ebml::Doc, cdata: cmd) -> ~[ast::def_id] {
288
288
return ids;
289
289
}
290
290
291
- fn item_path ( intr : @ ident_interner , item_doc : ebml:: Doc ) -> ast_map:: path {
291
+ fn item_path ( item_doc : ebml:: Doc ) -> ast_map:: path {
292
292
let path_doc = reader:: get_doc ( item_doc, tag_path) ;
293
293
294
294
let len_doc = reader:: get_doc ( path_doc, tag_path_len) ;
@@ -491,7 +491,7 @@ pub fn _each_path(intr: @ident_interner,
491
491
for reader:: tagged_docs( items_data, tag_items_data_item) |item_doc| {
492
492
if !broken {
493
493
let path = ast_map:: path_to_str_with_sep (
494
- item_path ( intr , item_doc) , ~ ":: ", intr) ;
494
+ item_path ( item_doc) , "::" , intr) ;
495
495
let path_is_empty = path. is_empty ( ) ;
496
496
if !path_is_empty {
497
497
// Extract the def ID.
@@ -575,9 +575,9 @@ pub fn each_path(intr: @ident_interner,
575
575
_each_path ( intr, cdata, get_crate_data, f)
576
576
}
577
577
578
- pub fn get_item_path ( intr : @ ident_interner , cdata : cmd , id : ast:: node_id )
578
+ pub fn get_item_path ( cdata : cmd , id : ast:: node_id )
579
579
-> ast_map:: path {
580
- item_path ( intr , lookup_item ( id, cdata. data ) )
580
+ item_path ( lookup_item ( id, cdata. data ) )
581
581
}
582
582
583
583
pub type decode_inlined_item < ' self > = & ' self fn (
@@ -586,14 +586,14 @@ pub type decode_inlined_item<'self> = &'self fn(
586
586
path : ast_map:: path ,
587
587
par_doc : ebml:: Doc ) -> Option < ast:: inlined_item > ;
588
588
589
- pub fn maybe_get_item_ast ( intr : @ ident_interner , cdata : cmd , tcx : ty:: ctxt ,
589
+ pub fn maybe_get_item_ast ( cdata : cmd , tcx : ty:: ctxt ,
590
590
id : ast:: node_id ,
591
591
decode_inlined_item : decode_inlined_item )
592
592
-> csearch:: found_ast {
593
593
debug ! ( "Looking up item: %d" , id) ;
594
594
let item_doc = lookup_item ( id, cdata. data ) ;
595
595
let path = {
596
- let item_path = item_path ( intr , item_doc) ;
596
+ let item_path = item_path ( item_doc) ;
597
597
vec:: to_owned ( item_path. init ( ) )
598
598
} ;
599
599
match decode_inlined_item ( cdata, tcx, copy path, item_doc) {
@@ -835,8 +835,7 @@ pub fn get_supertraits(cdata: cmd, id: ast::node_id, tcx: ty::ctxt)
835
835
return results;
836
836
}
837
837
838
- pub fn get_type_name_if_impl ( intr : @ident_interner ,
839
- cdata : cmd ,
838
+ pub fn get_type_name_if_impl ( cdata : cmd ,
840
839
node_id : ast:: node_id ) -> Option < ast:: ident > {
841
840
let item = lookup_item ( node_id, cdata. data ) ;
842
841
if item_family ( item) != Impl {
@@ -1086,7 +1085,7 @@ pub struct crate_dep {
1086
1085
hash : @~str
1087
1086
}
1088
1087
1089
- pub fn get_crate_deps ( intr : @ ident_interner , data : @~[ u8 ] ) -> ~[ crate_dep ] {
1088
+ pub fn get_crate_deps ( data : @~[ u8 ] ) -> ~[ crate_dep ] {
1090
1089
let mut deps: ~[ crate_dep ] = ~[ ] ;
1091
1090
let cratedoc = reader:: Doc ( data) ;
1092
1091
let depsdoc = reader:: get_doc ( cratedoc, tag_crate_deps) ;
@@ -1104,10 +1103,10 @@ pub fn get_crate_deps(intr: @ident_interner, data: @~[u8]) -> ~[crate_dep] {
1104
1103
return deps;
1105
1104
}
1106
1105
1107
- fn list_crate_deps ( intr : @ ident_interner , data : @~[ u8 ] , out : @io:: Writer ) {
1106
+ fn list_crate_deps ( data : @~[ u8 ] , out : @io:: Writer ) {
1108
1107
out. write_str ( "=External Dependencies=\n " ) ;
1109
1108
1110
- for get_crate_deps( intr , data) . each |dep| {
1109
+ for get_crate_deps( data) . each |dep| {
1111
1110
out. write_str (
1112
1111
fmt ! ( "%d %s-%s-%s\n " ,
1113
1112
dep. cnum, * token:: ident_to_str( & dep. name) , * dep. hash, * dep. vers) ) ;
@@ -1151,7 +1150,7 @@ pub fn list_crate_metadata(intr: @ident_interner, bytes: @~[u8],
1151
1150
let hash = get_crate_hash ( bytes) ;
1152
1151
let md = reader:: Doc ( bytes) ;
1153
1152
list_crate_attributes ( intr, md, * hash, out) ;
1154
- list_crate_deps ( intr , bytes, out) ;
1153
+ list_crate_deps ( bytes, out) ;
1155
1154
}
1156
1155
1157
1156
// Translates a def_id from an external crate to a def_id for the current
0 commit comments