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,2 +1,2 @@
[{"kind":"numeric_cast_modes","hint":"Choose `as!` for a checked conversion (T0006 on overflow) or `as%` for a wrapping conversion.","alternatives":["as!","as%"]}]
[{"kind":"numeric_cast_modes","hint":"Choose `as!` for a checked conversion (T0006 on overflow) or `as%` for a wrapping conversion.","alternatives":["as!","as%"]}]
[{"kind":"numeric_cast_modes","hint":"The target-independent `as` rule excludes `usize`/`isize`, even when the value fits. Choose `as!` for a checked conversion (T0006 on overflow) or `as%` for a wrapping conversion.","alternatives":["as!","as%"]}]
[{"kind":"numeric_cast_modes","hint":"The target-independent `as` rule excludes `usize`/`isize`, even when the value fits. Choose `as!` for a checked conversion (T0006 on overflow) or `as%` for a wrapping conversion.","alternatives":["as!","as%"]}]