-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the RFC.Relevant to the compiler team, which will review and decide on the RFC.T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
There should be a way to create consts, statics and static muts which are partially or fully uninitialized or zeroed.
One way to do this could be to create built-in unsafe generic constants ZEROED and UNDEF.
@eddyb suggested to make the existing intrinsics usable in statics
A crude solution could be to allow the initializer in a static mut to be left out, which should cause zeroing all it's memory.
bergus and mjbshaw
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the RFC.Relevant to the compiler team, which will review and decide on the RFC.T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.