Skip to content

Commit a645a70

Browse files
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
2 parents dbb8e59 + b7820e7 commit a645a70

0 file changed

File tree

    0 commit comments

    Comments
     (0)