Skip to content

Commit

Permalink
Use #[deriving(Copy)] for InvariantLifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Dec 18, 2014
1 parent 22a9f25 commit 1afa8ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libcore/kinds.rs
Expand Up @@ -256,11 +256,9 @@ pub mod marker {
/// and this pointer is itself stored in an inherently mutable
/// location (such as a `Cell`).
#[lang="invariant_lifetime"]
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
#[deriving(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct InvariantLifetime<'a>;

impl<'a> Copy for InvariantLifetime<'a> {}

/// A type which is considered "not sendable", meaning that it cannot
/// be safely sent between tasks, even if it is owned. This is
/// typically embedded in other types, such as `Gc`, to ensure that
Expand Down

1 comment on commit 1afa8ac

@alexcrichton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.