Closed
Description
This is a tracking issue for the RFC "Add std::num::NonZeroU32 and friends, deprecate core::nonzero" (rust-lang/rfcs#2307).
Steps:
- Implement the RFC: Add 12 num::NonZero* types for primitive integers, deprecate core::nonzero #48265
- Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge) Stabilize num::NonZeroU* #50808
Unresolved questions:
- Should the signed types be included?
- Decide on naming --
NonZeroU32
orPositiveU32
? Should theU
be dropped? - Should the memory layout of e.g. Option be a language guarantee?
- Settle issues wrt. const generics before stabilization.
-- We should either end up with a generic type or with a clear explanation of why a generic type can't work or doesn't work well.
Metadata
Metadata
Assignees
Labels
Blocker: Approved by a merged RFC and implemented but not stabilized.Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the language teamRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.