From 3b3e466e36a74295bb66450d1858e3d7868d8a5d Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Sat, 5 Aug 2023 17:04:30 -0700 Subject: [PATCH] Add FIXME as reminder to restore suggestion later --- compiler/rustc_lint/src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs index 7ee515b4b72e6..3dd66d3637c9f 100644 --- a/compiler/rustc_lint/src/types.rs +++ b/compiler/rustc_lint/src/types.rs @@ -578,6 +578,7 @@ fn lint_nan<'tcx>( r: &hir::Expr<'_>, f: impl FnOnce(Span, Span) -> InvalidNanComparisonsSuggestion, ) -> InvalidNanComparisons { + // FIXME(#72505): This suggestion can be restored if `f{32,64}::is_nan` is made const. let suggestion = (!cx.tcx.hir().is_inside_const_context(e.hir_id)).then(|| { if let Some(l_span) = l.span.find_ancestor_inside(e.span) && let Some(r_span) = r.span.find_ancestor_inside(e.span)