@@ -1468,7 +1468,7 @@ pub struct Region<'tcx>(pub Interned<'tcx, RegionKind<'tcx>>);
14681468
14691469impl < ' tcx > Region < ' tcx > {
14701470 #[ inline]
1471- pub fn new_early_bound (
1471+ pub fn new_early_param (
14721472 tcx : TyCtxt < ' tcx > ,
14731473 early_bound_region : ty:: RegionParameterDefinition ,
14741474 ) -> Region < ' tcx > {
@@ -1493,7 +1493,7 @@ impl<'tcx> Region<'tcx> {
14931493 }
14941494
14951495 #[ inline]
1496- pub fn new_free (
1496+ pub fn new_late_param (
14971497 tcx : TyCtxt < ' tcx > ,
14981498 scope : DefId ,
14991499 bound_region : ty:: BoundRegionKind ,
@@ -1549,10 +1549,10 @@ impl<'tcx> Region<'tcx> {
15491549 /// to avoid the cost of the `match`.
15501550 pub fn new_from_kind ( tcx : TyCtxt < ' tcx > , kind : RegionKind < ' tcx > ) -> Region < ' tcx > {
15511551 match kind {
1552- ty:: ReEarlyParam ( region) => Region :: new_early_bound ( tcx, region) ,
1552+ ty:: ReEarlyParam ( region) => Region :: new_early_param ( tcx, region) ,
15531553 ty:: ReBound ( debruijn, region) => Region :: new_bound ( tcx, debruijn, region) ,
15541554 ty:: ReLateParam ( ty:: LateParamRegion { scope, bound_region } ) => {
1555- Region :: new_free ( tcx, scope, bound_region)
1555+ Region :: new_late_param ( tcx, scope, bound_region)
15561556 }
15571557 ty:: ReStatic => tcx. lifetimes . re_static ,
15581558 ty:: ReVar ( vid) => Region :: new_var ( tcx, vid) ,
0 commit comments