Skip to content

Commit 2711434

Browse files
committed
Don't allow space between @Lifetime and '('
1 parent 008431c commit 2711434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5161,8 +5161,8 @@ ParserResult<LifetimeEntry> Parser::parseLifetimeEntry(SourceLoc loc) {
51615161
status.setIsParseError();
51625162
return status;
51635163
}
5164-
// consume the l_paren
5165-
auto lParenLoc = consumeToken();
5164+
5165+
auto lParenLoc = consumeAttributeLParen(); // consume the l_paren
51665166

51675167
std::optional<LifetimeDescriptor> targetDescriptor;
51685168
if (Tok.isAny(tok::identifier, tok::integer_literal, tok::kw_self) &&

0 commit comments

Comments
 (0)