ensure failing promoteds in const/static bodies are handled correctly by RalfJung · Pull Request #85112 · rust-lang/rust (original) (raw)
const
/static
bodies are the one case where we still promote code that might fail to evaluate. Ensure that this is handled correctly; in particular, it must not fail compilation.
src/test/ui/consts/const-eval/erroneous-const.rs
ensures that when a non-promoted fails to evaluate, we do show an error.
r? @oli-obk