Removing explicit uses of + mode
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// NB: transitionary, de-mode-ing.
|
||||
#[forbid(deprecated_mode)];
|
||||
// tjc: re-forbid deprecated modes after snapshot
|
||||
#[forbid(deprecated_pattern)];
|
||||
|
||||
/*!
|
||||
@@ -55,7 +55,7 @@ impl<A> Future<A> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_value<A>(+val: A) -> Future<A> {
|
||||
pub fn from_value<A>(val: A) -> Future<A> {
|
||||
/*!
|
||||
* Create a future from a value
|
||||
*
|
||||
@@ -66,7 +66,7 @@ pub fn from_value<A>(+val: A) -> Future<A> {
|
||||
Future {state: Forced(~(move val))}
|
||||
}
|
||||
|
||||
pub fn from_port<A:Send>(+port: future_pipe::client::waiting<A>) ->
|
||||
pub fn from_port<A:Send>(port: future_pipe::client::waiting<A>) ->
|
||||
Future<A> {
|
||||
/*!
|
||||
* Create a future from a port
|
||||
|
||||
Reference in New Issue
Block a user