mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00

The codegen main loop has two bools, `codegen_done` and `codegen_aborted`. There are only three valid combinations: `(false, false)`, `(true, false)`, `(true, true)`. This commit replaces them with a single tri-state enum, which makes things clearer.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.