Skip to content

[5.4] Fix a Family of Crashers in Availability Checking #36104

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

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Feb 23, 2021

The 5.4 copy of #36102

NIO exposed an issue in the new availability walkers where an implicit
check was not being performed. They were able to get this to crash by
using a defer statement - the body of which contains implicit
declarations that got run through the walker. This exposed a wider hole
in availability checking of defer statements. Namely, that it wasn't
happening.

Let's dilute the meaning of `isImplicit` in the availability walkers to
account for this desugaring.

rdar://74484150
@CodaFi CodaFi requested a review from slavapestov February 23, 2021 05:37
@CodaFi CodaFi requested a review from a team as a code owner February 23, 2021 05:37
@CodaFi
Copy link
Contributor Author

CodaFi commented Feb 23, 2021

@swift-ci test

@tkremenek tkremenek merged commit cdfb483 into swiftlang:release/5.4 Feb 23, 2021
@CodaFi CodaFi deleted the deferential-treatment branch February 23, 2021 18:07
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.

3 participants