1
Fork 0

librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming

This commit is contained in:
Patrick Walton 2013-03-14 11:22:51 -07:00
parent 7352d919f6
commit 352c070365
147 changed files with 523 additions and 501 deletions

View file

@ -213,7 +213,7 @@ impl<D:Decoder> Decodable<D> for i64 {
}
}
impl<S:Encoder> Encodable<S> for &self/str {
impl<S:Encoder> Encodable<S> for &'self str {
fn encode(&self, s: &S) { s.emit_borrowed_str(*self) }
}
@ -286,7 +286,7 @@ impl<D:Decoder> Decodable<D> for () {
}
}
impl<S:Encoder,T:Encodable<S>> Encodable<S> for &self/T {
impl<S:Encoder,T:Encodable<S>> Encodable<S> for &'self T {
fn encode(&self, s: &S) {
s.emit_borrowed(|| (**self).encode(s))
}
@ -316,7 +316,7 @@ impl<D:Decoder,T:Decodable<D>> Decodable<D> for @T {
}
}
impl<S:Encoder,T:Encodable<S>> Encodable<S> for &self/[T] {
impl<S:Encoder,T:Encodable<S>> Encodable<S> for &'self [T] {
fn encode(&self, s: &S) {
do s.emit_borrowed_vec(self.len()) {
for self.eachi |i, e| {