-
Notifications
You must be signed in to change notification settings - Fork 735
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
Use BitLength
in constant expressions when const_fn
is stable
#346
Comments
I did some work on this on this branch. I created a new function |
I don't have a strong preference here. Generally I prefer the code to avoid |
I pushed a commit using |
IIRC, that function is marked |
Example before:
Example after:
This depends on rust-lang/rust#24111 since
as_usize_bytes()
and the constructors forBitLength
must be constant functions.The text was updated successfully, but these errors were encountered: