We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22c8832 commit adfcd93Copy full SHA for adfcd93
src/libstd/thread.rs
@@ -151,7 +151,7 @@ use any::Any;
151
use boxed::Box;
152
use cell::UnsafeCell;
153
use clone::Clone;
154
-use marker::{Send, Sync};
+use marker::{Send, Sync, CovariantType};
155
use ops::{Drop, FnOnce};
156
use option::Option::{self, Some, None};
157
use result::Result::{Err, Ok};
@@ -255,6 +255,7 @@ impl Builder {
255
joined: false,
256
packet: my_packet,
257
thread: thread,
258
+ _marker: CovariantType,
259
}
260
261
@@ -487,6 +488,7 @@ pub struct JoinGuard<'a, T: 'a> {
487
488
thread: Thread,
489
joined: bool,
490
packet: Packet<T>,
491
+ _marker: CovariantType<&'a T>,
492
493
494
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments