Skip to content

Commit 3b3e466

Browse files
Add FIXME as reminder to restore suggestion later
1 parent b71f2be commit 3b3e466

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_lint/src/types.rs

+1
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ fn lint_nan<'tcx>(
578578
r: &hir::Expr<'_>,
579579
f: impl FnOnce(Span, Span) -> InvalidNanComparisonsSuggestion,
580580
) -> InvalidNanComparisons {
581+
// FIXME(#72505): This suggestion can be restored if `f{32,64}::is_nan` is made const.
581582
let suggestion = (!cx.tcx.hir().is_inside_const_context(e.hir_id)).then(|| {
582583
if let Some(l_span) = l.span.find_ancestor_inside(e.span) &&
583584
let Some(r_span) = r.span.find_ancestor_inside(e.span)

0 commit comments

Comments
 (0)