diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2024-12-10 09:50:50 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2024-12-11 11:07:02 +0000 |
| commit | 3d0bf6862590808edffb10994a504c1018ba8501 (patch) | |
| tree | 1a2a12c53ea728f921ef9159b891bf4dfc6b325d | |
| parent | 5a6036a1802262f8cf02192b02026688d396f1d7 (diff) | |
| download | rust-3d0bf6862590808edffb10994a504c1018ba8501.tar.gz rust-3d0bf6862590808edffb10994a504c1018ba8501.zip | |
Make a helper private
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/fn_queries.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/fn_queries.rs b/compiler/rustc_const_eval/src/const_eval/fn_queries.rs index beff0cd99fc..72284c4254d 100644 --- a/compiler/rustc_const_eval/src/const_eval/fn_queries.rs +++ b/compiler/rustc_const_eval/src/const_eval/fn_queries.rs @@ -4,7 +4,7 @@ use rustc_hir::def_id::{DefId, LocalDefId}; use rustc_middle::query::Providers; use rustc_middle::ty::TyCtxt; -pub fn is_parent_const_impl_raw(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool { +fn is_parent_const_impl_raw(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool { let parent_id = tcx.local_parent(def_id); matches!(tcx.def_kind(parent_id), DefKind::Impl { .. }) && tcx.constness(parent_id) == hir::Constness::Const |
