Skip to content

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

@sfackler

Description

@sfackler
Member
#[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

Activity

added
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.
A-diagnosticsArea: Messages for errors, warnings, and lints
on Jan 25, 2018
Pulkit07

Pulkit07 commented on Jan 26, 2018

@Pulkit07
Contributor

I will like to fix this. What should be the better warning message here? Or I just need to remove the last sentence?

sfackler

sfackler commented on Jan 26, 2018

@sfackler
MemberAuthor
added a commit that references this issue on Jan 28, 2018
Mark-Simulacrum

Mark-Simulacrum commented on Jan 28, 2018

@Mark-Simulacrum
Member

Fixed by #47800.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @kennytm@sfackler@Mark-Simulacrum@Pulkit07

        Issue actions

          The stability warning for #[thread_local] still mentions tasks · Issue #47755 · rust-lang/rust