Skip to content

Commit 1afa8ac

Browse files
committed
Use #[deriving(Copy)] for InvariantLifetime
1 parent 22a9f25 commit 1afa8ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libcore/kinds.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,9 @@ pub mod marker {
256256
/// and this pointer is itself stored in an inherently mutable
257257
/// location (such as a `Cell`).
258258
#[lang="invariant_lifetime"]
259-
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
259+
#[deriving(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
260260
pub struct InvariantLifetime<'a>;
261261

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

0 commit comments

Comments
 (0)