Files
swift-mirror/userdocs/diagnostics/region-isolation-unknown-pattern.md
T
Michael Gottesman 43bf55cb19 [rbi] Add diagnostic groups and documentation for cross-isolation data race and unknown pattern errors
Introduce two new diagnostic groups: RegionIsolationCrossIsolationDataRace
and RegionIsolationUnknownPattern, both linked as children of the existing
RegionIsolation group. This converts the merge-region-failure errors and the
unknown-pattern error from plain ERROR to GROUPED_ERROR, which allows users
to selectively downgrade these diagnostics (e.g. the unknown pattern error
can be downgraded since it represents a compiler limitation rather than a
definite user error).

Add user-facing documentation for both groups explaining what triggers the
diagnostics and how to resolve them.

rdar://175771878
2026-04-28 10:34:22 -07:00

506 B

Unknown region isolation pattern (RegionIsolationUnknownPattern)

Overview

This diagnostic indicates that the region-based isolation checker has detected an isolation error but the compiler does not currently know how to emit a descriptive diagnostic for the detected pattern. This is a compiler bug. If you encounter this diagnostic, please file a bug report at https://github.com/swiftlang/swift/issues with a minimal example that reproduces the issue.