Skip to content
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

Have Div and Rem impls always take NonZero args #39

Merged
merged 1 commit into from
Nov 14, 2021

Conversation

tarcieri
Copy link
Member

This prevents a potential panic condition if the rhs operand is zero by making it unrepresentable using the type system.

This prevents a potential panic condition if the `rhs` operand is zero
by making it unrepresentable using the type system.
@tarcieri tarcieri requested a review from mikelodder7 November 13, 2021 23:52
@tarcieri tarcieri merged commit 2051a63 into master Nov 14, 2021
@tarcieri tarcieri deleted the div-rem-nonzero-operand branch November 14, 2021 00:12
@tarcieri tarcieri mentioned this pull request Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant