Skip to content

Commit bc99ced

Browse files
committed
rollup merge of #19838: shepmaster/invariant-lifetime-copy
Both ContravariantLifetime and CovariantLifetime are marked as Copy, so it makes sense for InvariantLifetime to be as well.
2 parents 693cfab + 1afa8ac commit bc99ced

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
@@ -252,11 +252,9 @@ pub mod marker {
252252
/// and this pointer is itself stored in an inherently mutable
253253
/// location (such as a `Cell`).
254254
#[lang="invariant_lifetime"]
255-
#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord)]
255+
#[deriving(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
256256
pub struct InvariantLifetime<'a>;
257257

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

0 commit comments

Comments
 (0)