We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2711434 commit a3740aeCopy full SHA for a3740ae
lib/Parse/ParseDecl.cpp
@@ -5165,7 +5165,8 @@ ParserResult<LifetimeEntry> Parser::parseLifetimeEntry(SourceLoc loc) {
5165
auto lParenLoc = consumeAttributeLParen(); // consume the l_paren
5166
5167
std::optional<LifetimeDescriptor> targetDescriptor;
5168
- if (Tok.isAny(tok::identifier, tok::integer_literal, tok::kw_self) &&
+ if (!isInSILMode() &&
5169
+ Tok.isAny(tok::identifier, tok::integer_literal, tok::kw_self) &&
5170
peekToken().is(tok::colon)) {
5171
targetDescriptor = parseLifetimeDescriptor(*this);
5172
if (!targetDescriptor) {
0 commit comments