This assert was added when porting legalization from Python to Rust and doesn't hold when we have derived type variables.
This crate contains the core Cranelift code generator. It translates code from an intermediate representation into executable machine code.