Skip to content

Commit c4a1f6b

Browse files
committed
Revert "remove Copy impls from remaining iterators"
This reverts commit c3841b9.
1 parent 76ce1ea commit c4a1f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ impl fmt::Debug for RangeFull {
977977
}
978978

979979
/// A (half-open) range which is bounded at both ends.
980-
#[derive(Clone, PartialEq, Eq)]
980+
#[derive(Copy, Clone, PartialEq, Eq)]
981981
#[lang="range"]
982982
#[stable(feature = "rust1", since = "1.0.0")]
983983
pub struct Range<Idx> {
@@ -995,7 +995,7 @@ impl<Idx: fmt::Debug> fmt::Debug for Range<Idx> {
995995
}
996996

997997
/// A range which is only bounded below.
998-
#[derive(Clone, PartialEq, Eq)]
998+
#[derive(Copy, Clone, PartialEq, Eq)]
999999
#[lang="range_from"]
10001000
#[stable(feature = "rust1", since = "1.0.0")]
10011001
pub struct RangeFrom<Idx> {

0 commit comments

Comments
 (0)