Skip to content

Commit 27ef349

Browse files
committed
---
yaml --- r: 10645 b: refs/heads/snap-stage3 c: 51ba351 h: refs/heads/master i: 10643: fb116e5 v: v3
1 parent cbb74c3 commit 27ef349

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 4d1e41561128899d6c29cef81a85be4303298698
4+
refs/heads/snap-stage3: 51ba3518ec6bfe6b47c72bb33fc5b55e21f5ac7c
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/cargo/cargo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ fn load_crate(filename: str) -> option<crate> {
316316

317317
alt *attr_name {
318318
"std" | "core" { }
319-
_ { e.deps += [query]; }
319+
_ { vec::push(e.deps, query); }
320320
}
321321
}
322322
_ { }
@@ -775,7 +775,7 @@ fn install_source(c: cargo, path: str) {
775775
let mut cratefiles = [];
776776
for os::walk_dir(".") {|p|
777777
if str::ends_with(p, ".rc") {
778-
cratefiles += [p];
778+
vec::push(cratefiles, p);
779779
}
780780
}
781781

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ fn make_tests(config: config) -> [test::test_desc] {
139139
let file = file;
140140
#debug("inspecting file %s", file);
141141
if is_test(config, file) {
142-
tests += [make_test(config, file)]
142+
vec::push(tests, make_test(config, file))
143143
}
144144
}
145145
ret tests;

branches/snap-stage3/src/compiletest/header.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn load_props(testfile: str) -> test_props {
3131
let mut pp_exact = option::none;
3232
for iter_header(testfile) {|ln|
3333
alt parse_error_pattern(ln) {
34-
option::some(ep) { error_patterns += [ep]; }
34+
option::some(ep) { vec::push(error_patterns, ep) }
3535
option::none { }
3636
};
3737

@@ -44,11 +44,11 @@ fn load_props(testfile: str) -> test_props {
4444
}
4545

4646
option::iter(parse_aux_build(ln)) {|ab|
47-
aux_builds += [ab];
47+
vec::push(aux_builds, ab);
4848
}
4949

5050
option::iter(parse_exec_env(ln)) {|ee|
51-
exec_env += [ee];
51+
vec::push(exec_env, ee);
5252
}
5353
};
5454
ret {

branches/snap-stage3/src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn target_env(lib_path: str, prog: str) -> [(str,str)] {
1919
else { (k,v) }
2020
};
2121
if str::ends_with(prog, "rustc.exe") {
22-
env += [("RUST_THREADS", "1")]
22+
vec::push(env, ("RUST_THREADS", "1"));
2323
}
2424
ret env;
2525
}

branches/snap-stage3/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn run_pretty_test(config: config, props: test_props, testfile: str) {
104104
procres);
105105
}
106106

107-
srcs += [procres.stdout];
107+
vec::push(srcs, procres.stdout);
108108
round += 1;
109109
}
110110

branches/snap-stage3/src/fuzzer/cycles.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn test_cycles(r : rand::rng, k: uint, n: uint)
6262

6363
// Create a graph with no edges
6464
range(0u, vlen) {|_i|
65-
v += [mut empty_pointy()];
65+
vec::push(v, empty_pointy());
6666
}
6767

6868
// Fill in the graph with random edges, with density k/n
@@ -77,7 +77,7 @@ fn test_cycles(r : rand::rng, k: uint, n: uint)
7777
// https://github.com/mozilla/rust/issues/1899
7878

7979
if (likelihood(r, k, n)) { v[i].m = [p(choice(r, v))]; }
80-
if (likelihood(r, k, n)) { v[i].n += [mut p(choice(r, v))]; }
80+
if (likelihood(r, k, n)) { vec::push(v[i].n, mut p(choice(r, v))); }
8181
if (likelihood(r, k, n)) { v[i].o = {x: 0, y: p(choice(r, v))}; }
8282
}
8383

branches/snap-stage3/src/fuzzer/fuzzer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn stash_ty_if(c: fn@(@ast::ty, test_mode)->bool,
129129
e: @ast::ty,
130130
tm: test_mode) {
131131
if c(e, tm) {
132-
*es += [*e];
132+
vec::push(*es,*e);
133133
} else {/* now my indices are wrong :( */ }
134134
}
135135

branches/snap-stage3/src/fuzzer/ivec_fuzz.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ fn vec_edits<T: copy>(v: [T], xs: [T]) -> [[T]] {
5757

5858
if Lv != 1u {
5959
// When Lv == 1u, this is redundant with omit.
60-
edits += [[]];
60+
vec::push(edits, []);
6161
}
6262
if Lv >= 3u {
6363
// When Lv == 2u, this is redundant with swap.
64-
edits += [vec::reversed(v)];
64+
vec::push(edits, vec::reversed(v));
6565
}
6666
ix(0u, 1u, Lv) {|i| edits += [vec_omit(v, i)]; }
6767
ix(0u, 1u, Lv) {|i| edits += [vec_dup(v, i)]; }
@@ -71,10 +71,10 @@ fn vec_edits<T: copy>(v: [T], xs: [T]) -> [[T]] {
7171

7272
ix(0u, 1u, len(xs)) {|j|
7373
ix(0u, 1u, Lv) {|i|
74-
edits += [vec_poke(v, i, xs[j])];
74+
vec::push(edits, vec_poke(v, i, xs[j]));
7575
}
7676
ix(0u, 0u, Lv) {|i|
77-
edits += [vec_insert(v, i, xs[j])];
77+
vec::push(edits, vec_insert(v, i, xs[j]));
7878
}
7979
}
8080

branches/snap-stage3/src/fuzzer/rand_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn weighted_vec<T: copy>(v : [weighted<T>]) -> [T] {
6262
for {weight: weight, item: item} in v {
6363
let i = 0u;
6464
while i < weight {
65-
r += [item];
65+
vec::push(r, item);
6666
i += 1u;
6767
}
6868
}

0 commit comments

Comments
 (0)