diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-02-21 08:37:10 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-02-21 08:38:24 +0000 |
| commit | decfb4d123651a0673db47542e18ca60d1c501ac (patch) | |
| tree | cdfb83b31154c07755eaf21b97fa51ddfe01e64f /compiler/rustc_data_structures/src/sync.rs | |
| parent | a04e78730e501de7147ba8c09372348529b00c17 (diff) | |
| download | rust-decfb4d123651a0673db47542e18ca60d1c501ac.tar.gz rust-decfb4d123651a0673db47542e18ca60d1c501ac.zip | |
Use a lock-free datastructure for `source_span`
Diffstat (limited to 'compiler/rustc_data_structures/src/sync.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index ad71dcdf9d9..31323c21df0 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -26,6 +26,10 @@ use std::panic::{catch_unwind, resume_unwind, AssertUnwindSafe}; pub use std::sync::atomic::Ordering; pub use std::sync::atomic::Ordering::SeqCst; +pub use vec::AppendOnlyVec; + +mod vec; + cfg_if! { if #[cfg(not(parallel_compiler))] { pub auto trait Send {} |
