Open
Description
Ever since #116505 landed, functions can be missing from "--emit=llvm-ir" and "--emit=asm" unless they are declared with #[inline(never)]
or #[no_mangle]
. This is quite surprising to most people that want to explore the LLVM IR / asm of a Rust function.
It's unclear how to best fix this, since not producing LLVM IR or asm (but only MIR) when compiling these functions was part of the goal of #116505. Maybe these --emit
flags should themselves cause the functions to be monomorphized so they become visible again?