about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-07 19:11:17 +0000
committerbors <bors@rust-lang.org>2023-10-07 19:11:17 +0000
commit56400a065083038444e876c0cea071d2e61cd00e (patch)
tree523d139612ed78508017a07590e7d2bb672f42d2
parent0ed398eaa415eae32df10839077e39bece8bddf0 (diff)
parent010a9b1e6056970ad9b50618f485568f49cf962b (diff)
downloadrust-56400a065083038444e876c0cea071d2e61cd00e.tar.gz
rust-56400a065083038444e876c0cea071d2e61cd00e.zip
Auto merge of #116437 - nnethercote:rustc_features, r=Nilstrieb
Clean up `rustc_features`

Plenty more to be done, but this is a decent start.

r? `@Nilstrieb`
-rw-r--r--clippy_lints/src/manual_float_methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/manual_float_methods.rs b/clippy_lints/src/manual_float_methods.rs
index ed9189a1804..f0994695565 100644
--- a/clippy_lints/src/manual_float_methods.rs
+++ b/clippy_lints/src/manual_float_methods.rs
@@ -85,7 +85,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualFloatMethods {
         if !in_external_macro(cx.sess(), expr.span)
             && (
                 matches!(cx.tcx.constness(cx.tcx.hir().enclosing_body_owner(expr.hir_id)), Constness::NotConst)
-                    || cx.tcx.features().active(sym!(const_float_classify))
+                    || cx.tcx.features().declared(sym!(const_float_classify))
             ) && let ExprKind::Binary(kind, lhs, rhs) = expr.kind
             && let ExprKind::Binary(lhs_kind, lhs_lhs, lhs_rhs) = lhs.kind
             && let ExprKind::Binary(rhs_kind, rhs_lhs, rhs_rhs) = rhs.kind