1
Fork 0

librustc: Add explicit lifetime binders and new lifetime notation in core/std/syntax/rustc

This commit is contained in:
Patrick Walton 2013-03-22 15:52:50 -07:00
parent 68cb53672b
commit 6d81307a9b
16 changed files with 135 additions and 116 deletions

View file

@ -749,7 +749,7 @@ pub fn Decoder(json: Json) -> Decoder {
Decoder { json: json, stack: ~[] }
}
priv impl Decoder/&self {
priv impl Decoder<'self> {
fn peek(&self) -> &'self Json {
if vec::uniq_len(&const self.stack) == 0 {
self.stack.push(&self.json);
@ -765,7 +765,7 @@ priv impl Decoder/&self {
}
}
impl serialize::Decoder for Decoder/&self {
impl serialize::Decoder for Decoder<'self> {
fn read_nil(&self) -> () {
debug!("read_nil");
match *self.pop() {