Implement resolution, parse use<Self>
This commit is contained in:
@@ -694,7 +694,13 @@ impl<'a> Parser<'a> {
|
||||
&TokenKind::Gt,
|
||||
SeqSep::trailing_allowed(token::Comma),
|
||||
|self_| {
|
||||
if self_.check_ident() {
|
||||
if self_.check_keyword(kw::SelfUpper) {
|
||||
self_.bump();
|
||||
Ok(PreciseCapturingArg::Arg(
|
||||
self_.prev_token.ident().unwrap().0,
|
||||
DUMMY_NODE_ID,
|
||||
))
|
||||
} else if self_.check_ident() {
|
||||
Ok(PreciseCapturingArg::Arg(self_.parse_ident().unwrap(), DUMMY_NODE_ID))
|
||||
} else if self_.check_lifetime() {
|
||||
Ok(PreciseCapturingArg::Lifetime(self_.expect_lifetime()))
|
||||
|
||||
Reference in New Issue
Block a user