Skip to content

[Diagnostics] Guard against missing parent initializer in missing unw… #25575

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
Jun 19, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 18, 2019

…rap diagnostic

While trying to diagnose missing optional unwrap for single use
vars guard against it not having a parent initializer.

Unfortunately there is no test-case for this but we have
received multiple reports about offerDefaultValueUnwrapFixIt
crashing trying to access locator on passed in expr.

Resolves: rdar://problem/51784793

@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 10b875e7cdec0df437ccfcf47d241a1787263711

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 10b875e7cdec0df437ccfcf47d241a1787263711

…rap diagnostic

While trying to diagnose missing optional unwrap for single use
vars guard against it not having a parent initializer.

Unfortunately there is no test-case for this but we have
received multiple reports about `offerDefaultValueUnwrapFixIt`
crashing trying to access locator on passed in `expr`.

Resolves: rdar://problem/51784793
@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2019

@swift-ci please test

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Jun 18, 2019

@swift-ci please test

@xedin xedin merged commit 379d88c into swiftlang:master Jun 19, 2019
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.

2 participants