Skip to content

Commit 639f405

Browse files
committed
Remove obsolete comment
`is_integer_const()` does the const folding.
1 parent 8ea395e commit 639f405

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_utils/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,6 @@ pub fn is_integer_const(cx: &LateContext<'_>, e: &Expr<'_>, value: u128) -> bool
16291629

16301630
/// Checks whether the given expression is a constant literal of the given value.
16311631
pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> bool {
1632-
// FIXME: use constant folding
16331632
if let ExprKind::Lit(spanned) = expr.kind {
16341633
if let LitKind::Int(v, _) = spanned.node {
16351634
return v == value;

0 commit comments

Comments
 (0)