@@ -118,7 +118,7 @@ pub fn encode_def_id(ebml_w: writer::Encoder, id: def_id) {
118
118
119
119
fn encode_region_param ( ecx : @encode_ctxt , ebml_w : writer:: Encoder ,
120
120
it : @ast:: item ) {
121
- let opt_rp = ecx. tcx . region_paramd_items . find ( it. id ) ;
121
+ let opt_rp = ecx. tcx . region_paramd_items . find ( & it. id ) ;
122
122
for opt_rp. each |rp| {
123
123
do ebml_w. wr_tag( tag_region_param) {
124
124
( * rp) . encode ( & ebml_w) ;
@@ -184,7 +184,7 @@ fn encode_ty_type_param_bounds(ebml_w: writer::Encoder, ecx: @encode_ctxt,
184
184
fn encode_type_param_bounds ( ebml_w : writer:: Encoder , ecx : @encode_ctxt ,
185
185
params : & [ ty_param ] ) {
186
186
let ty_param_bounds =
187
- @params. map ( |param| ecx. tcx . ty_param_bounds . get ( param. id ) ) ;
187
+ @params. map ( |param| ecx. tcx . ty_param_bounds . get ( & param. id ) ) ;
188
188
encode_ty_type_param_bounds ( ebml_w, ecx, ty_param_bounds) ;
189
189
}
190
190
@@ -224,7 +224,7 @@ fn encode_type(ecx: @encode_ctxt, ebml_w: writer::Encoder, typ: ty::t) {
224
224
225
225
fn encode_symbol ( ecx : @encode_ctxt , ebml_w : writer:: Encoder , id : node_id ) {
226
226
ebml_w. start_tag ( tag_items_data_item_symbol) ;
227
- let sym = match ecx. item_symbols . find ( id) {
227
+ let sym = match ecx. item_symbols . find ( & id) {
228
228
Some ( ref x) => ( /*bad*/ copy * x) ,
229
229
None => {
230
230
ecx. diag . handler ( ) . bug (
@@ -238,7 +238,7 @@ fn encode_symbol(ecx: @encode_ctxt, ebml_w: writer::Encoder, id: node_id) {
238
238
fn encode_discriminant ( ecx : @encode_ctxt , ebml_w : writer:: Encoder ,
239
239
id : node_id ) {
240
240
ebml_w. start_tag ( tag_items_data_item_symbol) ;
241
- ebml_w. writer . write ( str:: to_bytes ( ecx. discrim_symbols . get ( id) ) ) ;
241
+ ebml_w. writer . write ( str:: to_bytes ( ecx. discrim_symbols . get ( & id) ) ) ;
242
242
ebml_w. end_tag ( ) ;
243
243
}
244
244
@@ -349,7 +349,7 @@ fn encode_info_for_mod(ecx: @encode_ctxt, ebml_w: writer::Encoder,
349
349
350
350
// Encode the reexports of this module.
351
351
debug ! ( "(encoding info for module) encoding reexports for %d" , id) ;
352
- match ecx. reexports2 . find ( id) {
352
+ match ecx. reexports2 . find ( & id) {
353
353
Some ( ref exports) => {
354
354
debug ! ( "(encoding info for module) found reexports for %d" , id) ;
355
355
for ( * exports) . each |exp| {
@@ -813,7 +813,7 @@ fn encode_info_for_item(ecx: @encode_ctxt, ebml_w: writer::Encoder,
813
813
encode_name(ecx, ebml_w, ty_m.ident);
814
814
encode_family(ebml_w,
815
815
purity_static_method_family(ty_m.purity));
816
- let polyty = ecx.tcx.tcache.get(local_def(ty_m.id));
816
+ let polyty = ecx.tcx.tcache.get(& local_def(ty_m.id));
817
817
encode_ty_type_param_bounds(ebml_w, ecx, polyty.bounds);
818
818
encode_type(ecx, ebml_w, polyty.ty);
819
819
let mut m_path = vec::append(~[], path); // :-(
@@ -881,7 +881,7 @@ fn encode_info_for_items(ecx: @encode_ctxt, ebml_w: writer::Encoder,
881
881
let ebml_w = copy ebml_w;
882
882
|i, cx, v| {
883
883
visit::visit_item(i, cx, v);
884
- match ecx.tcx.items.get(i.id) {
884
+ match ecx.tcx.items.get(& i.id) {
885
885
ast_map::node_item(_, pt) => {
886
886
encode_info_for_item(ecx, ebml_w, i,
887
887
index, *pt);
@@ -894,7 +894,7 @@ fn encode_info_for_items(ecx: @encode_ctxt, ebml_w: writer::Encoder,
894
894
let ebml_w = copy ebml_w;
895
895
|ni, cx, v| {
896
896
visit::visit_foreign_item(ni, cx, v);
897
- match ecx.tcx.items.get(ni.id) {
897
+ match ecx.tcx.items.get(& ni.id) {
898
898
ast_map::node_foreign_item(_, abi, pt) => {
899
899
encode_info_for_foreign_item(ecx, ebml_w, ni,
900
900
index, /*bad*/copy *pt,
0 commit comments