Files
rust/compiler/rustc_codegen_llvm
bors f46ec5218f Auto merge of #158610 - JonathanBrouwer:rollup-YAPZ5ee, r=JonathanBrouwer
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#158600 (Fix `rustc --unpretty=expanded` emit of `[const] [unsafe] impl Trait for`)
 - rust-lang/rust#158560 (Move per-function debuginfo methods from codegen to builder methods)
 - rust-lang/rust#158563 (Test(lib/net): Fix `hostname_smoketest` for Win7)
 - rust-lang/rust#158571 (Update books)
 - rust-lang/rust#158592 (tests: only run `lexical-scope-in-match.rs` for LLDB >= 21)
2026-06-30 12:41:46 +00:00
..
2026-06-24 23:18:10 +01:00
…

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc dev guide.