diag: add factual related borrow and task locations

This commit is contained in:
dev committed 2026-10-07 19:12:58 +03:00
1 parent dbd9763713
commit 8ee0f4c2bf
27 files changed
+659 -18

No files matched your search

+1
View File
@@ -542,6 +542,7 @@ While `LOANED`:
- for the verifier it behaves as a live child borrow of the argument, owned by the task handle, with the argument's mode and path;
- ending the argument borrow, or any ancestor of it, while the task is live is `E4302` (`task.borrow_escape`);
an identified task includes its spawn position (spec 10 §2), retained through cancelled-join handle replacement without participating in loan/liveness checks;
- an access or a new borrow that conflicts with a loan of a live task is `E4101` (`concurrency.possible_data_race`) rather than `E2101`, since the other party runs concurrently;
- lending the same exclusive borrow, or overlapping exclusive borrows, to two live tasks is `E4101`; lending disjoint places (different fields, the halves of a `slice.split`, different region allocations) is accepted.