libsyntax: Stop parsing old lifetime syntax
This commit is contained in:
parent
66770d20b3
commit
e2fde83ce4
2 changed files with 5 additions and 4 deletions
|
@ -47,14 +47,14 @@ enum UsageSource {
|
||||||
UsgStr(&'self str)
|
UsgStr(&'self str)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Command {
|
struct Command<'self> {
|
||||||
cmd: &'self str,
|
cmd: &'self str,
|
||||||
action: Action/&self,
|
action: Action<'self>,
|
||||||
usage_line: &'self str,
|
usage_line: &'self str,
|
||||||
usage_full: UsageSource/&self
|
usage_full: UsageSource<'self>,
|
||||||
}
|
}
|
||||||
|
|
||||||
static commands: &'static [Command/&static] = &[
|
static commands: &'static [Command<'static>] = &[
|
||||||
Command{
|
Command{
|
||||||
cmd: "build",
|
cmd: "build",
|
||||||
action: Exec("rustc"),
|
action: Exec("rustc"),
|
||||||
|
|
|
@ -910,6 +910,7 @@ pub impl Parser {
|
||||||
&& self.look_ahead(1u) == token::BINOP(token::AND)
|
&& self.look_ahead(1u) == token::BINOP(token::AND)
|
||||||
{
|
{
|
||||||
self.bump(); self.bump();
|
self.bump(); self.bump();
|
||||||
|
self.obsolete(*self.last_span, ObsoleteLifetimeNotation);
|
||||||
match *self.token {
|
match *self.token {
|
||||||
token::IDENT(sid, _) => {
|
token::IDENT(sid, _) => {
|
||||||
let span = copy self.span;
|
let span = copy self.span;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue