Skip to content

Move placeholder handling to a proper preprocessing step #140466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

amandasystems
Copy link
Contributor

This commit breaks out the logic of placheolder rewriting into its own preprocessing step. It's one of the more boring
parts of #130227.

The only functional change from this is that the preprocessing step (where extra r: 'static constraints are added) is performed upstream of Polonius legacy, finally affecting Polonius. That is mostly a by-product, though.

This should be reviewable by anyone in the compiler team, so
r? rust-lang/compiler

I am marking this as WIP because in order for it to not interfere with my own in-review PR, I have based it on the branch of #139965. It should be reviewable despite this though.

@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 Apr 29, 2025
@lcnr
Copy link
Contributor

lcnr commented Apr 30, 2025

r? lcnr

@rustbot rustbot assigned lcnr and unassigned estebank Apr 30, 2025
This commit breaks out the logic of placheolder rewriting
into its own preprocessing step. It's one of the more boring
parts of rust-lang#130227.

The only functional change from this is that the preprocessing
step (where extra `r: 'static` constraints are added) is
performed upstream of Polonius legacy, finally affecting
Polonius. That is mostly a by-product, though.
@amandasystems amandasystems force-pushed the move-to-preprocessing-step branch from 8b2cab2 to af75e13 Compare May 2, 2025 08:53
@amandasystems amandasystems changed the title [WIP] Move placeholder handling to a proper preprocessing step Move placeholder handling to a proper preprocessing step May 2, 2025
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.

4 participants