Skip to content

Commit 67b5d5f

Browse files
committed
Fix compile-fail arc/sync tests
1 parent d2e9d99 commit 67b5d5f

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/test/bench/graph500-bfs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ An implementation of the Graph500 Breadth First Search problem in Rust.
55
*/
66

77
use std;
8+
import std::arc;
89
import std::time;
910
import std::map;
1011
import std::map::map;

src/test/compile-fail/no-capture-arc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// error-pattern: copying a noncopyable value
22

33
use std;
4+
import std::arc;
45
import comm::*;
56

67
fn main() {

src/test/compile-fail/no-reuse-move-arc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std;
2+
import std::arc;
23
import comm::*;
34

45
fn main() {

src/test/compile-fail/sync-cond-shouldnt-escape.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// error-pattern: reference is not valid outside of its lifetime
2+
use std;
3+
import std::sync;
4+
25
fn main() {
36
let m = ~sync::mutex();
47
let mut cond = none;

0 commit comments

Comments
 (0)