Skip to content

The stability warning for #[thread_local] still mentions tasks #47755

Closed
@sfackler

Description

@sfackler
#[thread_local]
static mut FOO: () = ();

fn main() {}
error[E0658]: `#[thread_local]` is an experimental feature, and does not currently handle destructors. There is no corresponding `#[task_local]` mapping to the task model (see issue #29594)
 --> src/main.rs:1:1
  |
1 | #[thread_local]
  | ^^^^^^^^^^^^^^^
  |
  = help: add #![feature(thread_local)] to the crate attributes to enable

error: aborting due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions