librustc: Modify all code to use new lifetime binder syntax
This commit is contained in:
parent
15688eaf28
commit
8b56a8380b
138 changed files with 427 additions and 509 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue