@@ -238,7 +238,7 @@ enum LifetimeRibKind {
238
238
/// `body_id` is an anonymous constant and `lifetime_ref` is non-static.
239
239
AnonConst ,
240
240
241
- /// Create a new anonymous region parameter and reference it.
241
+ /// Create a new anonymous lifetime parameter and reference it.
242
242
///
243
243
/// If `report_in_path`, report an error when encountering lifetime elision in a path:
244
244
/// ```ignore
@@ -1279,13 +1279,13 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
1279
1279
for i in & mut indices {
1280
1280
let rib = & self . lifetime_ribs [ i] ;
1281
1281
let normalized_ident = ident. normalize_to_macros_2_0 ( ) ;
1282
- if let Some ( & ( _, region ) ) = rib. bindings . get ( & normalized_ident) {
1283
- self . record_lifetime_res ( lifetime. id , region ) ;
1282
+ if let Some ( & ( _, res ) ) = rib. bindings . get ( & normalized_ident) {
1283
+ self . record_lifetime_res ( lifetime. id , res ) ;
1284
1284
1285
- if let LifetimeRes :: Param { param, .. } = region {
1285
+ if let LifetimeRes :: Param { param, .. } = res {
1286
1286
match self . lifetime_uses . entry ( param) {
1287
1287
Entry :: Vacant ( v) => {
1288
- debug ! ( "First use of {:?} at {:?}" , region , ident. span) ;
1288
+ debug ! ( "First use of {:?} at {:?}" , res , ident. span) ;
1289
1289
let use_set = self
1290
1290
. lifetime_ribs
1291
1291
. iter ( )
@@ -1310,7 +1310,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
1310
1310
v. insert ( use_set) ;
1311
1311
}
1312
1312
Entry :: Occupied ( mut o) => {
1313
- debug ! ( "Many uses of {:?} at {:?}" , region , ident. span) ;
1313
+ debug ! ( "Many uses of {:?} at {:?}" , res , ident. span) ;
1314
1314
* o. get_mut ( ) = LifetimeUseSet :: Many ;
1315
1315
}
1316
1316
}
@@ -1433,13 +1433,13 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
1433
1433
) ;
1434
1434
debug ! ( ?def_id) ;
1435
1435
1436
- let region = LifetimeRes :: Fresh { param : def_id, binder : item_node_id } ;
1436
+ let res = LifetimeRes :: Fresh { param : def_id, binder : item_node_id } ;
1437
1437
self . r . extra_lifetime_params_map . entry ( item_node_id) . or_insert_with ( Vec :: new) . push ( (
1438
1438
ident,
1439
1439
def_node_id,
1440
- region ,
1440
+ res ,
1441
1441
) ) ;
1442
- region
1442
+ res
1443
1443
}
1444
1444
1445
1445
#[ tracing:: instrument( level = "debug" , skip( self ) ) ]
0 commit comments