@@ -154,7 +154,7 @@ fn check_fn(tcx: TyCtxt<'_>, parent_def_id: LocalDefId) {
154
154
}
155
155
156
156
for bound_var in sig. bound_vars ( ) {
157
- let ty:: BoundVariableKind :: Region ( ty:: BoundRegionKind :: BrNamed ( def_id, name) ) = bound_var
157
+ let ty:: BoundVariableKind :: Region ( ty:: BoundRegionKind :: Named ( def_id, name) ) = bound_var
158
158
else {
159
159
span_bug ! ( tcx. def_span( parent_def_id) , "unexpected non-lifetime binder on fn sig" ) ;
160
160
} ;
@@ -215,7 +215,7 @@ where
215
215
for arg in t. bound_vars ( ) {
216
216
let arg: ty:: BoundVariableKind = arg;
217
217
match arg {
218
- ty:: BoundVariableKind :: Region ( ty:: BoundRegionKind :: BrNamed ( def_id, ..) )
218
+ ty:: BoundVariableKind :: Region ( ty:: BoundRegionKind :: Named ( def_id, ..) )
219
219
| ty:: BoundVariableKind :: Ty ( ty:: BoundTyKind :: Param ( def_id, _) ) => {
220
220
added. push ( def_id) ;
221
221
let unique = self . in_scope_parameters . insert ( def_id, ParamKind :: Late ) ;
@@ -318,7 +318,7 @@ where
318
318
ParamKind :: Free ( def_id, name) => ty:: Region :: new_late_param (
319
319
self . tcx ,
320
320
self . parent_def_id . to_def_id ( ) ,
321
- ty:: BoundRegionKind :: BrNamed ( def_id, name) ,
321
+ ty:: BoundRegionKind :: Named ( def_id, name) ,
322
322
) ,
323
323
// Totally ignore late bound args from binders.
324
324
ParamKind :: Late => return true ,
@@ -489,11 +489,11 @@ fn extract_def_id_from_arg<'tcx>(
489
489
ty:: ReEarlyParam ( ebr) => generics. region_param ( ebr, tcx) . def_id ,
490
490
ty:: ReBound (
491
491
_,
492
- ty:: BoundRegion { kind : ty:: BoundRegionKind :: BrNamed ( def_id, ..) , .. } ,
492
+ ty:: BoundRegion { kind : ty:: BoundRegionKind :: Named ( def_id, ..) , .. } ,
493
493
)
494
494
| ty:: ReLateParam ( ty:: LateParamRegion {
495
495
scope : _,
496
- bound_region : ty:: BoundRegionKind :: BrNamed ( def_id, ..) ,
496
+ bound_region : ty:: BoundRegionKind :: Named ( def_id, ..) ,
497
497
} ) => def_id,
498
498
_ => unreachable ! ( ) ,
499
499
} ,
@@ -558,11 +558,11 @@ impl<'tcx> TypeRelation<TyCtxt<'tcx>> for FunctionalVariances<'tcx> {
558
558
ty:: ReEarlyParam ( ebr) => self . generics . region_param ( ebr, self . tcx ) . def_id ,
559
559
ty:: ReBound (
560
560
_,
561
- ty:: BoundRegion { kind : ty:: BoundRegionKind :: BrNamed ( def_id, ..) , .. } ,
561
+ ty:: BoundRegion { kind : ty:: BoundRegionKind :: Named ( def_id, ..) , .. } ,
562
562
)
563
563
| ty:: ReLateParam ( ty:: LateParamRegion {
564
564
scope : _,
565
- bound_region : ty:: BoundRegionKind :: BrNamed ( def_id, ..) ,
565
+ bound_region : ty:: BoundRegionKind :: Named ( def_id, ..) ,
566
566
} ) => def_id,
567
567
_ => {
568
568
return Ok ( a) ;
0 commit comments