source: scrub iter-code / Decision-N residue from inline comments
Follow-up to bcd4181: the remaining ~530 inline `//` and `///`
comments still carrying opaque shorthand are now reformulated to
their content phrases. The only surviving `iter-<code>` reference
in source is the literal filename
`docs/journals/2026-05-13-iter-mq.3.md` (a real journal file).
Sweep covered:
- `// Iter X.Y: <text>` prefixes (Iter 13a / 14a / 14e / 15g-aux /
16b.x / 16d / 16e / 18b / 18c.x / 18d.x / 18e / 18g.x / 19a /
19a.1 / 19b / 20a / 20f / 22-floats.x / 22b.x / 22c / 23.x /
24.1 / cli-diag-human / hs.x / str-concat / etc.) — fully
removed; the descriptive text that followed each prefix stays.
- `// (Decision N)` and `per Decision N` and `Decision N axis 3` —
replaced with the content phrase plus the relevant contract
file (`design/contracts/tail-calls.md` for Decision 8,
`design/contracts/memory-model.md` for Decision 10,
`design/contracts/typeclasses.md` and `design/models/typeclasses.md`
for Decision 11, `design/contracts/authoring-surface.md` for
Decision 6, "the transitional dual-allocator" for Decision 9,
"Effect prose" for Decision 3).
- `// mq.X / mq.X (Task N) / mq.X journal / mq.X invariant` ->
"the canonical-class-form rule / Class-class repurpose /
method-dispatch-refactor journal / canonical-class-form
invariant".
- `// ct.X / ct.X (canonical-type-names) / ct.1.5a + ctt.2 /
ct.2 Task N` -> "the canonical-form rule for type references /
the canonical-form normalisation step / canonical-type-lookup
refactor".
- `// eob.X` -> "heap-Str-ABI" / "the Str carve-out".
- `// rpe.X` -> "the per-type-print-op retirement".
- `// post-mq.X / Pre-ct.X / pre-mq.X` -> "post-canonical-class-form" /
"Pre-canonical-type-form" etc.
- `/// Iter X regression: / /// Iter X.Y: / /// Iter A arm-close /
/// Iter ct.4 (...): / /// Iter rpe.1 ...` -> descriptive
phrases.
The journal filename in `crates/ailang-core/src/workspace.rs:573`
stays verbatim because it points at an actual file under
`docs/journals/`.
Tests: full `cargo test --workspace` green (80/80 test-result blocks
clean, no FAILED line). design_index_pin 5/5 + docs_honesty_pin 5/5
gating tests pass.
This commit is contained in:
@@ -30,7 +30,7 @@ fn lower_eq_primitives_smoke() -> String {
|
||||
lower_workspace(&ws).expect("lower")
|
||||
}
|
||||
|
||||
/// Iter 23.2: integration with the auto-loaded prelude. Compiling a
|
||||
/// integration with the auto-loaded prelude. Compiling a
|
||||
/// workspace that calls `eq` on an Int pair must produce a
|
||||
/// mono-synthesised `@ail_prelude_eq__Int` whose body lowers to
|
||||
/// `icmp eq i64`. Full pipeline: end-of-typecheck → monomorphise →
|
||||
@@ -48,7 +48,7 @@ fn eq_int_call_produces_icmp_i64_mono_fn() {
|
||||
);
|
||||
}
|
||||
|
||||
/// Iter 23.2: same shape as `eq_int_call_produces_icmp_i64_mono_fn`
|
||||
/// same shape as `eq_int_call_produces_icmp_i64_mono_fn`
|
||||
/// for Bool. Asserts the mono-synthesised `@ail_prelude_eq__Bool`
|
||||
/// lowers to `icmp eq i1`.
|
||||
#[test]
|
||||
@@ -64,7 +64,7 @@ fn eq_bool_call_produces_icmp_i1_mono_fn() {
|
||||
);
|
||||
}
|
||||
|
||||
/// Iter 23.2: Str's mono-symbol body is hand-rolled by the
|
||||
/// Str's mono-symbol body is hand-rolled by the
|
||||
/// `try_emit_primitive_instance_body` intercept. Asserts the intercept
|
||||
/// fires for the prelude-loaded `eq__Str` synthesised against a real
|
||||
/// user fixture that calls `eq` on Str.
|
||||
|
||||
Reference in New Issue
Block a user