Skip to content

Commit fdbc6bc

Browse files
committed
---
yaml --- r: 32702 b: refs/heads/dist-snap c: 591c152 h: refs/heads/master v: v3
1 parent 4c103a0 commit fdbc6bc

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: f996b3ae8169d699362622e4530d014659628108
10+
refs/heads/dist-snap: 591c152dfc07bc43b132f6ec0f24f2d5e8e06620
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libcore/task/local_data.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
33
Task local data management
44
5-
Allows storing boxes with arbitrary types inside, to be accessed anywhere
6-
within a task, keyed by a pointer to a global finaliser function. Useful
7-
for task-spawning metadata (tracking linked failure state), dynamic
8-
variables, and interfacing with foreign code with bad callback interfaces.
5+
Allows storing boxes with arbitrary types inside, to be accessed
6+
anywhere within a task, keyed by a pointer to a global finaliser
7+
function. Useful for dynamic variables, singletons, and interfacing
8+
with foreign code with bad callback interfaces.
99
10-
To use, declare a monomorphic global function at the type to store, and use
11-
it as the 'key' when accessing. See the 'tls' tests below for examples.
10+
To use, declare a monomorphic global function at the type to store,
11+
and use it as the 'key' when accessing. See the 'tls' tests below for
12+
examples.
1213
13-
Casting 'Arcane Sight' reveals an overwhelming aura of Transmutation magic.
14+
Casting 'Arcane Sight' reveals an overwhelming aura of Transmutation
15+
magic.
1416
1517
*/
1618

branches/dist-snap/src/libcore/task/local_data_priv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[doc(hidden)]; // FIXME #3538
2+
13
use local_data::LocalDataKey;
24

35
trait LocalData { }

0 commit comments

Comments
 (0)