We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a6036a commit 3d0bf68Copy full SHA for 3d0bf68
compiler/rustc_const_eval/src/const_eval/fn_queries.rs
@@ -4,7 +4,7 @@ use rustc_hir::def_id::{DefId, LocalDefId};
4
use rustc_middle::query::Providers;
5
use rustc_middle::ty::TyCtxt;
6
7
-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 {
8
let parent_id = tcx.local_parent(def_id);
9
matches!(tcx.def_kind(parent_id), DefKind::Impl { .. })
10
&& tcx.constness(parent_id) == hir::Constness::Const
0 commit comments