swift
4e36390d - [rbi] Detect incompatible actor isolation merges during direct assignment

Commit
248 days ago
[rbi] Detect incompatible actor isolation merges during direct assignment Previously, `assignDirect` did not verify that the destination element's actor isolation was compatible with the source element's region isolation before performing the assignment. This meant that assigning between fields isolated to different actors (e.g. `@MainActor` to `@CustomActor`) would silently succeed without emitting a diagnostic until we attempted to merge them later (causing a crash). `assignIndirect` already performed this check, but `assignDirect` was missing it.
Author
Committer
Parents
Loading