Don't inline tainted MIR bodies by compiler-errors · Pull Request #128616 · rust-lang/rust (original) (raw)

Don't inline MIR bodies that are tainted, since they're not necessarily well-formed.

Fixes #128601 (I didn't add a new test, just copied one from the crashes, since they're the same root cause).
Fixes #122909.