Commit c4dc8ee
Add Expr::Cast arm in expr_to_rust (bootstrap/src/compiler.rs), mirroring
the gen-verilog arm at compiler.rs:4941. Before this fix, ExprCast fell
through to the default '_ => "()".to_string()' branch and generated
empty-tuple stubs in Rust output, silently corrupting any T27 spec using
bit-width casts.
Also update docs/NOW.md with an exprcast-rust-emitter entry (required by
the NOW Sync Gate).
Closes #1314 (gen-rust half; gen-c and gen-zig follow-ups tracked
separately). Unblocks gHashTag/tri-net#33 T27-first wire flip.
Anchor: phi^2 + phi^-2 = 3
Co-authored-by: Perplexity Computer <agent@perplexity.ai>
1 parent bc70a05 commit c4dc8ee
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8169 | 8169 | | |
8170 | 8170 | | |
8171 | 8171 | | |
| 8172 | + | |
| 8173 | + | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
| 8185 | + | |
| 8186 | + | |
| 8187 | + | |
| 8188 | + | |
| 8189 | + | |
8172 | 8190 | | |
8173 | 8191 | | |
8174 | 8192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
0 commit comments