about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/sync.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-08-31 09:16:33 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2023-09-02 08:13:03 +0200
commit0c96a9260b75b97e5ce87d77b68d222ae4a3d988 (patch)
tree495e16dbf8c082399acf24de9efcbc83a06e65cb /compiler/rustc_data_structures/src/sync.rs
parent9dc11a13fa848c1b09b7248c540528190dcb79c5 (diff)
downloadrust-0c96a9260b75b97e5ce87d77b68d222ae4a3d988.tar.gz
rust-0c96a9260b75b97e5ce87d77b68d222ae4a3d988.zip
Add `Freeze` type and use it to store `Definitions`
Diffstat (limited to 'compiler/rustc_data_structures/src/sync.rs')
-rw-r--r--compiler/rustc_data_structures/src/sync.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs
index e82b0f6d496..a8f42e0ed0e 100644
--- a/compiler/rustc_data_structures/src/sync.rs
+++ b/compiler/rustc_data_structures/src/sync.rs
@@ -61,6 +61,9 @@ pub use vec::{AppendOnlyIndexVec, AppendOnlyVec};
 
 mod vec;
 
+mod freeze;
+pub use freeze::{Freeze, FreezeReadGuard, FreezeWriteGuard};
+
 mod mode {
     use super::Ordering;
     use std::sync::atomic::AtomicU8;