Skip to content

Commit f1c3616

Browse files
committed
---
yaml --- r: 90622 b: refs/heads/master c: 0478142 h: refs/heads/master v: v3
1 parent a5b4fc7 commit f1c3616

File tree

39 files changed

+802
-1526
lines changed

39 files changed

+802
-1526
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a5d26a2e37b201d6adab839c1639edcf769432ab
2+
refs/heads/master: 0478142b5f3bad7ced378e616e907fb216856225
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/mk/clean.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ clean-generic-$(2)-$(1):
6363
-name '*.[odasS]' -o \
6464
-name '*.so' -o \
6565
-name '*.dylib' -o \
66+
-name '*.lib' -o \
6667
-name '*.dll' -o \
6768
-name '*.def' -o \
6869
-name '*.bc' \

trunk/mk/tests.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,8 @@ define DEF_RMAKE_FOR_T_H
908908
# $(2) target triple
909909
# $(3) host triple
910910

911+
912+
ifeq ($(2)$(3),$$(CFG_BUILD)$$(CFG_BUILD))
911913
check-stage$(1)-T-$(2)-H-$(3)-rmake-exec: \
912914
$$(call TEST_OK_FILE,$(1),$(2),$(3),rmake)
913915

@@ -927,6 +929,13 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
927929
"$$(CC_$(3)) $$(CFG_GCCISH_CFLAGS_$(3))" \
928930
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3))
929931
@touch $$@
932+
else
933+
# FIXME #11094 - The above rule doesn't work right for multiple targets
934+
check-stage$(1)-T-$(2)-H-$(3)-rmake-exec:
935+
@true
936+
937+
endif
938+
930939

931940
endef
932941

trunk/src/etc/ctags.rust

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
--regex-Rust=/^[ \t]*(pub[ \t]+)?fn[ \t]+([a-zA-Z0-9_]+)/\2/f,functions,function definitions/
44
--regex-Rust=/^[ \t]*(pub[ \t]+)?type[ \t]+([a-zA-Z0-9_]+)/\2/T,types,type definitions/
55
--regex-Rust=/^[ \t]*(pub[ \t]+)?enum[ \t]+([a-zA-Z0-9_]+)/\2/g,enum,enumeration names/
6-
--regex-Rust=/^[ \t]*(pub[ \t]+)?enum[ \t]+([a-zA-Z0-9_]+)/\2/g,enum,enumeration names/
76
--regex-Rust=/^[ \t]*(pub[ \t]+)?struct[ \t]+([a-zA-Z0-9_]+)/\2/s,structure names/
87
--regex-Rust=/^[ \t]*(pub[ \t]+)?mod[ \t]+([a-zA-Z0-9_]+)/\2/m,modules,module names/
98
--regex-Rust=/^[ \t]*(pub[ \t]+)?static[ \t]+([a-zA-Z0-9_]+)/\2/c,consts,static constants/
109
--regex-Rust=/^[ \t]*(pub[ \t]+)?trait[ \t]+([a-zA-Z0-9_]+)/\2/t,traits,traits/
1110
--regex-Rust=/^[ \t]*(pub[ \t]+)?impl([ \t\n]+<.*>)?[ \t]+([a-zA-Z0-9_]+)/\3/i,impls,trait implementations/
12-
--regex-Rust=/^[ \t]*macro_rules![ \t]+([a-zA-Z0-9_]+)/\2/d,macros,macro definitions/
11+
--regex-Rust=/^[ \t]*macro_rules![ \t]+([a-zA-Z0-9_]+)/\1/d,macros,macro definitions/

trunk/src/libextra/glob.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ use std::io;
2828
use std::io::fs;
2929
use std::path::is_sep;
3030

31-
use sort;
32-
3331
/**
3432
* An iterator that yields Paths from the filesystem that match a particular
3533
* pattern - see the `glob` function for more details.
@@ -149,9 +147,8 @@ impl Iterator<Path> for GlobIterator {
149147

150148
fn list_dir_sorted(path: &Path) -> ~[Path] {
151149
match io::result(|| fs::readdir(path)) {
152-
Ok(children) => {
153-
let mut children = children;
154-
sort::quick_sort(children, |p1, p2| p2.filename() <= p1.filename());
150+
Ok(mut children) => {
151+
children.sort_by(|p1, p2| p2.filename().cmp(&p1.filename()));
155152
children
156153
}
157154
Err(..) => ~[]
@@ -771,4 +768,3 @@ mod test {
771768
assert!(Pattern::new("a/b").matches_path(&Path::new("a/b")));
772769
}
773770
}
774-

trunk/src/libextra/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ pub mod ringbuf;
6161
pub mod priority_queue;
6262
pub mod smallintmap;
6363

64-
pub mod sort;
65-
6664
pub mod dlist;
6765
pub mod treemap;
6866
pub mod btree;

trunk/src/libextra/priority_queue.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ impl<T: Ord> Extendable<T> for PriorityQueue<T> {
213213

214214
#[cfg(test)]
215215
mod tests {
216-
use sort::merge_sort;
217216
use priority_queue::PriorityQueue;
218217

219218
#[test]
@@ -231,7 +230,8 @@ mod tests {
231230
#[test]
232231
fn test_top_and_pop() {
233232
let data = ~[2u, 4, 6, 2, 1, 8, 10, 3, 5, 7, 0, 9, 1];
234-
let mut sorted = merge_sort(data, |x, y| x.le(y));
233+
let mut sorted = data.clone();
234+
sorted.sort();
235235
let mut heap = PriorityQueue::from_vec(data);
236236
while !heap.is_empty() {
237237
assert_eq!(heap.top(), sorted.last());
@@ -311,11 +311,14 @@ mod tests {
311311
assert_eq!(heap.len(), 5);
312312
}
313313

314-
fn check_to_vec(data: ~[int]) {
314+
fn check_to_vec(mut data: ~[int]) {
315315
let heap = PriorityQueue::from_vec(data.clone());
316-
assert_eq!(merge_sort(heap.clone().to_vec(), |x, y| x.le(y)),
317-
merge_sort(data, |x, y| x.le(y)));
318-
assert_eq!(heap.to_sorted_vec(), merge_sort(data, |x, y| x.le(y)));
316+
let mut v = heap.clone().to_vec();
317+
v.sort();
318+
data.sort();
319+
320+
assert_eq!(v, data);
321+
assert_eq!(heap.to_sorted_vec(), data);
319322
}
320323

321324
#[test]

0 commit comments

Comments
 (0)