about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-01-13 03:20:17 +0100
committerGitHub <noreply@github.com>2021-01-13 03:20:17 +0100
commite73ee1dde270cf1f7dc0e3f3eb3366c6fdc391c6 (patch)
tree052d3e06cf443d7c6928281c6c1bbcf9b3a0dc56 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent492cb3982520a995dcfc97b968e2b0489ae7a178 (diff)
parentdb4585aa3b1ee56e4722710d7665ee011fc11145 (diff)
downloadrust-e73ee1dde270cf1f7dc0e3f3eb3366c6fdc391c6.tar.gz
rust-e73ee1dde270cf1f7dc0e3f3eb3366c6fdc391c6.zip
Rollup merge of #80736 - KodrAus:feat/lazy-resolve, r=dtolnay
use Once instead of Mutex to manage capture resolution

For #78299

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.

We could alternatively share `&Mutex<Capture>`s and lock on-demand, but then we could potentially forget to call `resolve()` before working with the capture. It also makes it semantically clearer what synchronization is needed on the capture.

cc `@seanchen1991` `@rust-lang/project-error-handling`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions