diff options
| author | bors <bors@rust-lang.org> | 2023-09-06 11:48:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-06 11:48:43 +0000 |
| commit | a0c28cd9dc99d9acb015d06f6b27c640adad3550 (patch) | |
| tree | 7f14712e544c12f675593481f6f05e421a3ec2fa /compiler/rustc_parse_format/src/lib.rs | |
| parent | c1d80ba9e28a9248158ab09fe593b0724647e642 (diff) | |
| parent | 35e8b67fc2a48dc77245e805f3976acd51d45474 (diff) | |
| download | rust-a0c28cd9dc99d9acb015d06f6b27c640adad3550.tar.gz rust-a0c28cd9dc99d9acb015d06f6b27c640adad3550.zip | |
Auto merge of #115401 - Zoxc:freeze, r=oli-obk
Add `FreezeLock` type and use it to store `Definitions` This adds a `FreezeLock` type which allows mutation using a lock until the value is frozen where it can be accessed lock-free. It's used to store `Definitions` in `Untracked` instead of a `RwLock`. Unlike the current scheme of leaking read guards this doesn't deadlock if definitions is written to after no mutation are expected.
Diffstat (limited to 'compiler/rustc_parse_format/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
