Skip to content

Commit f63784f

Browse files
author
Jorge Aparicio
committed
impl Copy for NoSend/NoSync
1 parent 6085a71 commit f63784f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libcore/kinds.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ pub mod marker {
264264
/// typically embedded in other types, such as `Gc`, to ensure that
265265
/// their instances remain thread-local.
266266
#[lang="no_send_bound"]
267-
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
268-
#[allow(missing_copy_implementations)]
267+
#[deriving(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
269268
pub struct NoSend;
270269

271270
/// A type which is considered "not POD", meaning that it is not
@@ -280,8 +279,7 @@ pub mod marker {
280279
/// its contents are not threadsafe, hence they cannot be
281280
/// shared between tasks.
282281
#[lang="no_sync_bound"]
283-
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
284-
#[allow(missing_copy_implementations)]
282+
#[deriving(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
285283
pub struct NoSync;
286284

287285
/// A type which is considered managed by the GC. This is typically

0 commit comments

Comments
 (0)