Skip to content

Commit 5ce2b02

Browse files
committed
don't mention tasks in stability warnings of #[thread_local] #47755
This is a fix for issue #47755.
1 parent 5669050 commit 5ce2b02

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
694694
("thread_local", Whitelisted, Gated(Stability::Unstable,
695695
"thread_local",
696696
"`#[thread_local]` is an experimental feature, and does \
697-
not currently handle destructors. There is no \
698-
corresponding `#[task_local]` mapping to the task \
699-
model",
697+
not currently handle destructors.",
700698
cfg_fn!(thread_local))),
701699

702700
("rustc_on_unimplemented", Normal, Gated(Stability::Unstable,

src/test/ui/feature-gate-thread_local.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
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)
1+
error[E0658]: `#[thread_local]` is an experimental feature, and does not currently handle destructors. (see issue #29594)
22
--> $DIR/feature-gate-thread_local.rs:18:1
33
|
44
18 | #[thread_local] //~ ERROR `#[thread_local]` is an experimental feature

0 commit comments

Comments
 (0)