Skip to content

Commit

Permalink
Remove obsolete comment
Browse files Browse the repository at this point in the history
`is_integer_const()` does the const folding.
  • Loading branch information
samueltardieu committed Dec 17, 2024
1 parent 8ea395e commit 639f405
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clippy_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,6 @@ pub fn is_integer_const(cx: &LateContext<'_>, e: &Expr<'_>, value: u128) -> bool

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

0 comments on commit 639f405

Please sign in to comment.