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

@ -47,14 +47,14 @@ enum UsageSource {
UsgStr(&'self str)
}
struct Command {
struct Command<'self> {
cmd: &'self str,
action: Action/&self,
action: Action<'self>,
usage_line: &'self str,
usage_full: UsageSource/&self
usage_full: UsageSource<'self>,
}
static commands: &'static [Command/&static] = &[
static commands: &'static [Command<'static>] = &[
Command{
cmd: "build",
action: Exec("rustc"),

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;