It was suggested to lower this in MIR instead of ssa, so do that instead.
For more information about how rustc works, see the rustc dev guide.