Skip to content

Commit

Permalink
rollup merge of #19838: shepmaster/invariant-lifetime-copy
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
brson committed Dec 16, 2014
2 parents f756c97 + 5966815 commit b5f8287
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/kinds.rs
Original file line number Diff line number Diff line change
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 b5f8287

Please sign in to comment.