@@ -1295,7 +1295,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1295
1295
1296
1296
all_fake_borrows. into_iter ( ) . map ( |matched_place| {
1297
1297
let fake_borrow_deref_ty = matched_place. ty ( & self . local_decls , tcx) . ty ;
1298
- let fake_borrow_ty = tcx. mk_imm_ref ( tcx. types . re_erased , fake_borrow_deref_ty) ;
1298
+ let fake_borrow_ty = tcx. mk_imm_ref ( tcx. lifetimes . re_erased , fake_borrow_deref_ty) ;
1299
1299
let fake_borrow_temp = self . local_decls . push (
1300
1300
LocalDecl :: new_temp ( fake_borrow_ty, temp_span)
1301
1301
) ;
@@ -1443,7 +1443,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1443
1443
debug ! ( "Entering guard building context: {:?}" , guard_frame) ;
1444
1444
self . guard_context . push ( guard_frame) ;
1445
1445
1446
- let re_erased = tcx. types . re_erased ;
1446
+ let re_erased = tcx. lifetimes . re_erased ;
1447
1447
let scrutinee_source_info = self . source_info ( scrutinee_span) ;
1448
1448
for & ( place, temp) in fake_borrows {
1449
1449
let borrow = Rvalue :: Ref (
@@ -1607,7 +1607,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1607
1607
// Assign each of the bindings. Since we are binding for a
1608
1608
// guard expression, this will never trigger moves out of the
1609
1609
// candidate.
1610
- let re_erased = self . hir . tcx ( ) . types . re_erased ;
1610
+ let re_erased = self . hir . tcx ( ) . lifetimes . re_erased ;
1611
1611
for binding in bindings {
1612
1612
let source_info = self . source_info ( binding. span ) ;
1613
1613
@@ -1659,7 +1659,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1659
1659
) where ' tcx : ' b {
1660
1660
debug ! ( "bind_matched_candidate_for_arm_body(block={:?})" , block) ;
1661
1661
1662
- let re_erased = self . hir . tcx ( ) . types . re_erased ;
1662
+ let re_erased = self . hir . tcx ( ) . lifetimes . re_erased ;
1663
1663
// Assign each of the bindings. This may trigger moves out of the candidate.
1664
1664
for binding in bindings {
1665
1665
let source_info = self . source_info ( binding. span ) ;
@@ -1735,7 +1735,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
1735
1735
// This variable isn't mutated but has a name, so has to be
1736
1736
// immutable to avoid the unused mut lint.
1737
1737
mutability : Mutability :: Not ,
1738
- ty : tcx. mk_imm_ref ( tcx. types . re_erased , var_ty) ,
1738
+ ty : tcx. mk_imm_ref ( tcx. lifetimes . re_erased , var_ty) ,
1739
1739
user_ty : UserTypeProjections :: none ( ) ,
1740
1740
name : Some ( name) ,
1741
1741
source_info,
0 commit comments