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