@@ -15,7 +15,6 @@ use rustc_infer::infer::{self, InferCtxt, SubregionOrigin, TyCtxtInferExt};
1515use rustc_lint_defs:: builtin:: SUPERTRAIT_ITEM_SHADOWING_DEFINITION ;
1616use rustc_macros:: LintDiagnostic ;
1717use rustc_middle:: mir:: interpret:: ErrorHandled ;
18- use rustc_middle:: query:: Providers ;
1918use rustc_middle:: traits:: solve:: NoSolution ;
2019use rustc_middle:: ty:: trait_def:: TraitSpecializationKind ;
2120use rustc_middle:: ty:: {
@@ -189,7 +188,10 @@ where
189188 }
190189}
191190
192- fn check_well_formed ( tcx : TyCtxt < ' _ > , def_id : LocalDefId ) -> Result < ( ) , ErrorGuaranteed > {
191+ pub ( super ) fn check_well_formed (
192+ tcx : TyCtxt < ' _ > ,
193+ def_id : LocalDefId ,
194+ ) -> Result < ( ) , ErrorGuaranteed > {
193195 let mut res = crate :: check:: check:: check_item_type ( tcx, def_id) ;
194196
195197 for param in & tcx. generics_of ( def_id) . own_params {
@@ -2249,7 +2251,7 @@ impl<'tcx> WfCheckingCtxt<'_, 'tcx> {
22492251 }
22502252}
22512253
2252- fn check_type_wf ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) -> Result < ( ) , ErrorGuaranteed > {
2254+ pub ( super ) fn check_type_wf ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) -> Result < ( ) , ErrorGuaranteed > {
22532255 let items = tcx. hir_crate_items ( ( ) ) ;
22542256 let res = items
22552257 . par_items ( |item| tcx. ensure_ok ( ) . check_well_formed ( item. owner_id . def_id ) )
@@ -2397,7 +2399,3 @@ struct RedundantLifetimeArgsLint<'tcx> {
23972399 // The lifetime we can replace the victim with.
23982400 candidate : ty:: Region < ' tcx > ,
23992401}
2400-
2401- pub fn provide ( providers : & mut Providers ) {
2402- * providers = Providers { check_type_wf, check_well_formed, ..* providers } ;
2403- }
0 commit comments