Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.
This commit is contained in:
parent
e6baf44f19
commit
98e161f00e
420 changed files with 4077 additions and 4078 deletions
|
@ -44,11 +44,11 @@ type page_port = comm::port<option<doc::page>>;
|
|||
type page_chan = comm::chan<option<doc::page>>;
|
||||
|
||||
fn make_doc_from_pages(page_port: page_port) -> doc::doc {
|
||||
let mut pages = []/~;
|
||||
let mut pages = ~[];
|
||||
loop {
|
||||
let val = comm::recv(page_port);
|
||||
if option::is_some(val) {
|
||||
pages += [option::unwrap(val)]/~;
|
||||
pages += ~[option::unwrap(val)];
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue