Skip to content

Commit 2bb6bb1

Browse files
committed
---
yaml --- r: 156631 b: refs/heads/try c: 96445a5 h: refs/heads/master i: 156629: a82f10a 156627: 6ccd72b 156623: 4c2d406 v: v3
1 parent 82b48d4 commit 2bb6bb1

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
@@ -2,7 +2,7 @@
22
refs/heads/master: a34b8dec697014f15e725215e17ea8d956c0ab1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: d44ea720fa9dfe062ef06d0eb49a58d4e7e92344
5-
refs/heads/try: 9d5d97b55d6487ee23b805bc1acbaa0669b82116
5+
refs/heads/try: 96445a533e8ea40701e2a9bbd25347141e63c115
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75

branches/try/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/try/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/try/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/try/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)