Skip to content

Commit 6a252af

Browse files
committed
---
yaml --- r: 187006 b: refs/heads/try c: 1ed5842 h: refs/heads/master v: v3
1 parent fa141e0 commit 6a252af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 62b517772a11e2ff5accffd03e1832535f9bdc1d
5+
refs/heads/try: 1ed58428297611f60a6b5c7cf7024a4cd25b672c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libstd/thread.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ use any::Any;
153153
use cell::UnsafeCell;
154154
use fmt;
155155
use io;
156-
use marker;
156+
use marker::{PhantomData, Send, Sync};
157157
use old_io::stdio;
158158
use rt::{self, unwind};
159159
use sync::{Mutex, Condvar, Arc};
@@ -260,7 +260,7 @@ impl Builder {
260260
T: Send + 'a, F: FnOnce() -> T, F: Send + 'a
261261
{
262262
self.spawn_inner(Thunk::new(f)).map(|inner| {
263-
JoinGuard { inner: inner, _marker: marker::CovariantType }
263+
JoinGuard { inner: inner, _marker: PhantomData }
264264
})
265265
}
266266

@@ -642,7 +642,7 @@ impl Drop for JoinHandle {
642642
#[stable(feature = "rust1", since = "1.0.0")]
643643
pub struct JoinGuard<'a, T: 'a> {
644644
inner: JoinInner<T>,
645-
_marker: marker::CovariantType<&'a T>,
645+
_marker: PhantomData<&'a T>,
646646
}
647647

648648
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)