-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify behavior of int->float and f64->f32 casts #607
Conversation
If we actually guarantee it, the guarantee should be approved by the lang team first. |
We can't ping the lang team here because this repo is part of the nursery and not of the rust-lang org. cc @Centril |
An issue should be made on rust-lang/rust, tagged with t-lang + description of what guarantee is sought, and then we can consider that. |
Finally got around to doing that: rust-lang/rust#62231 |
Updated with explicit mention of overflow behavior, better formatting, and the note about performance requested by @joshtriplett. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; just have a small nit.
(Force-pushed just to edit the commit message: accidentally self-referenced this PR instead of pointing at rust-lang/rust#62231) |
One minor typo; other than that, this looks ready to go. |
FCP completed in rust-lang/rust#62231 (comment). |
This documents the semantics proposed in rust-lang/rust#62231
Closes #570