Skip to content

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

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

Emit retags in codegen to support BorrowSanitizer (part 2)#156210
icmccorm wants to merge 3 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.

@icmccorm icmccorm force-pushed the codegen-emit-retag-2 branch from 951a9ed to 4e3df71 Compare May 7, 2026 17:02
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 7, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@icmccorm
Copy link
Copy Markdown
Author

icmccorm commented May 7, 2026

Now that #154327 has been merged, we no longer need special handling for drop glue.

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