Skip to content

Commit a449db8

Browse files
committed
---
yaml --- r: 106222 b: refs/heads/auto c: 2c7f3b8 h: refs/heads/master v: v3
1 parent 5ccb376 commit a449db8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+421
-1784
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 8feb2ddf12b2b4a6df783691d8b41fe6f3364a3e
16+
refs/heads/auto: 2c7f3b850ce11c70d5bef2b2d5155a1f0fdaa421
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
337337
}
338338
}
339339

340-
if tool_path.equals(&~"") {
340+
if tool_path.is_empty() {
341341
fatal(~"cannot found android cross path");
342342
}
343343

@@ -452,7 +452,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
452452
let options_to_remove = [~"-O", ~"-g", ~"--debuginfo"];
453453
let new_options = split_maybe_args(options).move_iter()
454454
.filter(|x| !options_to_remove.contains(x))
455-
.to_owned_vec()
455+
.collect::<~[~str]>()
456456
.connect(" ");
457457
Some(new_options)
458458
}

branches/auto/src/driver/driver.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[no_uv]; // remove this after stage0
12-
#[allow(attribute_usage)]; // remove this after stage0
13-
extern crate native; // remove this after stage0
14-
1511
#[cfg(rustdoc)]
1612
extern crate this = "rustdoc";
1713

branches/auto/src/libarena/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
html_root_url = "http://static.rust-lang.org/doc/master")];
2525
#[allow(missing_doc)];
2626
#[feature(managed_boxes)];
27-
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
2827

2928
extern crate collections;
3029

branches/auto/src/libcollections/btree.rs

Lines changed: 13 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,12 @@ impl<K: Clone + TotalOrd, V: Clone> Clone for BTree<K, V> {
9494

9595
impl<K: TotalOrd, V: TotalEq> Eq for BTree<K, V> {
9696
fn eq(&self, other: &BTree<K, V>) -> bool {
97-
self.equals(other)
98-
}
99-
}
100-
101-
impl<K: TotalOrd, V: TotalEq> TotalEq for BTree<K, V> {
102-
///Testing equality on BTrees by comparing the root.
103-
fn equals(&self, other: &BTree<K, V>) -> bool {
10497
self.root.cmp(&other.root) == Equal
10598
}
10699
}
107100

101+
impl<K: TotalOrd, V: TotalEq> TotalEq for BTree<K, V> {}
102+
108103
impl<K: TotalOrd, V: TotalEq> Ord for BTree<K, V> {
109104
fn lt(&self, other: &BTree<K, V>) -> bool {
110105
self.cmp(other) == Less
@@ -204,14 +199,6 @@ impl<K: Clone + TotalOrd, V: Clone> Clone for Node<K, V> {
204199

205200
impl<K: TotalOrd, V: TotalEq> Eq for Node<K, V> {
206201
fn eq(&self, other: &Node<K, V>) -> bool {
207-
self.equals(other)
208-
}
209-
}
210-
211-
impl<K: TotalOrd, V: TotalEq> TotalEq for Node<K, V> {
212-
///Returns whether two nodes are equal based on the keys of each element.
213-
///Two nodes are equal if all of their keys are the same.
214-
fn equals(&self, other: &Node<K, V>) -> bool{
215202
match *self{
216203
BranchNode(ref branch) => {
217204
if other.is_leaf() {
@@ -232,6 +219,8 @@ impl<K: TotalOrd, V: TotalEq> TotalEq for Node<K, V> {
232219
}
233220
}
234221

222+
impl<K: TotalOrd, V: TotalEq> TotalEq for Node<K, V> {}
223+
235224
impl<K: TotalOrd, V: TotalEq> Ord for Node<K, V> {
236225
fn lt(&self, other: &Node<K, V>) -> bool {
237226
self.cmp(other) == Less
@@ -405,16 +394,11 @@ impl<K: Clone + TotalOrd, V: Clone> Clone for Leaf<K, V> {
405394

406395
impl<K: TotalOrd, V: TotalEq> Eq for Leaf<K, V> {
407396
fn eq(&self, other: &Leaf<K, V>) -> bool {
408-
self.equals(other)
397+
self.elts == other.elts
409398
}
410399
}
411400

412-
impl<K: TotalOrd, V: TotalEq> TotalEq for Leaf<K, V> {
413-
///Implementation of equals function for leaves that compares LeafElts.
414-
fn equals(&self, other: &Leaf<K, V>) -> bool {
415-
self.elts.equals(&other.elts)
416-
}
417-
}
401+
impl<K: TotalOrd, V: TotalEq> TotalEq for Leaf<K, V> {}
418402

419403
impl<K: TotalOrd, V: TotalEq> Ord for Leaf<K, V> {
420404
fn lt(&self, other: &Leaf<K, V>) -> bool {
@@ -639,16 +623,11 @@ impl<K: Clone + TotalOrd, V: Clone> Clone for Branch<K, V> {
639623

640624
impl<K: TotalOrd, V: TotalEq> Eq for Branch<K, V> {
641625
fn eq(&self, other: &Branch<K, V>) -> bool {
642-
self.equals(other)
626+
self.elts == other.elts
643627
}
644628
}
645629

646-
impl<K: TotalOrd, V: TotalEq> TotalEq for Branch<K, V> {
647-
///Equals function for Branches--compares all the elements in each branch
648-
fn equals(&self, other: &Branch<K, V>) -> bool {
649-
self.elts.equals(&other.elts)
650-
}
651-
}
630+
impl<K: TotalOrd, V: TotalEq> TotalEq for Branch<K, V> {}
652631

653632
impl<K: TotalOrd, V: TotalEq> Ord for Branch<K, V> {
654633
fn lt(&self, other: &Branch<K, V>) -> bool {
@@ -712,16 +691,11 @@ impl<K: Clone + TotalOrd, V: Clone> Clone for LeafElt<K, V> {
712691

713692
impl<K: TotalOrd, V: TotalEq> Eq for LeafElt<K, V> {
714693
fn eq(&self, other: &LeafElt<K, V>) -> bool {
715-
self.equals(other)
694+
self.key == other.key && self.value == other.value
716695
}
717696
}
718697

719-
impl<K: TotalOrd, V: TotalEq> TotalEq for LeafElt<K, V> {
720-
///TotalEq for LeafElts
721-
fn equals(&self, other: &LeafElt<K, V>) -> bool {
722-
self.key.equals(&other.key) && self.value.equals(&other.value)
723-
}
724-
}
698+
impl<K: TotalOrd, V: TotalEq> TotalEq for LeafElt<K, V> {}
725699

726700
impl<K: TotalOrd, V: TotalEq> Ord for LeafElt<K, V> {
727701
fn lt(&self, other: &LeafElt<K, V>) -> bool {
@@ -766,16 +740,11 @@ impl<K: Clone + TotalOrd, V: Clone> Clone for BranchElt<K, V> {
766740

767741
impl<K: TotalOrd, V: TotalEq> Eq for BranchElt<K, V>{
768742
fn eq(&self, other: &BranchElt<K, V>) -> bool {
769-
self.equals(other)
743+
self.key == other.key && self.value == other.value
770744
}
771745
}
772746

773-
impl<K: TotalOrd, V: TotalEq> TotalEq for BranchElt<K, V>{
774-
///TotalEq for BranchElts
775-
fn equals(&self, other: &BranchElt<K, V>) -> bool {
776-
self.key.equals(&other.key)&&self.value.equals(&other.value)
777-
}
778-
}
747+
impl<K: TotalOrd, V: TotalEq> TotalEq for BranchElt<K, V>{}
779748

780749
impl<K: TotalOrd, V: TotalEq> Ord for BranchElt<K, V> {
781750
fn lt(&self, other: &BranchElt<K, V>) -> bool {
@@ -900,7 +869,7 @@ mod test_btree {
900869
fn btree_clone_test() {
901870
let b = BTree::new(1, ~"abc", 2);
902871
let b2 = b.clone();
903-
assert!(b.root.equals(&b2.root))
872+
assert!(b.root == b2.root)
904873
}
905874
906875
//Tests the BTree's cmp() method when one node is "less than" another.

branches/auto/src/libcollections/enum_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
use std::num::Bitwise;
1717

18-
#[deriving(Clone, Eq, Hash, Show)]
18+
#[deriving(Clone, Eq, TotalEq, Hash, Show)]
1919
/// A specialized Set implementation to use enum types.
2020
pub struct EnumSet<E> {
2121
// We must maintain the invariant that no bits are set

0 commit comments

Comments
 (0)