Skip to content

Serialization: Don't crash in loadAllConformances in extended recovery #79927

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
Mar 13, 2025

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Mar 11, 2025

In extended recovery mode we should recover from all errors without crashing. Protect loadAllConformances and drop all conformance errors in this mode.

This was already the logic applied in background indexing, also apply it in index-while-building and LLDB.

rdar://81811394

In extended recovery mode we should recover from all errors without
crashing. Protect loadAllConformances and drop all conformance errors in
this mode.

rdar://81811394
@xymus
Copy link
Contributor Author

xymus commented Mar 11, 2025

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Mar 12, 2025

@swift-ci Please smoke test macOS

@xymus
Copy link
Contributor Author

xymus commented Mar 13, 2025

We should also make consumeExpectedError accept TypeErrors with an expected underlying error.

@xymus xymus merged commit 1392926 into swiftlang:main Mar 13, 2025
3 checks passed
@xymus xymus deleted the deser-protect-loadAllConformances branch March 13, 2025 16:39
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