mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-24 00:26:30 -04:00
fa82c8dc3e
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