Rust is doing constant propagation on its internal IR before monomorphisation. This can give faster compiles because LLVM is given less code! https://blog.rust-lang.org/inside-rust/2019/12/02/const-prop-on-by-default.html