Skip to content

Commit

Permalink
Auto merge of rust-lang#116437 - nnethercote:rustc_features, r=Nilstrieb
Browse files Browse the repository at this point in the history
Clean up `rustc_features`

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

r? `@Nilstrieb`
  • Loading branch information
bors committed Oct 7, 2023
2 parents 0ed398e + 010a9b1 commit 56400a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/manual_float_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56400a0

Please sign in to comment.