Files
rust/compiler/rustc_codegen_llvm
bors 485ec3fbcc Auto merge of #157480 - nikic:captures-metadata, r=RalfJung
Set !captures metadata for store of &Freeze

When a `&Freeze` reference is stored (with retag), emit `!captures !{!"address", !"read_provenance"}` metadata to indicate that it's UB to write through the stored pointer.

Related to https://github.com/rust-lang/rust/issues/146844.

r? @ghost
2026-06-10 11:12:13 +00: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.