@@ -1468,7 +1468,7 @@ pub struct Region<'tcx>(pub Interned<'tcx, RegionKind<'tcx>>);
1468
1468
1469
1469
impl < ' tcx > Region < ' tcx > {
1470
1470
#[ inline]
1471
- pub fn new_early_bound (
1471
+ pub fn new_early_param (
1472
1472
tcx : TyCtxt < ' tcx > ,
1473
1473
early_bound_region : ty:: RegionParameterDefinition ,
1474
1474
) -> Region < ' tcx > {
@@ -1493,7 +1493,7 @@ impl<'tcx> Region<'tcx> {
1493
1493
}
1494
1494
1495
1495
#[ inline]
1496
- pub fn new_free (
1496
+ pub fn new_late_param (
1497
1497
tcx : TyCtxt < ' tcx > ,
1498
1498
scope : DefId ,
1499
1499
bound_region : ty:: BoundRegionKind ,
@@ -1549,10 +1549,10 @@ impl<'tcx> Region<'tcx> {
1549
1549
/// to avoid the cost of the `match`.
1550
1550
pub fn new_from_kind ( tcx : TyCtxt < ' tcx > , kind : RegionKind < ' tcx > ) -> Region < ' tcx > {
1551
1551
match kind {
1552
- ty:: ReEarlyParam ( region) => Region :: new_early_bound ( tcx, region) ,
1552
+ ty:: ReEarlyParam ( region) => Region :: new_early_param ( tcx, region) ,
1553
1553
ty:: ReBound ( debruijn, region) => Region :: new_bound ( tcx, debruijn, region) ,
1554
1554
ty:: ReLateParam ( ty:: LateParamRegion { scope, bound_region } ) => {
1555
- Region :: new_free ( tcx, scope, bound_region)
1555
+ Region :: new_late_param ( tcx, scope, bound_region)
1556
1556
}
1557
1557
ty:: ReStatic => tcx. lifetimes . re_static ,
1558
1558
ty:: ReVar ( vid) => Region :: new_var ( tcx, vid) ,
0 commit comments