Function clippy_utils::consts::constant_context
source · pub fn constant_context<'a, 'tcx>(
lcx: &'a LateContext<'tcx>,
typeck_results: &'a TypeckResults<'tcx>
) -> ConstEvalLateContext<'a, 'tcx>
Expand description
Creates a ConstEvalLateContext
from the given LateContext
and TypeckResults
.