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

block-padding: add sanity assert #748

Merged
merged 2 commits into from
Mar 10, 2022
Merged

block-padding: add sanity assert #748

merged 2 commits into from
Mar 10, 2022

Conversation

newpavlov
Copy link
Member

This PR adds assert which prevents potential unsoundness in cases when the Padding trait is implemented incorrectly. For correct implementations compiler should be able to remove the panic branch.

@newpavlov newpavlov merged commit 72c538d into master Mar 10, 2022
@newpavlov newpavlov deleted the block-padding/sanity branch March 10, 2022 17:06
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.

None yet

1 participant