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

+2
View File
@@ -329,6 +329,8 @@ scope s { // every task spawned in s must
| T0010 | `iref` of another graph | use a handle with the graph it came from |
| T0001–T0009 | runtime trap | see `kind` and `source_location` |
E2101/E2104 `related_locations` identifies the selected conflicting borrow; E4302 identifies its task's spawn. Use the source position when present; an unmapped record retains AIR coordinates and the SSA identity. These are facts, not repair instructions.
## 10. Standard library
Import a bundled module after the module header; call its functions by their full path. `std.bytes` and `std.math` are safe source, declare `effects []` and allocate no heap. No grants are needed. Read `/docs/library/std.md` for the API.