@@ -138,8 +138,8 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
138
138
/// empty region. The `expansion` phase will grow this larger.
139
139
fn construct_var_data ( & self , tcx : TyCtxt < ' _ , ' _ , ' tcx > ) -> LexicalRegionResolutions < ' tcx > {
140
140
LexicalRegionResolutions {
141
- error_region : tcx. types . re_static ,
142
- values : IndexVec :: from_elem_n ( VarValue :: Value ( tcx. types . re_empty ) , self . num_vars ( ) )
141
+ error_region : tcx. lifetimes . re_static ,
142
+ values : IndexVec :: from_elem_n ( VarValue :: Value ( tcx. lifetimes . re_empty ) , self . num_vars ( ) )
143
143
}
144
144
}
145
145
@@ -266,7 +266,7 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
266
266
let b_universe = self . var_infos [ b_vid] . universe ;
267
267
if let ty:: RePlaceholder ( p) = lub {
268
268
if b_universe. cannot_name ( p. universe ) {
269
- lub = self . tcx ( ) . types . re_static ;
269
+ lub = self . tcx ( ) . lifetimes . re_static ;
270
270
}
271
271
}
272
272
@@ -348,7 +348,7 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
348
348
349
349
// otherwise, we don't know what the free region is,
350
350
// so we must conservatively say the LUB is static:
351
- tcx. types . re_static
351
+ tcx. lifetimes . re_static
352
352
}
353
353
354
354
( & ReScope ( a_id) , & ReScope ( b_id) ) => {
@@ -371,7 +371,7 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
371
371
( & RePlaceholder ( ..) , _) | ( _, & RePlaceholder ( ..) ) => if a == b {
372
372
a
373
373
} else {
374
- tcx. types . re_static
374
+ tcx. lifetimes . re_static
375
375
} ,
376
376
}
377
377
}
@@ -598,7 +598,7 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
598
598
for lower_bound in & lower_bounds {
599
599
let effective_lower_bound = if let ty:: RePlaceholder ( p) = lower_bound. region {
600
600
if node_universe. cannot_name ( p. universe ) {
601
- self . tcx ( ) . types . re_static
601
+ self . tcx ( ) . lifetimes . re_static
602
602
} else {
603
603
lower_bound. region
604
604
}
0 commit comments