@@ -232,20 +232,20 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
232232 // children of 1, etc
233233
234234 let dscope = region:: Scope {
235- id : hir:: ItemLocalId ( 1 ) ,
235+ id : hir:: ItemLocalId :: from_u32 ( 1 ) ,
236236 data : region:: ScopeData :: Destruction ,
237237 } ;
238238 self . region_scope_tree . record_scope_parent ( dscope, None ) ;
239239 self . create_region_hierarchy (
240240 & RH {
241- id : hir:: ItemLocalId ( 1 ) ,
241+ id : hir:: ItemLocalId :: from_u32 ( 1 ) ,
242242 sub : & [
243243 RH {
244- id : hir:: ItemLocalId ( 10 ) ,
244+ id : hir:: ItemLocalId :: from_u32 ( 10 ) ,
245245 sub : & [ ] ,
246246 } ,
247247 RH {
248- id : hir:: ItemLocalId ( 11 ) ,
248+ id : hir:: ItemLocalId :: from_u32 ( 11 ) ,
249249 sub : & [ ] ,
250250 } ,
251251 ] ,
@@ -400,7 +400,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
400400
401401 pub fn t_rptr_scope ( & self , id : u32 ) -> Ty < ' tcx > {
402402 let r = ty:: ReScope ( region:: Scope {
403- id : hir:: ItemLocalId ( id) ,
403+ id : hir:: ItemLocalId :: from_u32 ( id) ,
404404 data : region:: ScopeData :: Node ,
405405 } ) ;
406406 self . infcx
0 commit comments