librustc: Modify all code to use new lifetime binder syntax
This commit is contained in:
@@ -741,7 +741,7 @@ pub fn from_str(s: &str) -> Result<Json, Error> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Decoder {
|
||||
pub struct Decoder<'self> {
|
||||
priv json: Json,
|
||||
priv mut stack: ~[&'self Json],
|
||||
}
|
||||
@@ -750,7 +750,7 @@ pub fn Decoder(json: Json) -> Decoder {
|
||||
Decoder { json: json, stack: ~[] }
|
||||
}
|
||||
|
||||
priv impl Decoder<'self> {
|
||||
priv impl<'self> Decoder<'self> {
|
||||
fn peek(&self) -> &'self Json {
|
||||
if vec::uniq_len(&const self.stack) == 0 {
|
||||
self.stack.push(&self.json);
|
||||
@@ -766,7 +766,7 @@ priv impl Decoder<'self> {
|
||||
}
|
||||
}
|
||||
|
||||
impl serialize::Decoder for Decoder<'self> {
|
||||
impl<'self> serialize::Decoder for Decoder<'self> {
|
||||
fn read_nil(&self) -> () {
|
||||
debug!("read_nil");
|
||||
match *self.pop() {
|
||||
|
||||
Reference in New Issue
Block a user