File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,7 @@ impl f32 {
403
403
/// and the stability of its representation over Rust versions
404
404
/// and target platforms isn't guaranteed.
405
405
#[ stable( feature = "assoc_int_consts" , since = "1.43.0" ) ]
406
+ #[ rustc_diagnostic_item = "f32_nan" ]
406
407
pub const NAN : f32 = 0.0_f32 / 0.0_f32 ;
407
408
/// Infinity (∞).
408
409
#[ stable( feature = "assoc_int_consts" , since = "1.43.0" ) ]
Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ impl f64 {
401
401
/// This constant isn't guaranteed to equal to any specific NaN bitpattern,
402
402
/// and the stability of its representation over Rust versions
403
403
/// and target platforms isn't guaranteed.
404
+ #[ rustc_diagnostic_item = "f64_nan" ]
404
405
#[ stable( feature = "assoc_int_consts" , since = "1.43.0" ) ]
405
406
pub const NAN : f64 = 0.0_f64 / 0.0_f64 ;
406
407
/// Infinity (∞).
You can’t perform that action at this time.
0 commit comments