libsyntax: Stop parsing old lifetime syntax
This commit is contained in:
parent
66770d20b3
commit
e2fde83ce4
@ -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"),
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user