Skip to content

Commit

Permalink
InvariantLifetime is Copy-able
Browse files Browse the repository at this point in the history
Both ContravariantLifetime and CovariantLifetime are marked as Copy,
so it makes sense for InvariantLifetime to be as well.
  • Loading branch information
shepmaster committed Dec 14, 2014
1 parent f07526a commit 5966815
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/kinds.rs
Expand Up @@ -259,6 +259,8 @@ pub mod marker {
#[deriving(Clone, 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

0 comments on commit 5966815

Please sign in to comment.