Add warn(unreachable_pub) to rustc_traits.

This commit is contained in:
Nicholas Nethercote
2024-08-30 15:23:49 +10:00
parent 0fb3a509cf
commit c4f6f52139
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ use tracing::debug;
/// obligations *could be* resolved if we wanted to.
///
/// This also expects that `trait_ref` is fully normalized.
pub fn codegen_select_candidate<'tcx>(
pub(crate) fn codegen_select_candidate<'tcx>(
tcx: TyCtxt<'tcx>,
(param_env, trait_ref): (ty::ParamEnv<'tcx>, ty::TraitRef<'tcx>),
) -> Result<&'tcx ImplSource<'tcx, ()>, CodegenObligationError> {