From a522c555e3f6741cdc4c97bcb5743d318326e0f8 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 21 Jul 2015 16:58:54 +0200 Subject: [PATCH] Derive Copy for std::ops::Range and RangeFrom `RangeTo` and `RangeFull` already have it. --- src/libcore/ops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index c2a9b8c8308cd..9affab43f4645 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1001,7 +1001,7 @@ impl fmt::Debug for RangeFull { } /// A (half-open) range which is bounded at both ends. -#[derive(Clone, PartialEq, Eq)] +#[derive(Copy, Clone, PartialEq, Eq)] #[lang = "range"] #[stable(feature = "rust1", since = "1.0.0")] pub struct Range { @@ -1021,7 +1021,7 @@ impl fmt::Debug for Range { } /// A range which is only bounded below. -#[derive(Clone, PartialEq, Eq)] +#[derive(Copy, Clone, PartialEq, Eq)] #[lang = "range_from"] #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeFrom {