parser comment
This commit is contained in:
parent
975f264983
commit
05ab83eea8
1 changed files with 1 additions and 0 deletions
|
@ -2496,6 +2496,7 @@ pub impl Parser {
|
||||||
@ast::pat { id: self.get_id(), node: pat, span: mk_sp(lo, hi) }
|
@ast::pat { id: self.get_id(), node: pat, span: mk_sp(lo, hi) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// parse ident or ident @ pat
|
||||||
// used by the copy foo and ref foo patterns to give a good
|
// used by the copy foo and ref foo patterns to give a good
|
||||||
// error message when parsing mistakes like ref foo(a,b)
|
// error message when parsing mistakes like ref foo(a,b)
|
||||||
fn parse_pat_ident(&self,
|
fn parse_pat_ident(&self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue