-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
NonZero* type constructors should be const fn #58732
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
dhardy
changed the title
NonZero* type constructions should be const fn
NonZero* type constructors should be const fn
Feb 25, 2019
This depends on #49146. |
@rustbot modify labels: +A-const-fn. Testing the new bot! |
JohnTitor
added
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
labels
Jan 12, 2020
This has been fixed in 1.47. |
m-ou-se
added a commit
to fusion-engineering-forks/rust
that referenced
this issue
Sep 17, 2020
It was blocked by rust-lang#58732 (const fn NonZeroU32::new), which is fixed now.
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this issue
Oct 1, 2020
…ero, r=petrochenkov Fix 'FIXME' about using NonZeroU32 instead of u32. It was blocked by rust-lang#58732 (const fn NonZeroU32::new), which is fixed now.
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Oct 1, 2020
…ero, r=petrochenkov Fix 'FIXME' about using NonZeroU32 instead of u32. It was blocked by rust-lang#58732 (const fn NonZeroU32::new), which is fixed now.
RalfJung
added
the
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
label
Dec 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
E.g.
NonZeroU32::new_unchecked
is aconst fn
butNonZeroU32::new
is not; this means that defining constant values isunsafe
.The text was updated successfully, but these errors were encountered: