Files
rust/tests/ui/const-generics
Jonathan Brouwer 794ac4e0a2 Rollup merge of #152794 - reddevilmidzy:mgca-print, r=BoxyUwU
Fix ICE in `try_to_raw_bytes` when array elements have mismatched

close: rust-lang/rust#152683

After rust-lang/rust#152001, suffixed integer literals preserve their own type during const lowering, so `try_to_raw_bytes` could call `.to_u8()` on a scalar with size > 1, causing an ICE. Fix by using `try_to_bits(Size::from_bytes(1)).ok()` instead.

r? BoxyUwU
2026-02-28 19:55:50 +01:00
..
2025-12-02 18:25:13 +00:00
2026-02-11 18:08:18 +09:00
2026-02-17 16:51:44 +00:00
2026-02-21 21:06:01 +01:00
2025-09-08 22:07:43 -04:00
2023-12-24 01:58:13 +08:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2024-09-07 09:23:28 +08:00
2023-07-27 15:51:02 +00:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2025-12-02 18:25:13 +00:00
2025-07-31 21:25:49 +05:00