Skip to content

Commit 1b93eda

Browse files
committed
Mark a function private that is unused anywhere else
1 parent 6906379 commit 1b93eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub(crate) fn eval_promoted<'a, 'mir, 'tcx>(
6363
}
6464

6565
// FIXME: These two conversion functions are bad hacks. We should just always use allocations.
66-
pub fn op_to_const<'tcx>(
66+
fn op_to_const<'tcx>(
6767
ecx: &CompileTimeEvalContext<'_, '_, 'tcx>,
6868
op: OpTy<'tcx>,
6969
) -> EvalResult<'tcx, ty::Const<'tcx>> {

0 commit comments

Comments
 (0)