-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Serialization] Recover from failures under AnyObjectLookup #41647
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
Conversation
@swift-ci Please smoke test |
@beccadax Thank you for the concise reproducer! |
CC @nkcsgexi since this is close to something you're investigating. |
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.
👍
auto declOrError = getDeclChecked(item.second); | ||
if (!declOrError) { | ||
if (!getContext().LangOpts.EnableDeserializationRecovery) | ||
fatal(declOrError.takeError()); | ||
consumeError(declOrError.takeError()); | ||
continue; | ||
} |
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.
We have this block in... quite a few places now. Should we abstract it into another method? Probably fine to do in a follow up either way.
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.
We could use an alternative to getDeclChecked
that drops the error. It could clean up these call sites a bit and we could use it to apply more precise filtering of the errors, to drop only XRef/implementation-only errors for example.
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.
Sounds good to me!
a5a592d
to
694b629
Compare
Updated to use the mock-sdk and fix other OSes. @swift-ci Please smoke test |
rdar://89494507
694b629
to
4d75242
Compare
@swift-ci Please smoke test |
1 similar comment
@swift-ci Please smoke test |
@swift-ci Please smoke test macOS |
rdar://89494507