Skip to content

Commit 3cc9494

Browse files
committed
---
yaml --- r: 97658 b: refs/heads/snap-stage3 c: 8f6ffde h: refs/heads/master v: v3
1 parent 86cd570 commit 3cc9494

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: b93a4dac2e52b67faf778957ba7a997e805d103b
4+
refs/heads/snap-stage3: 8f6ffdefc3328f011695bc0f6c3fd0d36b178dd1
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)