File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ struct ctxt_ {
262
262
needs_drop_cache : HashMap < t , bool > ,
263
263
needs_unwind_cleanup_cache : HashMap < t , bool > ,
264
264
mut tc_cache : LinearMap < uint , TypeContents > ,
265
- ast_ty_to_ty_cache : HashMap < @ast :: Ty , ast_ty_to_ty_cache_entry > ,
265
+ ast_ty_to_ty_cache : HashMap < node_id , ast_ty_to_ty_cache_entry > ,
266
266
enum_var_cache : HashMap < def_id , @~[ VariantInfo ] > ,
267
267
trait_method_cache : HashMap < def_id , @~[ method ] > ,
268
268
ty_param_bounds : HashMap < ast:: node_id , param_bounds > ,
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
277
277
278
278
let tcx = self . tcx ( ) ;
279
279
280
- match tcx. ast_ty_to_ty_cache . find ( & ast_ty) {
280
+ match tcx. ast_ty_to_ty_cache . find ( & ast_ty. id ) {
281
281
Some ( ty:: atttce_resolved( ty) ) => return ty,
282
282
Some ( ty:: atttce_unresolved) => {
283
283
tcx. sess . span_fatal ( ast_ty. span , ~"illegal recursive type ; \
@@ -287,7 +287,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
287
287
None => { /* go on */ }
288
288
}
289
289
290
- tcx. ast_ty_to_ty_cache . insert ( ast_ty, ty:: atttce_unresolved) ;
290
+ tcx. ast_ty_to_ty_cache . insert ( ast_ty. id , ty:: atttce_unresolved) ;
291
291
let typ = match /*bad*/ copy ast_ty. node {
292
292
ast:: ty_nil => ty:: mk_nil ( tcx) ,
293
293
ast:: ty_bot => ty:: mk_bot ( tcx) ,
@@ -409,7 +409,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
409
409
}
410
410
} ;
411
411
412
- tcx. ast_ty_to_ty_cache . insert ( ast_ty, ty:: atttce_resolved ( typ) ) ;
412
+ tcx. ast_ty_to_ty_cache . insert ( ast_ty. id , ty:: atttce_resolved ( typ) ) ;
413
413
return typ;
414
414
}
415
415
You can’t perform that action at this time.
0 commit comments