Skip to content

Commit db16fce

Browse files
nikomatsakisbrson
authored andcommitted
all tests pass
1 parent 85da98d commit db16fce

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/compiletest/procsrv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn writeclose(fd: int, s: option::t<str>) unsafe {
7979
os::libc::close(fd);
8080
}
8181

82-
fn readclose(fd: int) -> str {
82+
fn readclose(fd: int) -> str unsafe {
8383
// Copied from run::program_output
8484
let file = os::fd_FILE(fd);
8585
let reader = io::new_reader(io::FILE_buf_reader(file, option::none));
@@ -92,7 +92,7 @@ fn readclose(fd: int) -> str {
9292
ret buf;
9393
}
9494

95-
fn worker(p: port<request>) {
95+
fn worker(p: port<request>) unsafe {
9696

9797
// FIXME (787): If we declare this inside of the while loop and then
9898
// break out of it before it's ever initialized (i.e. we don't run

src/test/run-pass/interior-vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ native "rust-intrinsic" mod rusti {
44
fn vec_len<T>(&&v: [T]) -> uint;
55
}
66

7-
fn main() {
7+
fn main() unsafe {
88
let v: [int] = [];
99
assert (vec_len(v) == 0u); // zero-length
1010
let x = [1, 2];

src/test/run-pass/issue-506.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ native "rust" mod rustrt {
99
fn task_yield();
1010
}
1111

12-
fn yield_wrap() { rustrt::task_yield(); }
12+
fn yield_wrap() unsafe { rustrt::task_yield(); }
1313

1414
fn main() { let f = yield_wrap; task::spawn(f); }

src/test/run-pass/unify-return-ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
use std;
55
import std::unsafe;
66

7-
fn null<@T>() -> *T { unsafe::reinterpret_cast(0) }
7+
fn null<@T>() -> *T unsafe { unsafe::reinterpret_cast(0) }
88

99
fn main() { null::<int>(); }

src/test/run-pass/unique-copy-box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std;
22
import std::sys::rustrt::refcount;
33

4-
fn main() {
4+
fn main() unsafe {
55
let i = ~@1;
66
let j = ~@2;
77
let rc1 = refcount(*i);

0 commit comments

Comments
 (0)