librustc: Add explicit lifetime binders and new lifetime notation in core/std/syntax/rustc
This commit is contained in:
parent
68cb53672b
commit
6d81307a9b
16 changed files with 135 additions and 116 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue