1
Fork 0

libsyntax: Stop parsing old lifetime syntax

This commit is contained in:
Patrick Walton 2013-03-22 16:28:54 -07:00
parent 66770d20b3
commit e2fde83ce4
2 changed files with 5 additions and 4 deletions

View file

@ -910,6 +910,7 @@ pub impl Parser {
&& self.look_ahead(1u) == token::BINOP(token::AND)
{
self.bump(); self.bump();
self.obsolete(*self.last_span, ObsoleteLifetimeNotation);
match *self.token {
token::IDENT(sid, _) => {
let span = copy self.span;