about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-07-08 18:04:01 -0400
committerTrevor Gross <tmgross@umich.edu>2024-07-08 18:55:26 -0400
commit96a791662aa30320fa05c84535667d1ed58e42da (patch)
treee1c109cc6969d569a445431a96ad983d29e3a747
parent321eba5e8fb56d7823b7feb0986528a7488eb10c (diff)
downloadrust-96a791662aa30320fa05c84535667d1ed58e42da.tar.gz
rust-96a791662aa30320fa05c84535667d1ed58e42da.zip
Update a f16/f128 FIXME to be more accurate
-rw-r--r--compiler/rustc_lint/src/types.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/types.rs b/compiler/rustc_lint/src/types.rs
index f3a904022e9..c0364b35716 100644
--- a/compiler/rustc_lint/src/types.rs
+++ b/compiler/rustc_lint/src/types.rs
@@ -563,7 +563,8 @@ fn lint_literal<'tcx>(
         ty::Float(t) => {
             let is_infinite = match lit.node {
                 ast::LitKind::Float(v, _) => match t {
-                    // FIXME(f16_f128): add this check once we have library support
+                    // FIXME(f16_f128): add this check once `is_infinite` is reliable (ABI
+                    // issues resolved).
                     ty::FloatTy::F16 => Ok(false),
                     ty::FloatTy::F32 => v.as_str().parse().map(f32::is_infinite),
                     ty::FloatTy::F64 => v.as_str().parse().map(f64::is_infinite),