Skip to content

impl Copy for NoSend/NoSync #19860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 17, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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