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

Added compile time zero and power of two check #76

Closed
wants to merge 1 commit into from
Closed

Added compile time zero and power of two check #76

wants to merge 1 commit into from

Conversation

zimward
Copy link

@zimward zimward commented Mar 12, 2023

Implements #61
It's still a bit hacky but the compile message should be comprehensive enough that it's obvious whats wrong and removes a unnecessary possibility of panic!, which is especially nice for those of us who work on embedded systems where panic! messages are often unrecoverable.

The only real issue with it is that it breaks the tests for it. I will look into using compiletest_rs to fix this.

@jdonszelmann
Copy link
Collaborator

Closing in favor of #78

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.

2 participants