Skip to content

Conversation

AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented Nov 7, 2019

@slavapestov

Midquel for #23489

Apart from the clean up, this will allow us to properly pass a GenericContext rather than just a Decl. As far as I see directly passing a TrailingWhereClause is not an option, because WhereClauseOwner needs a real DeclContext.

@AnthonyLatsis
Copy link
Collaborator Author

Ugh, formatting conflicts

@@ -379,9 +379,9 @@ void AccessControlCheckerBase::checkGenericParamAccess(
auto diagID = diag::generic_param_usable_from_inline;
if (downgradeToWarning == DowngradeToWarning::Yes)
diagID = diag::generic_param_usable_from_inline_warn;
auto diag = TC.diagnose(owner,
auto diag = TC.diagnose(ownerDecl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ownerDecl->diagnose please.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this will fall out of the merge conflict resolution...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I've spotted it now.

@AnthonyLatsis AnthonyLatsis changed the title Clean up WhereClauseOwner NFC: Clean up WhereClauseOwner Nov 7, 2019
@AnthonyLatsis AnthonyLatsis force-pushed the whereclauseowner-cleanup branch from 3704ba6 to 63562cc Compare November 7, 2019 03:20
@CodaFi
Copy link
Contributor

CodaFi commented Nov 7, 2019

@swift-ci please smoke test

@AnthonyLatsis
Copy link
Collaborator Author

🤔

@AnthonyLatsis AnthonyLatsis force-pushed the whereclauseowner-cleanup branch from 63562cc to db423e7 Compare November 7, 2019 18:56
@AnthonyLatsis
Copy link
Collaborator Author

AnthonyLatsis commented Nov 7, 2019

Found the culprit, let's go again.

@theblixguy
Copy link
Collaborator

@swift-ci please smoke test

@CodaFi
Copy link
Contributor

CodaFi commented Nov 8, 2019

⛵️

@CodaFi CodaFi merged commit 110b76e into swiftlang:master Nov 8, 2019
@AnthonyLatsis AnthonyLatsis deleted the whereclauseowner-cleanup branch February 17, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants