We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203fd6d commit 1de273aCopy full SHA for 1de273a
compiler/rustc_const_eval/src/const_eval/fn_queries.rs
@@ -5,7 +5,7 @@ use rustc_middle::query::Providers;
5
use rustc_middle::ty::TyCtxt;
6
use rustc_span::sym;
7
8
-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 {
9
let parent_id = tcx.local_parent(def_id);
10
matches!(tcx.def_kind(parent_id), DefKind::Impl { .. })
11
&& tcx.constness(parent_id) == hir::Constness::Const
0 commit comments