We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ed398e + 010a9b1 commit 56400a0Copy full SHA for 56400a0
clippy_lints/src/manual_float_methods.rs
@@ -85,7 +85,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualFloatMethods {
85
if !in_external_macro(cx.sess(), expr.span)
86
&& (
87
matches!(cx.tcx.constness(cx.tcx.hir().enclosing_body_owner(expr.hir_id)), Constness::NotConst)
88
- || cx.tcx.features().active(sym!(const_float_classify))
+ || cx.tcx.features().declared(sym!(const_float_classify))
89
) && let ExprKind::Binary(kind, lhs, rhs) = expr.kind
90
&& let ExprKind::Binary(lhs_kind, lhs_lhs, lhs_rhs) = lhs.kind
91
&& let ExprKind::Binary(rhs_kind, rhs_lhs, rhs_rhs) = rhs.kind
0 commit comments