Skip to content

Commit 553a381

Browse files
authored
Remove obsolete comment (#13850)
`is_integer_const()` does the const folding. changelog: none
2 parents 609cd31 + 639f405 commit 553a381

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
@@ -1640,7 +1640,6 @@ pub fn is_integer_const(cx: &LateContext<'_>, e: &Expr<'_>, value: u128) -> bool
16401640

16411641
/// Checks whether the given expression is a constant literal of the given value.
16421642
pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> bool {
1643-
// FIXME: use constant folding
16441643
if let ExprKind::Lit(spanned) = expr.kind {
16451644
if let LitKind::Int(v, _) = spanned.node {
16461645
return v == value;

0 commit comments

Comments
 (0)