Closed
Description
This is a tracking issue for the RFC "Allow if
and match
in constants" (rust-lang/rfcs#2342).
Please redirect constification of specific functions or issues you want to report to fresh issues and label them appropriately with F-const_if_match
so that this issues doesn't get flooded with ephemeral comments obscuring important developments.
Steps:
- Implement the RFC
- Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge): Stabilize
#![feature(const_if_match)]
and#![feature(const_loop)]
#72437 -
let
bindings in constants that use&&
and||
short circuiting operations. These are treated as&
and|
insideconst
andstatic
items right now.
Unresolved questions:
None
Metadata
Metadata
Assignees
Labels
Area: Constant evaluation, covers all const contexts (static, const fn, ...)Blocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the language 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.