diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-30 15:23:49 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-09-03 08:49:54 +1000 |
| commit | c4f6f52139f6a708ad183ec2cb619429d2c5eaaa (patch) | |
| tree | cd1774c93ad15b1df03d29d6ff3476954409efca /compiler/rustc_traits/src/codegen.rs | |
| parent | 0fb3a509cf437610b4329003de5bc1552aa7e540 (diff) | |
| download | rust-c4f6f52139f6a708ad183ec2cb619429d2c5eaaa.tar.gz rust-c4f6f52139f6a708ad183ec2cb619429d2c5eaaa.zip | |
Add `warn(unreachable_pub)` to `rustc_traits`.
Diffstat (limited to 'compiler/rustc_traits/src/codegen.rs')
| -rw-r--r-- | compiler/rustc_traits/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/codegen.rs b/compiler/rustc_traits/src/codegen.rs index ada2c8e81de..11182198246 100644 --- a/compiler/rustc_traits/src/codegen.rs +++ b/compiler/rustc_traits/src/codegen.rs @@ -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> { |
