mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-02 17:40:13 +00:00
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`
This commit is contained in:
commit
56400a0650
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualFloatMethods {
|
||||||
if !in_external_macro(cx.sess(), expr.span)
|
if !in_external_macro(cx.sess(), expr.span)
|
||||||
&& (
|
&& (
|
||||||
matches!(cx.tcx.constness(cx.tcx.hir().enclosing_body_owner(expr.hir_id)), Constness::NotConst)
|
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(kind, lhs, rhs) = expr.kind
|
||||||
&& let ExprKind::Binary(lhs_kind, lhs_lhs, lhs_rhs) = lhs.kind
|
&& let ExprKind::Binary(lhs_kind, lhs_lhs, lhs_rhs) = lhs.kind
|
||||||
&& let ExprKind::Binary(rhs_kind, rhs_lhs, rhs_rhs) = rhs.kind
|
&& let ExprKind::Binary(rhs_kind, rhs_lhs, rhs_rhs) = rhs.kind
|
||||||
|
|
Loading…
Reference in a new issue