diff options
| author | Alex Burka <durka42+github@gmail.com> | 2016-06-09 13:26:02 -0400 |
|---|---|---|
| committer | Alex Burka <durka42+github@gmail.com> | 2016-06-09 13:26:02 -0400 |
| commit | 9e78cd73b5c4254efda9fe57be56b8b374383812 (patch) | |
| tree | ba3cd1bb1561723180399e8dd3b53ffe0720790e | |
| parent | 85e76e804d2526d2a39c5453c3999f895b1d40b5 (diff) | |
| download | rust-9e78cd73b5c4254efda9fe57be56b8b374383812.tar.gz rust-9e78cd73b5c4254efda9fe57be56b8b374383812.zip | |
make RangeInclusive Hash and !Copy
[breaking-change] due to the removal of Copy which shouldn't have been there in the first place, as per policy set forth in #27186.
| -rw-r--r-- | src/libcore/ops.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 39f27bd47ba..5e1210b2ff9 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1669,7 +1669,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> { /// assert_eq!(arr[1...2], [ 1,2 ]); // RangeInclusive /// } /// ``` -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186 #[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")] pub enum RangeInclusive<Idx> { /// Empty range (iteration has finished) |
