diff --git a/src/libcore/task/local_data.rs b/src/libcore/task/local_data.rs index eefdb9eceee7b7cd81fc51d635201c05dca35b31..f8a2b638f9862b0eb48d597d095a98e77e7f105d 100644 --- a/src/libcore/task/local_data.rs +++ b/src/libcore/task/local_data.rs @@ -2,15 +2,17 @@ Task local data management -Allows storing boxes with arbitrary types inside, to be accessed anywhere -within a task, keyed by a pointer to a global finaliser function. Useful -for task-spawning metadata (tracking linked failure state), dynamic -variables, and interfacing with foreign code with bad callback interfaces. +Allows storing boxes with arbitrary types inside, to be accessed +anywhere within a task, keyed by a pointer to a global finaliser +function. Useful for dynamic variables, singletons, and interfacing +with foreign code with bad callback interfaces. -To use, declare a monomorphic global function at the type to store, and use -it as the 'key' when accessing. See the 'tls' tests below for examples. +To use, declare a monomorphic global function at the type to store, +and use it as the 'key' when accessing. See the 'tls' tests below for +examples. -Casting 'Arcane Sight' reveals an overwhelming aura of Transmutation magic. +Casting 'Arcane Sight' reveals an overwhelming aura of Transmutation +magic. */ diff --git a/src/libcore/task/local_data_priv.rs b/src/libcore/task/local_data_priv.rs index 640ea3577b33da50bdaac579acc798cafc6451ef..e2d697f2e8972916ad4d2e187174df8c8450a74b 100644 --- a/src/libcore/task/local_data_priv.rs +++ b/src/libcore/task/local_data_priv.rs @@ -1,3 +1,5 @@ +#[doc(hidden)]; // FIXME #3538 + use local_data::LocalDataKey; trait LocalData { }