diag: explain pointer-sized cast restrictions in source advice

This commit is contained in:
dev committed 2026-10-09 21:01:58 +03:00
1 parent 8a714ba6de
commit 6a02659f31
23 files changed
+96 -8

No files matched your search

+1 -1
View File
@@ -146,7 +146,7 @@ Lowering: structured control flow becomes blocks and terminators. A variable ass
| Source | AIR |
|---|---|
| `x as T` | `cast.widen`; only where every value is representable, otherwise source `E7005` (§10; AIR `E1002`) |
| `x as T` | `cast.widen`; lossless fixed-width integers only; `usize`/`isize` require `as!` or `as%` (spec 02 §2); otherwise source `E7005` (§10; AIR `E1002`) |
| `x as! T` | `cast.checked` (`T0006`) |
| `x as% T` | `cast.wrap` |