Function clippy_utils::consts::constant_simple

source ยท
pub fn constant_simple<'tcx>(
    lcx: &LateContext<'tcx>,
    typeck_results: &TypeckResults<'tcx>,
    e: &Expr<'_>,
) -> Option<Constant<'tcx>>
Expand description

Attempts to evaluate an expression only if its value is not dependent on other items.