Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96a7916

Browse files
committed
Update a f16/f128 FIXME to be more accurate
1 parent321eba5 commit96a7916

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎compiler/rustc_lint/src/types.rs‎

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp