Skip to content

Remove the Sync requirement for #[thread_local] statics. #35035

Closed
@ticki

Description

@ticki

This restriction can be very bothersome, and has no real purpose. thread_locals always belongs to a single thread, thus interior mutability won't cause data races.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions