about summary refs log tree commit diff
path: root/library/std/src/primitive_docs.rs
diff options
context:
space:
mode:
authorAshley Mannix <kodraus@hey.com>2021-01-06 10:04:05 +1000
committerAshley Mannix <kodraus@hey.com>2021-01-06 10:44:06 +1000
commitdb4585aa3b1ee56e4722710d7665ee011fc11145 (patch)
treedf39527b19724778422dc575ad70595068efc2e7 /library/std/src/primitive_docs.rs
parentda305a2b00530aa34dea4e48389204c26fa35dbb (diff)
downloadrust-db4585aa3b1ee56e4722710d7665ee011fc11145.tar.gz
rust-db4585aa3b1ee56e4722710d7665ee011fc11145.zip
use Once instead of Mutex to manage capture resolution
This allows us to return borrows of the captured backtrace frames
that are tied to a borrow of the Backtrace itself, instead of to
some short-lived Mutex guard.

It also makes it semantically clearer what synchronization is needed
on the capture.
Diffstat (limited to 'library/std/src/primitive_docs.rs')
0 files changed, 0 insertions, 0 deletions