Skip to content

Commit e087075

Browse files
committed
---
yaml --- r: 24291 b: refs/heads/master c: f311bb3 h: refs/heads/master i: 24289: ebc81c9 24287: c102ae0 v: v3
1 parent e40c552 commit e087075

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 84b058306472810edb4bc215cea621f1890b8b02
2+
refs/heads/master: f311bb38cd24a8c0f730ae104b6bdea8fb2880c5
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/pipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ impl<T: Send> SharedChan<T>: Channel<T> {
11111111
}
11121112

11131113
/// Converts a `chan` into a `shared_chan`.
1114-
fn SharedChan<T:Send>(+c: Chan<T>) -> SharedChan<T> {
1114+
pub fn SharedChan<T:Send>(+c: Chan<T>) -> SharedChan<T> {
11151115
private::exclusive(move c)
11161116
}
11171117

trunk/src/test/bench/graph500-bfs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
231231
};
232232

233233
#[inline(always)]
234-
fn is_gray(c: color) -> bool {
235-
match c {
234+
fn is_gray(c: &color) -> bool {
235+
match *c {
236236
gray(_) => { true }
237237
_ => { false }
238238
}
@@ -282,7 +282,7 @@ fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
282282

283283
// Convert the results.
284284
do par::map(colors) |c| {
285-
match c {
285+
match *c {
286286
white => { -1i64 }
287287
black(parent) => { parent }
288288
_ => { fail ~"Found remaining gray nodes in BFS" }

0 commit comments

Comments
 (0)