@@ -104,13 +104,13 @@ pub fn reachable(ecx: @encode_ctxt, id: node_id) -> bool {
104
104
}
105
105
106
106
fn encode_name ( ecx : @encode_ctxt , ebml_w : writer:: Encoder , name : ident ) {
107
- ebml_w. wr_tagged_str ( tag_paths_data_name, ecx. tcx . sess . str_of ( name) ) ;
107
+ ebml_w. wr_tagged_str ( tag_paths_data_name, * ecx. tcx . sess . str_of ( name) ) ;
108
108
}
109
109
110
110
fn encode_impl_type_basename ( ecx : @encode_ctxt , ebml_w : writer:: Encoder ,
111
111
name : ident ) {
112
112
ebml_w. wr_tagged_str ( tag_item_impl_type_basename,
113
- ecx. tcx . sess . str_of ( name) ) ;
113
+ * ecx. tcx . sess . str_of ( name) ) ;
114
114
}
115
115
116
116
pub fn encode_def_id ( ebml_w : writer:: Encoder , id : def_id ) {
@@ -305,7 +305,7 @@ fn encode_path(ecx: @encode_ctxt, ebml_w: writer::Encoder,
305
305
ast_map:: path_name( name) => ( tag_path_elt_name, name)
306
306
} ;
307
307
308
- ebml_w. wr_tagged_str ( tag, ecx. tcx . sess . str_of ( name) ) ;
308
+ ebml_w. wr_tagged_str ( tag, * ecx. tcx . sess . str_of ( name) ) ;
309
309
}
310
310
311
311
do ebml_w. wr_tag ( tag_path) {
@@ -333,7 +333,7 @@ fn encode_info_for_mod(ecx: @encode_ctxt, ebml_w: writer::Encoder,
333
333
let ( ident, did) = ( item. ident , item. id ) ;
334
334
debug ! ( "(encoding info for module) ... encoding impl %s \
335
335
(%?/%?)",
336
- ecx. tcx. sess. str_of( ident) ,
336
+ * ecx. tcx. sess. str_of( ident) ,
337
337
did,
338
338
ast_map:: node_id_to_str( ecx. tcx. items, did, ecx. tcx
339
339
. sess. parse_sess. interner) ) ;
@@ -353,15 +353,15 @@ fn encode_info_for_mod(ecx: @encode_ctxt, ebml_w: writer::Encoder,
353
353
match ecx. reexports2 . find ( & id) {
354
354
Some ( ref exports) => {
355
355
debug ! ( "(encoding info for module) found reexports for %d" , id) ;
356
- for ( * exports) . each |exp| {
356
+ for exports. each |exp| {
357
357
debug ! ( "(encoding info for module) reexport '%s' for %d" ,
358
- exp. name, id) ;
358
+ * exp. name, id) ;
359
359
ebml_w. start_tag ( tag_items_data_item_reexport) ;
360
360
ebml_w. start_tag ( tag_items_data_item_reexport_def_id) ;
361
361
ebml_w. wr_str ( def_to_str ( exp. def_id ) ) ;
362
362
ebml_w. end_tag ( ) ;
363
363
ebml_w. start_tag ( tag_items_data_item_reexport_name) ;
364
- ebml_w. wr_str ( exp. name ) ;
364
+ ebml_w. wr_str ( * exp. name ) ;
365
365
ebml_w. end_tag ( ) ;
366
366
ebml_w. end_tag ( ) ;
367
367
}
@@ -447,7 +447,7 @@ fn encode_info_for_struct(ecx: @encode_ctxt, ebml_w: writer::Encoder,
447
447
global_index. push ( { val: id, pos: ebml_w. writer . tell ( ) } ) ;
448
448
ebml_w. start_tag ( tag_items_data_item) ;
449
449
debug ! ( "encode_info_for_struct: doing %s %d" ,
450
- tcx. sess. str_of( nm) , id) ;
450
+ * tcx. sess. str_of( nm) , id) ;
451
451
encode_visibility ( ebml_w, vis) ;
452
452
encode_name ( ecx, ebml_w, nm) ;
453
453
encode_path ( ecx, ebml_w, path, ast_map:: path_name ( nm) ) ;
@@ -470,7 +470,7 @@ fn encode_info_for_ctor(ecx: @encode_ctxt, ebml_w: writer::Encoder,
470
470
encode_type_param_bounds ( ebml_w, ecx, tps) ;
471
471
let its_ty = node_id_to_type ( ecx. tcx , id) ;
472
472
debug ! ( "fn name = %s ty = %s its node id = %d" ,
473
- ecx. tcx. sess. str_of( ident) ,
473
+ * ecx. tcx. sess. str_of( ident) ,
474
474
ty_to_str( ecx. tcx, its_ty) , id) ;
475
475
encode_type ( ecx, ebml_w, its_ty) ;
476
476
encode_path ( ecx, ebml_w, path, ast_map:: path_name ( ident) ) ;
@@ -515,7 +515,7 @@ fn encode_info_for_method(ecx: @encode_ctxt,
515
515
m : @method ,
516
516
+all_tps : ~[ ty_param ] ) {
517
517
debug ! ( "encode_info_for_method: %d %s %u" , m. id,
518
- ecx. tcx. sess. str_of( m. ident) , all_tps. len( ) ) ;
518
+ * ecx. tcx. sess. str_of( m. ident) , all_tps. len( ) ) ;
519
519
ebml_w. start_tag ( tag_items_data_item) ;
520
520
encode_def_id ( ebml_w, local_def ( m. id ) ) ;
521
521
match m. self_ty . node {
@@ -678,7 +678,7 @@ fn encode_info_for_item(ecx: @encode_ctxt, ebml_w: writer::Encoder,
678
678
ebml_w,
679
679
dtor.node.id,
680
680
ecx.tcx.sess.ident_of(
681
- ecx.tcx.sess.str_of(item.ident) +
681
+ * ecx.tcx.sess.str_of(item.ident) +
682
682
~" _dtor"),
683
683
path,
684
684
if tps.len() > 0u {
@@ -1186,7 +1186,7 @@ fn encode_crate_dep(ecx: @encode_ctxt, ebml_w: writer::Encoder,
1186
1186
dep: decoder::crate_dep) {
1187
1187
ebml_w.start_tag(tag_crate_dep);
1188
1188
ebml_w.start_tag(tag_crate_dep_name);
1189
- ebml_w.writer.write(str::to_bytes(ecx.tcx.sess.str_of(dep.name)));
1189
+ ebml_w.writer.write(str::to_bytes(* ecx.tcx.sess.str_of(dep.name)));
1190
1190
ebml_w.end_tag();
1191
1191
ebml_w.start_tag(tag_crate_dep_vers);
1192
1192
ebml_w.writer.write(str::to_bytes(*dep.vers));
0 commit comments