-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Error on casting floats to integers #71393
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
Error on casting floats to integers #71393
Conversation
c8787ad
to
d5cf163
Compare
This is intended for a crater run to know the total (worst case) extent of slowdowns introduced by changing the behavior here.
d5cf163
to
f7ceb1a
Compare
@bors try cc #71269 I hope that this code is mostly correct. I suspect that today the vast majority of cases are not invoking UB (due to not encountering infinities or NaN) even if they're not necessarily sound (invoke UB if passed wrong inputs). But, regardless, a crater run banning these casts entirely will give us some insight into just how common such casts are. We need the RUSTC_BOOTSTRAP conditional to skip checking core (which has some of these casts in the duration code). |
⌛ Trying commit f7ceb1a with merge e4dba30b9b475d8750370c4dfb49b6541990904d... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☀️ Try build successful - checks-azure |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
I expect this to be very fast, and we'd like the results quickly to give more time to inform the ecosystem so let's @craterbot name=pr-71393 p=7 |
@craterbot name=pr-71393 p=7 |
📝 Configuration of the ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
This is intended for a crater run to know the total (worst case) extent of
slowdowns introduced by changing the behavior here.
r? @ghost