@@ -57,7 +57,7 @@ mod type_of;
5757
5858///////////////////////////////////////////////////////////////////////////
5959
60- pub fn provide ( providers : & mut Providers ) {
60+ pub ( crate ) fn provide ( providers : & mut Providers ) {
6161 resolve_bound_vars:: provide ( providers) ;
6262 * providers = Providers {
6363 type_of : type_of:: type_of,
@@ -122,7 +122,7 @@ pub fn provide(providers: &mut Providers) {
122122/// `ItemCtxt` is parameterized by a `DefId` that it uses to satisfy
123123/// `probe_ty_param_bounds` requests, drawing the information from
124124/// the HIR (`hir::Generics`), recursively.
125- pub struct ItemCtxt < ' tcx > {
125+ pub ( crate ) struct ItemCtxt < ' tcx > {
126126 tcx : TyCtxt < ' tcx > ,
127127 item_def_id : LocalDefId ,
128128 tainted_by_errors : Cell < Option < ErrorGuaranteed > > ,
@@ -148,7 +148,7 @@ impl<'v> Visitor<'v> for HirPlaceholderCollector {
148148 }
149149}
150150
151- pub struct CollectItemTypesVisitor < ' tcx > {
151+ pub ( crate ) struct CollectItemTypesVisitor < ' tcx > {
152152 pub tcx : TyCtxt < ' tcx > ,
153153}
154154
@@ -364,19 +364,19 @@ fn bad_placeholder<'cx, 'tcx>(
364364}
365365
366366impl < ' tcx > ItemCtxt < ' tcx > {
367- pub fn new ( tcx : TyCtxt < ' tcx > , item_def_id : LocalDefId ) -> ItemCtxt < ' tcx > {
367+ pub ( crate ) fn new ( tcx : TyCtxt < ' tcx > , item_def_id : LocalDefId ) -> ItemCtxt < ' tcx > {
368368 ItemCtxt { tcx, item_def_id, tainted_by_errors : Cell :: new ( None ) }
369369 }
370370
371- pub fn lower_ty ( & self , hir_ty : & hir:: Ty < ' tcx > ) -> Ty < ' tcx > {
371+ pub ( crate ) fn lower_ty ( & self , hir_ty : & hir:: Ty < ' tcx > ) -> Ty < ' tcx > {
372372 self . lowerer ( ) . lower_ty ( hir_ty)
373373 }
374374
375- pub fn hir_id ( & self ) -> hir:: HirId {
375+ pub ( crate ) fn hir_id ( & self ) -> hir:: HirId {
376376 self . tcx . local_def_id_to_hir_id ( self . item_def_id )
377377 }
378378
379- pub fn node ( & self ) -> hir:: Node < ' tcx > {
379+ pub ( crate ) fn node ( & self ) -> hir:: Node < ' tcx > {
380380 self . tcx . hir_node ( self . hir_id ( ) )
381381 }
382382
0 commit comments