mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-08 13:20:11 +00:00

MIR borrowck taints its output if an obligation fails. This could then cause `check_coroutine_obligations` to silence its error, causing us to not emit and actual error and ICE.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.