@@ -299,17 +299,17 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
299299 Some ( RegionName { name : kw:: StaticLifetime , source : RegionNameSource :: Static } )
300300 }
301301
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) => {
304304 // Get the span to point to, even if we don't use the name.
305305 let span = tcx. hir ( ) . span_if_local ( region_def_id) . unwrap_or ( DUMMY_SP ) ;
306306 debug ! (
307307 "bound region named: {:?}, is_named: {:?}" ,
308308 name,
309- late_param. bound_region . is_named( )
309+ late_param. kind . is_named( )
310310 ) ;
311311
312- if late_param. bound_region . is_named ( ) {
312+ if late_param. kind . is_named ( ) {
313313 // A named region that is actually named.
314314 Some ( RegionName {
315315 name,
@@ -331,7 +331,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
331331 }
332332 }
333333
334- ty:: BoundRegionKind :: ClosureEnv => {
334+ ty:: LateParamRegionKind :: ClosureEnv => {
335335 let def_ty = self . regioncx . universal_regions ( ) . defining_ty ;
336336
337337 let closure_kind = match def_ty {
@@ -368,7 +368,7 @@ impl<'tcx> MirBorrowckCtxt<'_, '_, 'tcx> {
368368 } )
369369 }
370370
371- ty:: BoundRegionKind :: Anon => None ,
371+ ty:: LateParamRegionKind :: Anon ( _ ) => None ,
372372 } ,
373373
374374 ty:: ReBound ( ..)
0 commit comments