Skip to content

Commit 56400a0

Browse files
committed
Auto merge of rust-lang#116437 - nnethercote:rustc_features, r=Nilstrieb
Clean up `rustc_features` Plenty more to be done, but this is a decent start. r? `@Nilstrieb`
2 parents 0ed398e + 010a9b1 commit 56400a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/manual_float_methods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualFloatMethods {
8585
if !in_external_macro(cx.sess(), expr.span)
8686
&& (
8787
matches!(cx.tcx.constness(cx.tcx.hir().enclosing_body_owner(expr.hir_id)), Constness::NotConst)
88-
|| cx.tcx.features().active(sym!(const_float_classify))
88+
|| cx.tcx.features().declared(sym!(const_float_classify))
8989
) && let ExprKind::Binary(kind, lhs, rhs) = expr.kind
9090
&& let ExprKind::Binary(lhs_kind, lhs_lhs, lhs_rhs) = lhs.kind
9191
&& let ExprKind::Binary(rhs_kind, rhs_lhs, rhs_rhs) = rhs.kind

0 commit comments

Comments
 (0)