Files
rust/compiler
Jonathan Brouwer 58b1130a18 Rollup merge of #150707 - Delta17920:fix-transmute-valtree-ice, r=BoxyUwU
Fix ICE when transmute Assume field is invalid

This PR fixes an internal compiler error in `rustc_transmute` where initializing an `Assume` field (like `alignment`) with a non-scalar constant (like a struct) caused a panic.

The fix updates `from_const` to use `try_to_scalar()` instead of assuming the value is always a leaf. It now gracefully returns `None` for invalid types, allowing the compiler to report standard "missing field initialiser" errors instead of crashing.

Fixes rust-lang/rust#150506
2026-01-06 16:19:44 +01:00
..
2025-12-19 15:04:30 -08:00
2025-10-12 08:08:30 +00:00
2025-12-28 16:12:27 +00:00