Function clippy_utils::consts::constant_with_source
source · pub fn constant_with_source<'tcx>(
lcx: &LateContext<'tcx>,
typeck_results: &TypeckResults<'tcx>,
e: &Expr<'_>
) -> Option<(Constant<'tcx>, ConstantSource)>
Expand description
Attempts to evaluate the expression as a constant.