-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
#[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
kennytm
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Pulkit07 commentedon Jan 26, 2018
I will like to fix this. What should be the better warning message here? Or I just need to remove the last sentence?
sfackler commentedon Jan 26, 2018
don't mention tasks in stability warnings of #[thread_local] rust-lan…
Auto merge of #47800 - Pulkit07:issue47755, r=sfackler
Mark-Simulacrum commentedon Jan 28, 2018
Fixed by #47800.