diff options
| author | Trevor Gross <tmgross@umich.edu> | 2024-07-08 18:04:01 -0400 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2024-07-08 18:55:26 -0400 |
| commit | 96a791662aa30320fa05c84535667d1ed58e42da (patch) | |
| tree | e1c109cc6969d569a445431a96ad983d29e3a747 | |
| parent | 321eba5e8fb56d7823b7feb0986528a7488eb10c (diff) | |
| download | rust-96a791662aa30320fa05c84535667d1ed58e42da.tar.gz rust-96a791662aa30320fa05c84535667d1ed58e42da.zip | |
Update a f16/f128 FIXME to be more accurate
| -rw-r--r-- | compiler/rustc_lint/src/types.rs | 3 |
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), |
