Skip to content

Commit 1de273a

Browse files
committed
Make a helper private
1 parent 203fd6d commit 1de273a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/const_eval/fn_queries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_middle::query::Providers;
55
use rustc_middle::ty::TyCtxt;
66
use rustc_span::sym;
77

8-
pub fn is_parent_const_impl_raw(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
8+
fn is_parent_const_impl_raw(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
99
let parent_id = tcx.local_parent(def_id);
1010
matches!(tcx.def_kind(parent_id), DefKind::Impl { .. })
1111
&& tcx.constness(parent_id) == hir::Constness::Const

0 commit comments

Comments
 (0)