swift
0137f5e0 - [SourceKit] Disable cancellation of in-flight non-completion requests

Commit
3 years ago
[SourceKit] Disable cancellation of in-flight non-completion requests We need to run SILGen for diagnostics (to actually get all diagnostics). All non-completion requests share an AST and thus they too run SILGen. Any lazy typechecking run in SILGen assumes that it succeeds. Cancellation can cause typechecking to fail here though, since we simply check the flag and error if it's set. This unfortunately has the ability to cause any any number of crashes since various invariants in SILGen are then broken. Disable cancellation of in-flight non-completion requests for now until we have a proper fix in place. Resolves rdar://91251017.
Author
Committer
Parents
Loading