Function clippy_utils::is_integer_const
source ยท pub fn is_integer_const(cx: &LateContext<'_>, e: &Expr<'_>, value: u128) -> bool
Expand description
Checks whether the given expression is a constant integer of the given value.
unlike is_integer_literal
, this version does const folding