-
Notifications
You must be signed in to change notification settings - Fork 10.5k
NFC: Clean up WhereClauseOwner #28123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFC: Clean up WhereClauseOwner #28123
Conversation
Ugh, formatting conflicts |
lib/Sema/TypeCheckAccess.cpp
Outdated
@@ -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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ownerDecl->diagnose
please.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
3704ba6
to
63562cc
Compare
@swift-ci please smoke test |
🤔 |
63562cc
to
db423e7
Compare
Found the culprit, let's go again. |
@swift-ci please smoke test |
⛵️ |
@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 aTrailingWhereClause
is not an option, becauseWhereClauseOwner
needs a realDeclContext
.