We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This code:
use std::num::NonZeroI32; pub fn div(a: i16, b: NonZeroI32) -> (i32, i32) { let a = a as i32; let b = b.get(); (a / b, a % b) }
should have no possibility of panicking by "divide by zero", however, it seems related check and panicking code is still generated.
The text was updated successfully, but these errors were encountered:
It is a longstanding problem: #49572
Sorry, something went wrong.
Closing in favor of #49572
No branches or pull requests
This code:
should have no possibility of panicking by "divide by zero", however, it seems related check and panicking code is still generated.
The text was updated successfully, but these errors were encountered: