We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321eba5 commit 95a19d1Copy full SHA for 95a19d1
compiler/rustc_lint/src/types.rs
@@ -563,7 +563,8 @@ fn lint_literal<'tcx>(
563
ty::Float(t) => {
564
let is_infinite = match lit.node {
565
ast::LitKind::Float(v, _) => match t {
566
- // FIXME(f16_f128): add this check once we have library support
+ // FIXME(f16_f128): add this check once `is_infinite` is reliable (ABI
567
+ // issues resolved).
568
ty::FloatTy::F16 => Ok(false),
569
ty::FloatTy::F32 => v.as_str().parse().map(f32::is_infinite),
570
ty::FloatTy::F64 => v.as_str().parse().map(f64::is_infinite),
0 commit comments