@@ -300,17 +300,17 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
300
300
Some ( RegionName { name : kw:: StaticLifetime , source : RegionNameSource :: Static } )
301
301
}
302
302
303
- ty:: ReLateParam ( late_param) => match late_param. bound_region {
304
- ty:: BoundRegionKind :: Named ( region_def_id, name) => {
303
+ ty:: ReLateParam ( late_param) => match late_param. kind {
304
+ ty:: LateParamRegionKind :: Named ( region_def_id, name) => {
305
305
// Get the span to point to, even if we don't use the name.
306
306
let span = tcx. hir ( ) . span_if_local ( region_def_id) . unwrap_or ( DUMMY_SP ) ;
307
307
debug ! (
308
308
"bound region named: {:?}, is_named: {:?}" ,
309
309
name,
310
- late_param. bound_region . is_named( )
310
+ late_param. kind . is_named( )
311
311
) ;
312
312
313
- if late_param. bound_region . is_named ( ) {
313
+ if late_param. kind . is_named ( ) {
314
314
// A named region that is actually named.
315
315
Some ( RegionName {
316
316
name,
@@ -332,7 +332,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
332
332
}
333
333
}
334
334
335
- ty:: BoundRegionKind :: ClosureEnv => {
335
+ ty:: LateParamRegionKind :: ClosureEnv => {
336
336
let def_ty = self . regioncx . universal_regions ( ) . defining_ty ;
337
337
338
338
let closure_kind = match def_ty {
@@ -369,7 +369,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
369
369
} )
370
370
}
371
371
372
- ty:: BoundRegionKind :: Anon => None ,
372
+ ty:: LateParamRegionKind :: Anon ( _ ) => None ,
373
373
} ,
374
374
375
375
ty:: ReBound ( ..)
0 commit comments