clippy_utils::visitors

Function is_const_evaluatable

source
pub fn is_const_evaluatable<'tcx>(
    cx: &LateContext<'tcx>,
    e: &'tcx Expr<'_>,
) -> bool
Expand description

Checks if the given expression is a constant.