mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
add an experimental feature DeferSendableChecking to defer the sendable checking of some sites. For now, only diagnostics corresponding to non-sendable arguments passed to calls with unsatisfied isolation are deferred. A SIL pass SendNonSendable is added to emit the deferred diagnostics, and ApplyExpr is appropriately enriched to make that deferral possible.
This commit is contained in:
@@ -217,6 +217,9 @@ EXPERIMENTAL_FEATURE(BuiltinModule, true)
|
||||
// Enable strict concurrency.
|
||||
EXPERIMENTAL_FEATURE(StrictConcurrency, true)
|
||||
|
||||
/// Defer Sendable checking to SIL diagnostic phase.
|
||||
EXPERIMENTAL_FEATURE(DeferredSendableChecking, false)
|
||||
|
||||
#undef EXPERIMENTAL_FEATURE_EXCLUDED_FROM_MODULE_INTERFACE
|
||||
#undef EXPERIMENTAL_FEATURE
|
||||
#undef UPCOMING_FEATURE
|
||||
|
||||
Reference in New Issue
Block a user