You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see this happen: There not to be any excess code or panics for a simple division.
Instead, this happened: In 1.69, there are no panics of any kind, and rustc simply generates the division as it should. In the current nightly, rustc generates a panic call. I go through a lot of care in this code to only use raw pointers and such to avoid overhead for debug mode performance, and yet this constant division still exists. There's also no unchecked_div, so I can't even use unsafe to get out of this.
I tried this code:
I expected to see this happen: There not to be any excess code or panics for a simple division.
Instead, this happened: In 1.69, there are no panics of any kind, and rustc simply generates the division as it should. In the current nightly, rustc generates a panic call. I go through a lot of care in this code to only use raw pointers and such to avoid overhead for debug mode performance, and yet this constant division still exists. There's also no
unchecked_div
, so I can't even use unsafe to get out of this.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: