]> git.lizzy.rs Git - rust.git/commitdiff
Make IndexVec implement Send and Sync
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sun, 3 Dec 2017 13:22:23 +0000 (14:22 +0100)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Thu, 21 Dec 2017 18:21:40 +0000 (19:21 +0100)
src/librustc_data_structures/indexed_vec.rs

index 19528a1403828db66ebfec1a1f6bbe109d53dab0..753f12f400bf9bcced37faab8232e915695a2b74 100644 (file)
@@ -327,7 +327,7 @@ fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
 #[derive(Clone, PartialEq, Eq)]
 pub struct IndexVec<I: Idx, T> {
     pub raw: Vec<T>,
-    _marker: PhantomData<Fn(&I)>
+    _marker: PhantomData<fn(&I)>
 }
 
 // Whether `IndexVec` is `Send` depends only on the data,