@@ -2339,6 +2339,11 @@ pub struct OccupiedEntry<'a, K: 'a, V: 'a> {
2339
2339
elem : FullBucket < K , V , & ' a mut RawTable < K , V > > ,
2340
2340
}
2341
2341
2342
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2343
+ unsafe impl < ' a , K : ' a + Send , V : ' a + Send > Send for OccupiedEntry < ' a , K , V > { }
2344
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2345
+ unsafe impl < ' a , K : ' a + Sync , V : ' a + Sync > Sync for OccupiedEntry < ' a , K , V > { }
2346
+
2342
2347
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2343
2348
impl < ' a , K : ' a + Debug , V : ' a + Debug > Debug for OccupiedEntry < ' a , K , V > {
2344
2349
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
@@ -2360,6 +2365,11 @@ pub struct VacantEntry<'a, K: 'a, V: 'a> {
2360
2365
elem : VacantEntryState < K , V , & ' a mut RawTable < K , V > > ,
2361
2366
}
2362
2367
2368
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2369
+ unsafe impl < ' a , K : ' a + Send , V : ' a + Send > Send for VacantEntry < ' a , K , V > { }
2370
+ #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2371
+ unsafe impl < ' a , K : ' a + Sync , V : ' a + Sync > Sync for VacantEntry < ' a , K , V > { }
2372
+
2363
2373
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2364
2374
impl < ' a , K : ' a + Debug , V : ' a > Debug for VacantEntry < ' a , K , V > {
2365
2375
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
0 commit comments