You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codegen ICE on x87_f80 (nightly-2026-11-12): transmute_to size mismatch 128 vs 48 bits #5191
Kani main at faffcee3 (nightly-2026-11-12), CBMC 6.11.0.
Cause, as far as I can tell:
core::num::imp::x87_f80::x87_f80 is pub struct x87_f80(x87_f80_raw), and x87_f80_raw is an empty struct marked #[lang = "x87_f80_raw"]. Its size and alignment come from rustc: 16 bytes, i.e. the 128 bits in the assertion.
Kani builds the goto type from the struct's fields, so its size doesn't match rustc's layout.
Expr::transmute_to then asserts equal sizes and fails. In core it's reached through mem::transmute_neo::<MaybeUninit<x87_f80>, x87_f80>.
The type needs to be laid out from rustc's layout (e.g. as an opaque byte array or padded struct of layout.size), like other lang-item types whose layout the compiler defines.
Impact: this blocks verify-rust-std's sync to nightly-2026-11-12 (model-checking/verify-rust-std#766). kani autoharness / kani list --with-autoharness over the standard library abort while compiling core, so the Kani List, autoharness and Metrics jobs can't run.
Activity
Give the x87_f80_raw lang item its rustc size (model-checking#5197)
Bump Kani to 53cb531 to fix the x87_f80 codegen crash