-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
[tracking issue] union field access inside const fn #51909
Copy link
Copy link
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)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-langRelevant to the language teamRelevant to the language team
Description
Activity
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)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-langRelevant to the language teamRelevant to the language team
unionfield accesses allow arbitrary transmutations insideconst fnand are thus marked asunstablefor now to allow us more time to think about the semantics of this without blocking the stabilization ofconst fnon it.This is behind the
const_fn_unionfeature gate.Blocked on rust-lang/const-eval#14.