Skip to content

Commit 958278e

Browse files
committed
---
yaml --- r: 156095 b: refs/heads/auto c: 96445a5 h: refs/heads/master i: 156093: a63bd3f 156091: 316d62d 156087: 1832318 156079: e3e528a 156063: e062cff 156031: c22c5c6 v: v3
1 parent ed56734 commit 958278e

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
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: 9d5d97b55d6487ee23b805bc1acbaa0669b82116
16+
refs/heads/auto: 96445a533e8ea40701e2a9bbd25347141e63c115
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libnative/io/process.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,15 +489,15 @@ fn make_command_line(prog: &CString, args: &[CString]) -> String {
489489
}
490490
let argvec: Vec<char> = arg.chars().collect();
491491
for i in range(0u, argvec.len()) {
492-
append_char_at(cmd, &argvec, i);
492+
append_char_at(cmd, argvec.as_slice(), i);
493493
}
494494
if quote {
495495
cmd.push('"');
496496
}
497497
}
498498

499-
fn append_char_at(cmd: &mut String, arg: &Vec<char>, i: uint) {
500-
match *arg.get(i) {
499+
fn append_char_at(cmd: &mut String, arg: &[char], i: uint) {
500+
match arg[i] {
501501
'"' => {
502502
// Escape quotes.
503503
cmd.push_str("\\\"");
@@ -517,11 +517,11 @@ fn make_command_line(prog: &CString, args: &[CString]) -> String {
517517
}
518518
}
519519

520-
fn backslash_run_ends_in_quote(s: &Vec<char>, mut i: uint) -> bool {
521-
while i < s.len() && *s.get(i) == '\\' {
520+
fn backslash_run_ends_in_quote(s: &[char], mut i: uint) -> bool {
521+
while i < s.len() && s[i] == '\\' {
522522
i += 1;
523523
}
524-
return i < s.len() && *s.get(i) == '"';
524+
return i < s.len() && s[i] == '"';
525525
}
526526
}
527527

branches/auto/src/libnative/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ mod tests {
345345
#[test]
346346
fn spawn_inherits() {
347347
let (tx, rx) = channel();
348-
spawn(proc() {
348+
TaskBuilder::new().spawner(NativeSpawner).spawn(proc() {
349349
spawn(proc() {
350350
let mut task: Box<Task> = Local::take();
351351
match task.maybe_take_runtime::<Ops>() {

branches/auto/src/test/compile-fail/writing-to-immutable-vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111

1212
fn main() {
1313
let v: Vec<int> = vec!(1, 2, 3);
14-
v[1] = 4; //~ ERROR cannot assign
14+
v[1] = 4; //~ ERROR cannot borrow immutable local variable `v` as mutable
1515
}

branches/auto/src/test/run-pass/vector-sort-failure-safe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use std::task;
12-
use std::sync::atomics::{AtomicUint, INIT_ATOMIC_UINT, Relaxed};
12+
use std::sync::atomic::{AtomicUint, INIT_ATOMIC_UINT, Relaxed};
1313
use std::rand::{task_rng, Rng, Rand};
1414

1515
const REPEATS: uint = 5;

0 commit comments

Comments
 (0)