diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-01-13 03:20:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-13 03:20:17 +0100 |
| commit | e73ee1dde270cf1f7dc0e3f3eb3366c6fdc391c6 (patch) | |
| tree | 052d3e06cf443d7c6928281c6c1bbcf9b3a0dc56 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 492cb3982520a995dcfc97b968e2b0489ae7a178 (diff) | |
| parent | db4585aa3b1ee56e4722710d7665ee011fc11145 (diff) | |
| download | rust-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
