@@ -162,7 +162,6 @@ struct MutexArcInner<T> { lock: Mutex, failed: bool, data: T }
162
162
/// An Arc with mutable data protected by a blocking mutex.
163
163
pub struct MutexArc < T > {
164
164
priv x: UnsafeArc < MutexArcInner < T > > ,
165
- priv marker : marker:: NoFreeze ,
166
165
}
167
166
168
167
impl < T : Send > Clone for MutexArc < T > {
@@ -171,8 +170,7 @@ impl<T:Send> Clone for MutexArc<T> {
171
170
fn clone ( & self ) -> MutexArc < T > {
172
171
// NB: Cloning the underlying mutex is not necessary. Its reference
173
172
// count would be exactly the same as the shared state's.
174
- MutexArc { x : self . x . clone ( ) ,
175
- marker : marker:: NoFreeze , }
173
+ MutexArc { x : self . x . clone ( ) }
176
174
}
177
175
}
178
176
@@ -191,8 +189,7 @@ impl<T:Send> MutexArc<T> {
191
189
lock : Mutex :: new_with_condvars ( num_condvars) ,
192
190
failed : false , data : user_data
193
191
} ;
194
- MutexArc { x : UnsafeArc :: new ( data) ,
195
- marker : marker:: NoFreeze , }
192
+ MutexArc { x : UnsafeArc :: new ( data) }
196
193
}
197
194
198
195
/**
@@ -297,17 +294,17 @@ struct RWArcInner<T> { lock: RWLock, failed: bool, data: T }
297
294
*/
298
295
pub struct RWArc < T > {
299
296
priv x: UnsafeArc < RWArcInner < T > > ,
300
- priv marker : marker:: NoFreeze ,
301
- priv marker1 : marker:: NoShare ,
297
+ priv marker : marker:: NoShare ,
302
298
}
303
299
304
300
impl < T : Share + Send > Clone for RWArc < T > {
305
301
/// Duplicate a rwlock-protected Arc. See arc::clone for more details.
306
302
#[ inline]
307
303
fn clone ( & self ) -> RWArc < T > {
308
- RWArc { x : self . x . clone ( ) ,
309
- marker : marker:: NoFreeze ,
310
- marker1 : marker:: NoShare , }
304
+ RWArc {
305
+ x : self . x . clone ( ) ,
306
+ marker : marker:: NoShare
307
+ }
311
308
}
312
309
313
310
}
@@ -327,9 +324,10 @@ impl<T: Share + Send> RWArc<T> {
327
324
lock : RWLock :: new_with_condvars ( num_condvars) ,
328
325
failed : false , data : user_data
329
326
} ;
330
- RWArc { x : UnsafeArc :: new ( data) ,
331
- marker : marker:: NoFreeze ,
332
- marker1 : marker:: NoShare , }
327
+ RWArc {
328
+ x : UnsafeArc :: new ( data) ,
329
+ marker : marker:: NoShare
330
+ }
333
331
}
334
332
335
333
/**
0 commit comments