@@ -232,20 +232,20 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
232
232
// children of 1, etc
233
233
234
234
let dscope = region:: Scope {
235
- id : hir:: ItemLocalId ( 1 ) ,
235
+ id : hir:: ItemLocalId :: from_u32 ( 1 ) ,
236
236
data : region:: ScopeData :: Destruction ,
237
237
} ;
238
238
self . region_scope_tree . record_scope_parent ( dscope, None ) ;
239
239
self . create_region_hierarchy (
240
240
& RH {
241
- id : hir:: ItemLocalId ( 1 ) ,
241
+ id : hir:: ItemLocalId :: from_u32 ( 1 ) ,
242
242
sub : & [
243
243
RH {
244
- id : hir:: ItemLocalId ( 10 ) ,
244
+ id : hir:: ItemLocalId :: from_u32 ( 10 ) ,
245
245
sub : & [ ] ,
246
246
} ,
247
247
RH {
248
- id : hir:: ItemLocalId ( 11 ) ,
248
+ id : hir:: ItemLocalId :: from_u32 ( 11 ) ,
249
249
sub : & [ ] ,
250
250
} ,
251
251
] ,
@@ -400,7 +400,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
400
400
401
401
pub fn t_rptr_scope ( & self , id : u32 ) -> Ty < ' tcx > {
402
402
let r = ty:: ReScope ( region:: Scope {
403
- id : hir:: ItemLocalId ( id) ,
403
+ id : hir:: ItemLocalId :: from_u32 ( id) ,
404
404
data : region:: ScopeData :: Node ,
405
405
} ) ;
406
406
self . infcx
0 commit comments