Remove by-copy mode from std, mostly
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// tjc: forbid deprecated modes again after snap
|
||||
#[forbid(deprecated_mode)];
|
||||
|
||||
use vec::{to_mut, from_elem};
|
||||
|
||||
@@ -553,7 +553,7 @@ pure fn land(w0: uint, w1: uint) -> uint { return w0 & w1; }
|
||||
pure fn right(_w0: uint, w1: uint) -> uint { return w1; }
|
||||
|
||||
impl Bitv: ops::Index<uint,bool> {
|
||||
pure fn index(+i: uint) -> bool {
|
||||
pure fn index(i: uint) -> bool {
|
||||
self.get(i)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user