Add warn(unreachable_pub)
to rustc_traits
.
This commit is contained in:
parent
0fb3a509cf
commit
c4f6f52139
@ -21,7 +21,7 @@
|
||||
/// 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> {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
// tidy-alphabetical-start
|
||||
#![recursion_limit = "256"]
|
||||
#![warn(unreachable_pub)]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
mod codegen;
|
||||
|
Loading…
Reference in New Issue
Block a user