@@ -300,17 +300,17 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
300300 Some ( RegionName { name : kw:: StaticLifetime , source : RegionNameSource :: Static } )
301301 }
302302
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) => {
305305 // Get the span to point to, even if we don't use the name.
306306 let span = tcx. hir ( ) . span_if_local ( region_def_id) . unwrap_or ( DUMMY_SP ) ;
307307 debug ! (
308308 "bound region named: {:?}, is_named: {:?}" ,
309309 name,
310- late_param. bound_region . is_named( )
310+ late_param. kind . is_named( )
311311 ) ;
312312
313- if late_param. bound_region . is_named ( ) {
313+ if late_param. kind . is_named ( ) {
314314 // A named region that is actually named.
315315 Some ( RegionName {
316316 name,
@@ -332,7 +332,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
332332 }
333333 }
334334
335- ty:: BoundRegionKind :: ClosureEnv => {
335+ ty:: LateParamRegionKind :: ClosureEnv => {
336336 let def_ty = self . regioncx . universal_regions ( ) . defining_ty ;
337337
338338 let closure_kind = match def_ty {
@@ -369,7 +369,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
369369 } )
370370 }
371371
372- ty:: BoundRegionKind :: Anon => None ,
372+ ty:: LateParamRegionKind :: Anon ( _ ) => None ,
373373 } ,
374374
375375 ty:: ReBound ( ..)
0 commit comments