mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 03:36:21 +00:00

`CodegenContext` is immutable except for the `worker` field - we clone `CodegenContext` in multiple places, changing the `worker` field each time. It's simpler to move the `worker` field out of `CodegenContext`.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.