@@ -15,7 +15,7 @@ use crate::infer::{GenericKind, VerifyBound};
1515/// via a "delegate" of type `D` -- this is usually the `infcx`, which
1616/// accrues them into the `region_obligations` code, but for NLL we
1717/// use something else.
18- pub struct VerifyBoundCx < ' cx , ' tcx > {
18+ pub ( crate ) struct VerifyBoundCx < ' cx , ' tcx > {
1919 tcx : TyCtxt < ' tcx > ,
2020 region_bound_pairs : & ' cx RegionBoundPairs < ' tcx > ,
2121 /// During borrowck, if there are no outlives bounds on a generic
@@ -28,7 +28,7 @@ pub struct VerifyBoundCx<'cx, 'tcx> {
2828}
2929
3030impl < ' cx , ' tcx > VerifyBoundCx < ' cx , ' tcx > {
31- pub fn new (
31+ pub ( crate ) fn new (
3232 tcx : TyCtxt < ' tcx > ,
3333 region_bound_pairs : & ' cx RegionBoundPairs < ' tcx > ,
3434 implicit_region_bound : Option < ty:: Region < ' tcx > > ,
@@ -38,7 +38,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
3838 }
3939
4040 #[ instrument( level = "debug" , skip( self ) ) ]
41- pub fn param_or_placeholder_bound ( & self , ty : Ty < ' tcx > ) -> VerifyBound < ' tcx > {
41+ pub ( crate ) fn param_or_placeholder_bound ( & self , ty : Ty < ' tcx > ) -> VerifyBound < ' tcx > {
4242 // Start with anything like `T: 'a` we can scrape from the
4343 // environment. If the environment contains something like
4444 // `for<'a> T: 'a`, then we know that `T` outlives everything.
@@ -92,7 +92,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
9292 /// the clause from the environment only applies if `'0 = 'a`,
9393 /// which we don't know yet. But we would still include `'b` in
9494 /// this list.
95- pub fn approx_declared_bounds_from_env (
95+ pub ( crate ) fn approx_declared_bounds_from_env (
9696 & self ,
9797 alias_ty : ty:: AliasTy < ' tcx > ,
9898 ) -> Vec < ty:: PolyTypeOutlivesPredicate < ' tcx > > {
@@ -101,7 +101,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
101101 }
102102
103103 #[ instrument( level = "debug" , skip( self ) ) ]
104- pub fn alias_bound ( & self , alias_ty : ty:: AliasTy < ' tcx > ) -> VerifyBound < ' tcx > {
104+ pub ( crate ) fn alias_bound ( & self , alias_ty : ty:: AliasTy < ' tcx > ) -> VerifyBound < ' tcx > {
105105 let alias_ty_as_ty = alias_ty. to_ty ( self . tcx ) ;
106106
107107 // Search the env for where clauses like `P: 'a`.
@@ -285,7 +285,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
285285 ///
286286 /// This is for simplicity, and because we are not really smart
287287 /// enough to cope with such bounds anywhere.
288- pub fn declared_bounds_from_definition (
288+ pub ( crate ) fn declared_bounds_from_definition (
289289 & self ,
290290 alias_ty : ty:: AliasTy < ' tcx > ,
291291 ) -> impl Iterator < Item = ty:: Region < ' tcx > > {
0 commit comments