@@ -104,13 +104,13 @@ pub fn reachable(ecx: @encode_ctxt, id: node_id) -> bool {
104104}
105105
106106fn 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) ) ;
108108}
109109
110110fn encode_impl_type_basename ( ecx : @encode_ctxt , ebml_w : writer:: Encoder ,
111111 name : ident ) {
112112 ebml_w. wr_tagged_str ( tag_item_impl_type_basename,
113- ecx. tcx . sess . str_of ( name) ) ;
113+ * ecx. tcx . sess . str_of ( name) ) ;
114114}
115115
116116pub 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,
305305 ast_map:: path_name( name) => ( tag_path_elt_name, name)
306306 } ;
307307
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) ) ;
309309 }
310310
311311 do ebml_w. wr_tag ( tag_path) {
@@ -333,7 +333,7 @@ fn encode_info_for_mod(ecx: @encode_ctxt, ebml_w: writer::Encoder,
333333 let ( ident, did) = ( item. ident , item. id ) ;
334334 debug ! ( "(encoding info for module) ... encoding impl %s \
335335 (%?/%?)",
336- ecx. tcx. sess. str_of( ident) ,
336+ * ecx. tcx. sess. str_of( ident) ,
337337 did,
338338 ast_map:: node_id_to_str( ecx. tcx. items, did, ecx. tcx
339339 . sess. parse_sess. interner) ) ;
@@ -353,15 +353,15 @@ fn encode_info_for_mod(ecx: @encode_ctxt, ebml_w: writer::Encoder,
353353 match ecx. reexports2 . find ( & id) {
354354 Some ( ref exports) => {
355355 debug ! ( "(encoding info for module) found reexports for %d" , id) ;
356- for ( * exports) . each |exp| {
356+ for exports. each |exp| {
357357 debug ! ( "(encoding info for module) reexport '%s' for %d" ,
358- exp. name, id) ;
358+ * exp. name, id) ;
359359 ebml_w. start_tag ( tag_items_data_item_reexport) ;
360360 ebml_w. start_tag ( tag_items_data_item_reexport_def_id) ;
361361 ebml_w. wr_str ( def_to_str ( exp. def_id ) ) ;
362362 ebml_w. end_tag ( ) ;
363363 ebml_w. start_tag ( tag_items_data_item_reexport_name) ;
364- ebml_w. wr_str ( exp. name ) ;
364+ ebml_w. wr_str ( * exp. name ) ;
365365 ebml_w. end_tag ( ) ;
366366 ebml_w. end_tag ( ) ;
367367 }
@@ -447,7 +447,7 @@ fn encode_info_for_struct(ecx: @encode_ctxt, ebml_w: writer::Encoder,
447447 global_index. push ( { val: id, pos: ebml_w. writer . tell ( ) } ) ;
448448 ebml_w. start_tag ( tag_items_data_item) ;
449449 debug ! ( "encode_info_for_struct: doing %s %d" ,
450- tcx. sess. str_of( nm) , id) ;
450+ * tcx. sess. str_of( nm) , id) ;
451451 encode_visibility ( ebml_w, vis) ;
452452 encode_name ( ecx, ebml_w, nm) ;
453453 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,
470470 encode_type_param_bounds ( ebml_w, ecx, tps) ;
471471 let its_ty = node_id_to_type ( ecx. tcx , id) ;
472472 debug ! ( "fn name = %s ty = %s its node id = %d" ,
473- ecx. tcx. sess. str_of( ident) ,
473+ * ecx. tcx. sess. str_of( ident) ,
474474 ty_to_str( ecx. tcx, its_ty) , id) ;
475475 encode_type ( ecx, ebml_w, its_ty) ;
476476 encode_path ( ecx, ebml_w, path, ast_map:: path_name ( ident) ) ;
@@ -515,7 +515,7 @@ fn encode_info_for_method(ecx: @encode_ctxt,
515515 m : @method ,
516516 +all_tps : ~[ ty_param ] ) {
517517 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( ) ) ;
519519 ebml_w. start_tag ( tag_items_data_item) ;
520520 encode_def_id ( ebml_w, local_def ( m. id ) ) ;
521521 match m. self_ty . node {
@@ -678,7 +678,7 @@ fn encode_info_for_item(ecx: @encode_ctxt, ebml_w: writer::Encoder,
678678 ebml_w,
679679 dtor.node.id,
680680 ecx.tcx.sess.ident_of(
681- ecx.tcx.sess.str_of(item.ident) +
681+ * ecx.tcx.sess.str_of(item.ident) +
682682 ~" _dtor"),
683683 path,
684684 if tps.len() > 0u {
@@ -1186,7 +1186,7 @@ fn encode_crate_dep(ecx: @encode_ctxt, ebml_w: writer::Encoder,
11861186 dep: decoder::crate_dep) {
11871187 ebml_w.start_tag(tag_crate_dep);
11881188 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)));
11901190 ebml_w.end_tag();
11911191 ebml_w.start_tag(tag_crate_dep_vers);
11921192 ebml_w.writer.write(str::to_bytes(*dep.vers));
0 commit comments