Skip to content

Commit

Permalink
Mark a function private that is unused anywhere else
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 15, 2019
1 parent 6906379 commit 1b93eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/const_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub(crate) fn eval_promoted<'a, 'mir, 'tcx>(
}

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

0 comments on commit 1b93eda

Please sign in to comment.