Skip to content

Commit 3d0bf68

Browse files
committed
Make a helper private
1 parent 5a6036a commit 3d0bf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_const_eval/src/const_eval/fn_queries.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use rustc_hir::def_id::{DefId, LocalDefId};
44
use rustc_middle::query::Providers;
55
use rustc_middle::ty::TyCtxt;
66

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

0 commit comments

Comments
 (0)