diff options
| author | bors <bors@rust-lang.org> | 2023-10-07 19:11:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-07 19:11:17 +0000 |
| commit | cf21a0823b8a863fb3f1ed33d7d31bfd4881c2d3 (patch) | |
| tree | d77d554e776e63cebbb3c347fbc15e4309c38a1a /src | |
| parent | 598e29bf70074de5ce2701a867450591083c4ff1 (diff) | |
| parent | 81d1f7ea9d86490de2920d7b726db412c21de005 (diff) | |
| download | rust-cf21a0823b8a863fb3f1ed33d7d31bfd4881c2d3.tar.gz rust-cf21a0823b8a863fb3f1ed33d7d31bfd4881c2d3.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`
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/manual_float_methods.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/manual_float_methods.rs b/src/tools/clippy/clippy_lints/src/manual_float_methods.rs index ed9189a1804..f0994695565 100644 --- a/src/tools/clippy/clippy_lints/src/manual_float_methods.rs +++ b/src/tools/clippy/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 |
