mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 03:27:44 +00:00
parser comment
This commit is contained in:
parent
975f264983
commit
05ab83eea8
@ -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…
Reference in New Issue
Block a user