@@ -34,7 +34,7 @@ use std::iter;
34
34
/// - `impl_m_span`: span to use for reporting errors
35
35
/// - `trait_m`: the method in the trait
36
36
/// - `impl_trait_ref`: the TraitRef corresponding to the trait implementation
37
- pub ( crate ) fn compare_impl_method < ' tcx > (
37
+ pub ( super ) fn compare_impl_method < ' tcx > (
38
38
tcx : TyCtxt < ' tcx > ,
39
39
impl_m : & ty:: AssocItem ,
40
40
trait_m : & ty:: AssocItem ,
@@ -442,7 +442,7 @@ fn compare_asyncness<'tcx>(
442
442
}
443
443
444
444
#[ instrument( skip( tcx) , level = "debug" , ret) ]
445
- pub fn collect_trait_impl_trait_tys < ' tcx > (
445
+ pub ( super ) fn collect_trait_impl_trait_tys < ' tcx > (
446
446
tcx : TyCtxt < ' tcx > ,
447
447
def_id : DefId ,
448
448
) -> Result < & ' tcx FxHashMap < DefId , Ty < ' tcx > > , ErrorGuaranteed > {
@@ -1517,7 +1517,7 @@ fn compare_generic_param_kinds<'tcx>(
1517
1517
}
1518
1518
1519
1519
/// Use `tcx.compare_impl_const` instead
1520
- pub ( crate ) fn compare_impl_const_raw (
1520
+ pub ( super ) fn compare_impl_const_raw (
1521
1521
tcx : TyCtxt < ' _ > ,
1522
1522
( impl_const_item_def, trait_const_item_def) : ( LocalDefId , DefId ) ,
1523
1523
) -> Result < ( ) , ErrorGuaranteed > {
@@ -1623,7 +1623,7 @@ pub(crate) fn compare_impl_const_raw(
1623
1623
Ok ( ( ) )
1624
1624
}
1625
1625
1626
- pub ( crate ) fn compare_impl_ty < ' tcx > (
1626
+ pub ( super ) fn compare_impl_ty < ' tcx > (
1627
1627
tcx : TyCtxt < ' tcx > ,
1628
1628
impl_ty : & ty:: AssocItem ,
1629
1629
impl_ty_span : Span ,
@@ -1749,7 +1749,7 @@ fn compare_type_predicate_entailment<'tcx>(
1749
1749
/// from the impl could be overridden). We also can't normalize generic
1750
1750
/// associated types (yet) because they contain bound parameters.
1751
1751
#[ instrument( level = "debug" , skip( tcx) ) ]
1752
- pub fn check_type_bounds < ' tcx > (
1752
+ pub ( super ) fn check_type_bounds < ' tcx > (
1753
1753
tcx : TyCtxt < ' tcx > ,
1754
1754
trait_ty : & ty:: AssocItem ,
1755
1755
impl_ty : & ty:: AssocItem ,
0 commit comments