Skip to content

Commit

Permalink
impl Copy for NoSend/NoSync
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Dec 15, 2014
1 parent 6085a71 commit f63784f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libcore/kinds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ pub mod marker {
/// typically embedded in other types, such as `Gc`, to ensure that
/// their instances remain thread-local.
#[lang="no_send_bound"]
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
#[allow(missing_copy_implementations)]
#[deriving(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct NoSend;

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

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

0 comments on commit f63784f

Please sign in to comment.