Files
rust/compiler/rustc_interface
Jacob Pratt fa82c8dc3e Rollup merge of #156210 - BorrowSanitizer:codegen-emit-retag-2, r=saethlin
Emit retags in codegen to support BorrowSanitizer (part 2)

Tracking issue: rust-lang/rust#154760
[Zulip Thread](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Staging.20for.20emitting.20retags.20in.20codegen/with/593004012)

This is one of several PRs that will add experimental support for emitting retags as function calls in codegen. Each PR will be a minimal, improved slice of the changes in rust-lang/rust#155965.

This PR adds a new unstable flag `-Zcodegen-emit-retag`, which will enable experimental retag calls in generated code. This flag is a nop for now, but the relevant methods have been added to codegen_ssa, and they are called wherever retags are necessary. Subsequent PRs will complete this implementation.

This does not depend on rust-lang/rust#156208.

r? @RalfJung
2026-06-03 21:49:45 -04:00
..