mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-05 03:23:25 +00:00
Make IndexVec implement Send and Sync
This commit is contained in:
parent
aa6065bd70
commit
30a39ac5ce
@ -327,7 +327,7 @@ macro_rules! newtype_index {
|
|||||||
#[derive(Clone, PartialEq, Eq)]
|
#[derive(Clone, PartialEq, Eq)]
|
||||||
pub struct IndexVec<I: Idx, T> {
|
pub struct IndexVec<I: Idx, T> {
|
||||||
pub raw: Vec<T>,
|
pub raw: Vec<T>,
|
||||||
_marker: PhantomData<Fn(&I)>
|
_marker: PhantomData<fn(&I)>
|
||||||
}
|
}
|
||||||
|
|
||||||
// Whether `IndexVec` is `Send` depends only on the data,
|
// Whether `IndexVec` is `Send` depends only on the data,
|
||||||
|
Loading…
Reference in New Issue
Block a user