static INVALID_NAN_COMPARISONS: &Lint
The invalid_nan_comparisons lint checks comparison with f32::NAN or f64::NAN as one of the operand.
invalid_nan_comparisons
f32::NAN
f64::NAN
let a = 2.3f32; if a == f32::NAN {}
{{produces}}
NaN does not compare meaningfully to anything – not even itself – so those comparisons are always false.