-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for const_convert #88674
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 RFCF-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`T-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.
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 RFCF-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`T-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(const_convert)]This is a tracking issue for constifying some conversions (see #87852 for numeric conversions). Among other things this enables using the
?-operator onOptionandResultin const contexts for trivial conversions. Note that this does not add any new implementations, it only constifies the existing ones.Simple example:
Public API
Constifies the following impls
Steps / History
impl const Trait for Tyand[const](conditionally const) syntax (const_trait_impl) #67792 and Tracking Issue fortry_trait_v2, A new design for the?desugaring (RFC#3058) #84277Unresolved Questions