Skip to content

Commit 150aca3

Browse files
authored
Merge pull request #60811 from CodaFi/initial-d
2 parents 055df4a + a8b5e14 commit 150aca3

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,6 @@ ERROR(disallowed_var_multiple_getset,none,
231231

232232
ERROR(disallowed_init,none,
233233
"initial value is not allowed here", ())
234-
ERROR(var_init_self_referential,none,
235-
"variable used within its own initial value", ())
236234

237235
ERROR(disallowed_enum_element,none,
238236
"enum 'case' is not allowed outside of an enum", ())

lib/AST/NameLookup.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,8 +2062,6 @@ QualifiedLookupRequest::evaluate(Evaluator &eval, const DeclContext *DC,
20622062
if (!wantProtocolMembers && !currentIsProtocol)
20632063
continue;
20642064

2065-
SmallVector<ProtocolDecl *, 4> protocols;
2066-
20672065
if (auto *protoDecl = dyn_cast<ProtocolDecl>(current)) {
20682066
// If we haven't seen a class declaration yet, look into the protocol.
20692067
if (!sawClassDecl) {

0 commit comments

Comments
 (0)