-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Tracking Issue for generic NonZero #120257
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Feature gate:
#![feature(generic_nonzero)]This is a tracking issue for replacing the distinct
NonZero*types with a genericNonZero<T>type. This allows usingNonZerowith FFI type aliases instead of having weird type names likeNonZero_c_ulonglong.This replaces the following tracking issues:
NonZerotrait #95157Public API
Steps / History
NonZerotype. #100428NonZero<T>type alias. #119990NonZerotraits. #120160NonZeroalias direction. #120165SelfinNonZero*implementations. #120244NonZeroconstructors generic. #120521transmute_uncheckedinNonZero::new. #120809NonZero::getgeneric. #120563NonZerointernally. #120486NonZerotraits generically. #121241core::convert::num. #121277NonZeroeverywhere inlibrary. #121454NonZeroin tests. #121461ZeroablePrimitivetrait unsafe. #121850NonZerorustc_layout_scalar_valid_range_startattribute to inner type. #121885NonZero. #124230NonZeropost-stabilization changes. #124587Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩