Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ricochet1k committed Dec 28, 2017
1 parent ce76b1a commit e838cfc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2040,12 +2040,11 @@ impl<'a> Parser<'a> {
token::Lifetime(ident) =>
Lifetime { ident: ident, span: self.span, id: ast::DUMMY_NODE_ID },
token::Interpolated(ref nt) => match nt.0 {
token::NtLifetime(lifetime) =>
token::NtLifetime(lifetime) =>
lifetime,
//Lifetime { ident: lifetime.ident, span: lifetime.span, id: ast::DUMMY_NODE_ID },
_ => self.span_bug(self.span, &format!("not a lifetime: {:?}", self.token))
_ => self.span_bug(self.span, "not a lifetime")
}
_ => self.span_bug(self.span, &format!("not a lifetime: {:?}", self.token))
_ => self.span_bug(self.span, "not a lifetime")
};

self.bump();
Expand Down

0 comments on commit e838cfc

Please sign in to comment.