Skip to content

Commit 15417ba

Browse files
committed
---
yaml --- r: 24522 b: refs/heads/try2 c: 1c2843c h: refs/heads/master v: v3
1 parent 4e6c160 commit 15417ba

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: d52f0f79bcfd86b689d88a2edfcdb4aafac2e8af
8+
refs/heads/try2: 1c2843c8adb670570c6a18a06a5d1473b17afffb
99
refs/heads/incoming: 05543fd04dfb3f63b453a331e239ceb1a9a219f9
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/src/libcore/future.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ io::println(#fmt(\"fib(5000) = %?\", delayed_fib.get()))
1414
import either::either;
1515

1616
export future;
17+
export extensions;
1718
export from_value;
1819
export from_port;
1920
export from_fn;
@@ -27,7 +28,7 @@ enum future<A> = {
2728
};
2829

2930
#[doc = "Methods on the `future` type"]
30-
impl future<A:copy send> for future<A> {
31+
impl extensions<A:copy send> for future<A> {
3132

3233
fn get() -> A {
3334
#[doc = "Get the value of the future"];

branches/try2/src/libstd/net_tcp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import ip = net_ip;
66
import uv::iotask;
77
import uv::iotask::iotask;
88
import comm::methods;
9-
import future::future;
109
import future_spawn = future::spawn;
10+
import future::extensions;
1111
// FIXME #1935
1212
// should be able to, but can't atm, replace w/ result::{result, extensions};
1313
import result::*;
@@ -303,7 +303,7 @@ A `future` value that, once the `write` operation completes, resolves to a
303303
value as the `err` variant
304304
"]
305305
fn write_future(sock: tcp_socket, raw_write_data: ~[u8])
306-
-> future<result::result<(), tcp_err_data>> unsafe {
306+
-> future::future<result::result<(), tcp_err_data>> unsafe {
307307
let socket_data_ptr = ptr::addr_of(*(sock.socket_data));
308308
do future_spawn || {
309309
let data_copy = copy(raw_write_data);
@@ -395,7 +395,7 @@ Otherwise, use the blocking `tcp::read` function instead.
395395
read attempt. Pass `0u` to wait indefinitely
396396
"]
397397
fn read_future(sock: tcp_socket, timeout_msecs: uint)
398-
-> future<result::result<~[u8],tcp_err_data>> {
398+
-> future::future<result::result<~[u8],tcp_err_data>> {
399399
let socket_data = ptr::addr_of(*(sock.socket_data));
400400
do future_spawn || {
401401
read_common_impl(socket_data, timeout_msecs)

branches/try2/src/libstd/par.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import comm::chan;
33
import comm::send;
44
import comm::recv;
55
import future_spawn = future::spawn;
6-
import future::future;
6+
import future::extensions;
77
import core::vec::extensions;
88

99
export map, mapi, alli, any, mapi_factory;

0 commit comments

Comments
 (0)