Files
rust/compiler/rustc_codegen_llvm
Jonathan Brouwer 348c0ba6b1 Rollup merge of #162710 - Zalathar:version-safe, r=chenyukang
cg_llvm: Make the LLVM version-check bindings safe

- Follow-up to https://github.com/rust-lang/rust/pull/161788
---

These version-check functions should always be safe to call, so marking them `safe` avoids some unsafe blocks at call sites.

There should be no change to compiler behaviour.
2026-09-13 16:29:13 +02:00
..
2026-08-31 20:48:05 +02: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.