Skip to content

Commit

Permalink
Merge pull request swiftlang#70150 from kavon/ncgenerics-refactoring
Browse files Browse the repository at this point in the history
[nfc] fix closure capture warning
  • Loading branch information
kavon authored Dec 1, 2023
2 parents c91b297 + a44aae6 commit 4071659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Sema/TypeCheckDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,8 @@ NoncopyableAnnotationRequest::evaluate(Evaluator &evaluator,
// - selfTy : ~TARGET
// and records them in the `InverseMarking` result.
auto genWhereClauseVisitor = [&](CanType selfTy, InverseMarking &result) {
return [&](Requirement req, RequirementRepr *repr) -> bool/*=stop search*/ {
return [&, selfTy](Requirement req,
RequirementRepr *repr) -> bool/*=stop search*/ {
if (req.getKind() != RequirementKind::Conformance)
return false;

Expand Down

0 comments on commit 4071659

Please sign in to comment.