diag: add factual related borrow and task locations
This commit is contained in:
1 parent
dbd9763713
commit
8ee0f4c2bf
27 files changed
+659
-18
No files matched your search
@@ -423,6 +423,8 @@ Its diagnostics keep their AIR codes, reported at the source location.
|
||||
|
||||
Every E7006 MUST include a stable string `reason` from the [reason registry](../reference/error-codes.md#e7006-reasons), chosen directly by the rejecting rule, independently of `message`. `move_copy` denotes an explicit rejected move of a plain Copy value; borrows use `move_borrow`, and non-materializable operands use `invalid_move`. Permitted generic transfers MUST NOT emit these errors. Reason meanings MUST remain stable; extensions MAY add registered reasons. Consumers MUST tolerate new reasons. Codes, rejection rules, primary positions and existing fields are unchanged; `reason` is appended after existing code-specific fields. A historical or incomplete record without a reason is unknown, never evidence of `move_copy` or its absence.
|
||||
|
||||
Each related AIR position (spec 10 §2) MUST be mapped independently through the lowering map, including imported/specialized source files, retaining its original coordinates as `air_line`/`air_col`. If absent, the related source `file`/`line`/`col` MUST be omitted together; `role`, `value` and AIR coordinates remain. A guessed related source position MUST NOT be substituted. Primary fallback and duplicate selection remain unchanged.
|
||||
|
||||
## 11. Tooling
|
||||
|
||||
| Command | Does |
|
||||
|
||||
Reference in new issue
Block a user