diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2024-12-17 23:47:37 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2024-12-18 00:37:41 +0100 |
| commit | 639f40568ef270e509dff2e07042f48671964413 (patch) | |
| tree | 1794e4c5b8e4db1624d00cc77b898c6983007c51 | |
| parent | 8ea395ed1485d36521a04c2f954567d7a06649e7 (diff) | |
| download | rust-639f40568ef270e509dff2e07042f48671964413.tar.gz rust-639f40568ef270e509dff2e07042f48671964413.zip | |
Remove obsolete comment
`is_integer_const()` does the const folding.
| -rw-r--r-- | clippy_utils/src/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs index d11f1a6c12f..65c695f04ad 100644 --- a/clippy_utils/src/lib.rs +++ b/clippy_utils/src/lib.rs @@ -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; |
