Skip to content

Commit 6c84b8d

Browse files
committed
Merge pull request #19838 from shepmaster/invariant-lifetime-copy
InvariantLifetime is Copy-able Reviewed-by: alexcrichton
2 parents 59ad1c0 + 5966815 commit 6c84b8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/kinds.rs

+2
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ pub mod marker {
259259
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
260260
pub struct InvariantLifetime<'a>;
261261

262+
impl<'a> Copy for InvariantLifetime<'a> {}
263+
262264
/// A type which is considered "not sendable", meaning that it cannot
263265
/// be safely sent between tasks, even if it is owned. This is
264266
/// typically embedded in other types, such as `Gc`, to ensure that

0 commit comments

Comments
 (0)