Skip to content

'unsafe const fn' support #1207

@thepowersgang

Description

@thepowersgang

It was noted in RFC 911 that unsafe const fn was an unresolved question.

Along with #913, adding support for unsafe const functions will allow constructing empty collections in statics (most likely wrapped with a mutex or similar). At the moment, this isn't possible as Unique's constructor is unsafe, and hence cannot be const (the compiler rejects such a definition)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions