Skip to content

Commit 0d3b0a8

Browse files
committed
---
yaml --- r: 42906 b: refs/heads/try c: b80d711 h: refs/heads/master v: v3
1 parent 1c61029 commit 0d3b0a8

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
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: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 65f711a617e1cd3676cc6f3dbc40b26ecfcfed7b
5+
refs/heads/try: b80d711912412fced8a09c66e864557394296863
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/librustdoc/markdown_writer.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use core::result;
2626
use core::run;
2727
use core::str;
2828
use core::task;
29+
use core::pipes::*;
2930
use std::future;
3031
use syntax;
3132

@@ -168,12 +169,8 @@ fn readclose(fd: libc::c_int) -> ~str {
168169
}
169170
170171
fn generic_writer(process: fn~(markdown: ~str)) -> Writer {
171-
let (setup_po, setup_ch) = pipes::stream();
172+
let (po, ch) = stream::<WriteInstr>();
172173
do task::spawn |move process, move setup_ch| {
173-
let po: oldcomm::Port<WriteInstr> = oldcomm::Port();
174-
let ch = oldcomm::Chan(&po);
175-
setup_ch.send(ch);
176-
177174
let mut markdown = ~"";
178175
let mut keep_going = true;
179176
while keep_going {
@@ -184,10 +181,8 @@ fn generic_writer(process: fn~(markdown: ~str)) -> Writer {
184181
}
185182
process(move markdown);
186183
};
187-
let ch = setup_po.recv();
188-
189184
fn~(instr: WriteInstr) {
190-
oldcomm::send(ch, instr);
185+
ch.send(instr);
191186
}
192187
}
193188

0 commit comments

Comments
 (0)