Diagnostics: borrow-return-not-permitted + consume-while-borrowed should name the fix #59
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fieldtest finding from the #55 cutover (docs/specs/0065). The reject diagnostics explain the WHY but do not name the FIX:
borrow-return-not-permitted— should point at(own ...)+cloneto return a projection (the cut55_4b escape hatch).consume-while-borrowed— should point at annotating the param(own ...)when the body genuinely consumes it.The cut55 cutover-surface corpus test (crates/ail/tests/cut55_cutover_surface.rs) asserts on diagnostic CODES, not message text, so this can land without touching the corpus. Improves the LLM-author feedback loop (feature-acceptance: a diagnostic that names the fix measurably shortens the author's correction path).
context: surfaced by the #55 fieldtest; decoupled from the corpus test by design.