File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ use crate::fmt;
2424/// [`with`]) within a thread, and values that implement [`Drop`] get
2525/// destructed when a thread exits. Some platform-specific caveats apply, which
2626/// are explained below.
27- /// Note that, should the destructor panics, the whole process will be [aborted].
27+ /// Note that, should the destructor panic, the whole process will be [aborted].
28+ /// On platforms where initialization requires memory allocation, this is
29+ /// performed directly through [`System`], allowing the [`global allocator`]
30+ /// to make use of thread local storage.
31+ ///
32+ /// [`System`]: crate::alloc::System
33+ /// [`global allocator`]: crate::alloc
2834///
2935/// A `LocalKey`'s initializer cannot recursively depend on itself. Using a
3036/// `LocalKey` in this way may cause panics, aborts or infinite recursion on
You can’t perform that action at this time.
0 commit comments