Skip to content

Commit 771873c

Browse files
committed
Auto merge of #47800 - Pulkit07:issue47755, r=sfackler
don't mention tasks in stability warnings of #[thread_local] #47755 This is a fix for issue #47755.
2 parents 5e7fd65 + 5ce2b02 commit 771873c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/libsyntax/feature_gate.rs

+1-3
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

+1-1
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)