Skip to content

Commit 95a19d1

Browse files
committed
Update a f16/f128 FIXME to be more accurate
1 parent 321eba5 commit 95a19d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_lint/src/types.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ fn lint_literal<'tcx>(
563563
ty::Float(t) => {
564564
let is_infinite = match lit.node {
565565
ast::LitKind::Float(v, _) => match t {
566-
// FIXME(f16_f128): add this check once we have library support
566+
// FIXME(f16_f128): add this check once `is_infinite` is reliable (ABI
567+
// issues resolved).
567568
ty::FloatTy::F16 => Ok(false),
568569
ty::FloatTy::F32 => v.as_str().parse().map(f32::is_infinite),
569570
ty::FloatTy::F64 => v.as_str().parse().map(f64::is_infinite),

0 commit comments

Comments
 (0)