diag: explain pointer-sized cast restrictions in source advice
This commit is contained in:
1 parent
8a714ba6de
commit
6a02659f31
23 files changed
+96
-8
No files matched your search
@@ -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` |
|
||||
|
||||
|
||||
Reference in new issue
Block a user