diff options
| author | Simon BD <simon@server> | 2012-10-06 13:15:18 -0500 |
|---|---|---|
| committer | Simon BD <simon@server> | 2012-10-06 13:15:18 -0500 |
| commit | 0e3bec0ced8d781cdd93996e7b8eeedb13f81ba8 (patch) | |
| tree | 4738dcf131910061f5253ee5ef42960b9aef35f5 /src/libcore/future.rs | |
| parent | d4a54837d4ab28219727e1f1e0c131ba6033ba94 (diff) | |
| parent | f96a2a2ca16a44f869336f7e28fc261551c1184c (diff) | |
Merge remote-tracking branch 'original/incoming' into incoming
Diffstat (limited to 'src/libcore/future.rs')
| -rw-r--r-- | src/libcore/future.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/future.rs b/src/libcore/future.rs index 11b6a2c0135..efd5ff65aa5 100644 --- a/src/libcore/future.rs +++ b/src/libcore/future.rs @@ -1,5 +1,6 @@ // NB: transitionary, de-mode-ing. -// tjc: re-forbid deprecated modes after snapshot +// tjc: allowing deprecated modes due to function issue. +// can re-forbid them after snapshot #[forbid(deprecated_pattern)]; /*! @@ -86,7 +87,7 @@ pub fn from_port<A:Send>(port: future_pipe::client::waiting<A>) -> } } -pub fn from_fn<A>(+f: ~fn() -> A) -> Future<A> { +pub fn from_fn<A>(f: ~fn() -> A) -> Future<A> { /*! * Create a future from a function. * @@ -98,7 +99,7 @@ pub fn from_fn<A>(+f: ~fn() -> A) -> Future<A> { Future {state: Pending(move f)} } -pub fn spawn<A:Send>(+blk: fn~() -> A) -> Future<A> { +pub fn spawn<A:Send>(blk: fn~() -> A) -> Future<A> { /*! * Create a future from a unique closure. * |
