clean up internal comments about float semantics

- remove an outdated FIXME
- add reference to floating-point semantics issue

Co-authored-by: Jubilee <workingjubilee@gmail.com>
This commit is contained in:
Ralf Jung 2024-08-31 22:28:17 +02:00 committed by Jubilee Young
parent 3daa9518d5
commit e556c136f3
4 changed files with 4 additions and 8 deletions

View file

@ -11,6 +11,7 @@ fn main() {
assert_ne!((n as f64) as f32, n as f32);
// FIXME: these assertions fail if only x87 is enabled
// see also https://github.com/rust-lang/rust/issues/114479
assert_eq!(n as i64 as f32, r);
assert_eq!(n as u64 as f32, r);
}