Skip to content

Commit 5397b39

Browse files
committed
compiler/rustc_data_structures/src/sync/vec.rs: convert AppendOnlyVec to our RwLock
1 parent cba7019 commit 5397b39

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_data_structures/src/sync

1 file changed

+3
-1
lines changed

compiler/rustc_data_structures/src/sync/vec.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use std::marker::PhantomData;
22

33
use rustc_index::Idx;
44

5+
use crate::sync::RwLock;
6+
57
#[derive(Default)]
68
pub struct AppendOnlyIndexVec<I: Idx, T: Copy> {
79
vec: elsa::sync::LockFreeFrozenVec<T>,
@@ -26,7 +28,7 @@ impl<I: Idx, T: Copy> AppendOnlyIndexVec<I, T> {
2628

2729
#[derive(Default)]
2830
pub struct AppendOnlyVec<T: Copy> {
29-
vec: parking_lot::RwLock<Vec<T>>,
31+
vec: RwLock<Vec<T>>,
3032
}
3133

3234
impl<T: Copy> AppendOnlyVec<T> {

0 commit comments

Comments
 (0)