Skip to content

Commit 30a39ac

Browse files
committed
Make IndexVec implement Send and Sync
1 parent aa6065b commit 30a39ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_data_structures/indexed_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ macro_rules! newtype_index {
327327
#[derive(Clone, PartialEq, Eq)]
328328
pub struct IndexVec<I: Idx, T> {
329329
pub raw: Vec<T>,
330-
_marker: PhantomData<Fn(&I)>
330+
_marker: PhantomData<fn(&I)>
331331
}
332332

333333
// Whether `IndexVec` is `Send` depends only on the data,

0 commit comments

Comments
 (0)