diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-05 17:04:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-05 17:04:30 -0700 |
| commit | 3b3e466e36a74295bb66450d1858e3d7868d8a5d (patch) | |
| tree | 4da7bcec784f19899e73af0e866cc1f4e4bca816 | |
| parent | b71f2becb293ccab09d75220bb168871cae88ee5 (diff) | |
| download | rust-3b3e466e36a74295bb66450d1858e3d7868d8a5d.tar.gz rust-3b3e466e36a74295bb66450d1858e3d7868d8a5d.zip | |
Add FIXME as reminder to restore suggestion later
| -rw-r--r-- | compiler/rustc_lint/src/types.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs index 7ee515b4b72..3dd66d3637c 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) |
