librustc: Convert all uses of old lifetime notation to new lifetime notation. rs=delifetiming
This commit is contained in:
parent
7352d919f6
commit
352c070365
147 changed files with 523 additions and 501 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue