Skip to content

Emit retags in codegen to support BorrowSanitizer (part 2)#156210

Open
icmccorm wants to merge 2 commits intorust-lang:mainfrom
BorrowSanitizer:codegen-emit-retag-2
Open

Emit retags in codegen to support BorrowSanitizer (part 2)#156210
icmccorm wants to merge 2 commits intorust-lang:mainfrom
BorrowSanitizer:codegen-emit-retag-2

Conversation

@icmccorm
Copy link
Copy Markdown

@icmccorm icmccorm commented May 5, 2026

Tracking issue: #154760
Zulip Thread

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 #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 #156208.

r? @RalfJung

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 5, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 5, 2026

RalfJung is not on the review rotation at the moment.
They may take a while to respond.

@saethlin
Copy link
Copy Markdown
Member

saethlin commented May 5, 2026

r? saethlin

@rustbot rustbot assigned saethlin and unassigned RalfJung May 5, 2026
@rust-log-analyzer

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants