Skip to content

Commit 46aacd0

Browse files
committed
---
yaml --- r: 97661 b: refs/heads/snap-stage3 c: b97ace2 h: refs/heads/master i: 97659: 72d1e83 v: v3
1 parent 7ba8b33 commit 46aacd0

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e25d7069b5a6430252e6a411d55debf0a55b955b
4+
refs/heads/snap-stage3: b97ace2f6b361f10541586e69371f4924ce967c6
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libextra/treemap.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ impl<'a, T> Iterator<&'a T> for TreeSetRevIterator<'a, T> {
549549
/// A implementation of the `Set` trait on top of the `TreeMap` container. The
550550
/// only requirement is that the type of the elements contained ascribes to the
551551
/// `TotalOrd` trait.
552+
#[deriving(Clone)]
552553
pub struct TreeSet<T> {
553554
priv map: TreeMap<T, ()>
554555
}
@@ -1588,6 +1589,16 @@ mod test_set {
15881589
}
15891590
}
15901591

1592+
#[test]
1593+
fn test_clone_eq() {
1594+
let mut m = TreeSet::new();
1595+
1596+
m.insert(1);
1597+
m.insert(2);
1598+
1599+
assert!(m.clone() == m);
1600+
}
1601+
15911602
fn check(a: &[int],
15921603
b: &[int],
15931604
expected: &[int],

0 commit comments

Comments
 (0)