@@ -169,7 +169,7 @@ impl<'tcx> Iterator for TraitAliasExpander<'tcx> {
169
169
/// Instantiate all bound parameters of the impl subject with the given args,
170
170
/// returning the resulting subject and all obligations that arise.
171
171
/// The obligations are closed under normalization.
172
- pub fn impl_subject_and_oblig < ' a , ' tcx > (
172
+ pub ( crate ) fn impl_subject_and_oblig < ' a , ' tcx > (
173
173
selcx : & SelectionContext < ' a , ' tcx > ,
174
174
param_env : ty:: ParamEnv < ' tcx > ,
175
175
impl_def_id : DefId ,
@@ -209,7 +209,7 @@ pub fn upcast_choices<'tcx>(
209
209
supertraits ( tcx, source_trait_ref) . filter ( |r| r. def_id ( ) == target_trait_def_id) . collect ( )
210
210
}
211
211
212
- pub fn closure_trait_ref_and_return_type < ' tcx > (
212
+ pub ( crate ) fn closure_trait_ref_and_return_type < ' tcx > (
213
213
tcx : TyCtxt < ' tcx > ,
214
214
fn_trait_def_id : DefId ,
215
215
self_ty : Ty < ' tcx > ,
@@ -238,7 +238,7 @@ pub fn closure_trait_ref_and_return_type<'tcx>(
238
238
sig. map_bound ( |sig| ( trait_ref, sig. output ( ) ) )
239
239
}
240
240
241
- pub fn coroutine_trait_ref_and_outputs < ' tcx > (
241
+ pub ( crate ) fn coroutine_trait_ref_and_outputs < ' tcx > (
242
242
tcx : TyCtxt < ' tcx > ,
243
243
fn_trait_def_id : DefId ,
244
244
self_ty : Ty < ' tcx > ,
@@ -249,7 +249,7 @@ pub fn coroutine_trait_ref_and_outputs<'tcx>(
249
249
( trait_ref, sig. yield_ty , sig. return_ty )
250
250
}
251
251
252
- pub fn future_trait_ref_and_outputs < ' tcx > (
252
+ pub ( crate ) fn future_trait_ref_and_outputs < ' tcx > (
253
253
tcx : TyCtxt < ' tcx > ,
254
254
fn_trait_def_id : DefId ,
255
255
self_ty : Ty < ' tcx > ,
@@ -260,7 +260,7 @@ pub fn future_trait_ref_and_outputs<'tcx>(
260
260
( trait_ref, sig. return_ty )
261
261
}
262
262
263
- pub fn iterator_trait_ref_and_outputs < ' tcx > (
263
+ pub ( crate ) fn iterator_trait_ref_and_outputs < ' tcx > (
264
264
tcx : TyCtxt < ' tcx > ,
265
265
iterator_def_id : DefId ,
266
266
self_ty : Ty < ' tcx > ,
@@ -271,7 +271,7 @@ pub fn iterator_trait_ref_and_outputs<'tcx>(
271
271
( trait_ref, sig. yield_ty )
272
272
}
273
273
274
- pub fn async_iterator_trait_ref_and_outputs < ' tcx > (
274
+ pub ( crate ) fn async_iterator_trait_ref_and_outputs < ' tcx > (
275
275
tcx : TyCtxt < ' tcx > ,
276
276
async_iterator_def_id : DefId ,
277
277
self_ty : Ty < ' tcx > ,
@@ -287,7 +287,7 @@ pub fn impl_item_is_final(tcx: TyCtxt<'_>, assoc_item: &ty::AssocItem) -> bool {
287
287
&& tcx. defaultness ( assoc_item. container_id ( tcx) ) . is_final ( )
288
288
}
289
289
290
- pub enum TupleArgumentsFlag {
290
+ pub ( crate ) enum TupleArgumentsFlag {
291
291
Yes ,
292
292
No ,
293
293
}
0 commit comments