11pub use self :: at:: DefineOpaqueTypes ;
22pub use self :: freshen:: TypeFreshener ;
33pub use self :: lexical_region_resolve:: RegionResolutionError ;
4- pub use self :: LateBoundRegionConversionTime :: * ;
4+ pub use self :: BoundRegionConversionTime :: * ;
55pub use self :: RegionVariableOrigin :: * ;
66pub use self :: SubregionOrigin :: * ;
77pub use self :: ValuePairs :: * ;
@@ -472,9 +472,9 @@ impl<'tcx> SubregionOrigin<'tcx> {
472472 }
473473}
474474
475- /// Times when we replace late- bound regions with variables :
475+ /// Times when we replace bound regions with existentials :
476476#[ derive( Clone , Copy , Debug ) ]
477- pub enum LateBoundRegionConversionTime {
477+ pub enum BoundRegionConversionTime {
478478 /// when a fn is called
479479 FnCall ,
480480
@@ -510,9 +510,9 @@ pub enum RegionVariableOrigin {
510510 /// Region variables created as the values for early-bound regions.
511511 EarlyBoundRegion ( Span , Symbol ) ,
512512
513- /// Region variables created for bound regions
514- /// in a function or method that is called .
515- LateBoundRegion ( Span , ty:: BoundRegionKind , LateBoundRegionConversionTime ) ,
513+ /// Region variables created when instantiating a binder with
514+ /// existential variables, e.g. when calling a function or method.
515+ BoundRegion ( Span , ty:: BoundRegionKind , BoundRegionConversionTime ) ,
516516
517517 UpvarRegion ( ty:: UpvarId , Span ) ,
518518
@@ -1456,13 +1456,13 @@ impl<'tcx> InferCtxt<'tcx> {
14561456 // variables in the current universe.
14571457 //
14581458 // Use this method if you'd like to find some substitution of the binder's
1459- // variables (e.g. during a method call). If there isn't a [`LateBoundRegionConversionTime `]
1459+ // variables (e.g. during a method call). If there isn't a [`BoundRegionConversionTime `]
14601460 // that corresponds to your use case, consider whether or not you should
14611461 // use [`InferCtxt::instantiate_binder_with_placeholders`] instead.
14621462 pub fn instantiate_binder_with_fresh_vars < T > (
14631463 & self ,
14641464 span : Span ,
1465- lbrct : LateBoundRegionConversionTime ,
1465+ lbrct : BoundRegionConversionTime ,
14661466 value : ty:: Binder < ' tcx , T > ,
14671467 ) -> T
14681468 where
@@ -1475,7 +1475,7 @@ impl<'tcx> InferCtxt<'tcx> {
14751475 struct ToFreshVars < ' a , ' tcx > {
14761476 infcx : & ' a InferCtxt < ' tcx > ,
14771477 span : Span ,
1478- lbrct : LateBoundRegionConversionTime ,
1478+ lbrct : BoundRegionConversionTime ,
14791479 map : FxHashMap < ty:: BoundVar , ty:: GenericArg < ' tcx > > ,
14801480 }
14811481
@@ -1485,7 +1485,7 @@ impl<'tcx> InferCtxt<'tcx> {
14851485 . entry ( br. var )
14861486 . or_insert_with ( || {
14871487 self . infcx
1488- . next_region_var ( LateBoundRegion ( self . span , br. kind , self . lbrct ) )
1488+ . next_region_var ( BoundRegion ( self . span , br. kind , self . lbrct ) )
14891489 . into ( )
14901490 } )
14911491 . expect_region ( )
@@ -2042,7 +2042,7 @@ impl RegionVariableOrigin {
20422042 | Autoref ( a)
20432043 | Coercion ( a)
20442044 | EarlyBoundRegion ( a, ..)
2045- | LateBoundRegion ( a, ..)
2045+ | BoundRegion ( a, ..)
20462046 | UpvarRegion ( _, a) => a,
20472047 Nll ( ..) => bug ! ( "NLL variable used with `span`" ) ,
20482048 }
0 commit comments