Skip to content
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

CFI: Recursively transform predicates in ty::Dynamic rather than using identity (Redux) #123524

Closed
wants to merge 7 commits into from

Conversation

maurer
Copy link
Contributor

@maurer maurer commented Apr 5, 2024

Now that we're using TypeFolder, avoiding the instantiation at identity and keeping the Projection clauses is as simple as not transforming ty::Dynamic - the folder will recursively visit the args for us where needed.

This is intended to have the same effect as #123045

This is currently on top of #123521, but if it appears that won't land, it can easily be rebased onto master. Setting as draft until #123521 is merged or rejected.

r? compiler-errors

@rustbot rustbot added PG-exploit-mitigations Project group: Exploit mitigations 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 5, 2024
@compiler-errors
Copy link
Member

why did you open this as a separate PR rather than let me just rebase #123045? lol

@maurer
Copy link
Contributor Author

maurer commented Apr 5, 2024

Sure, I'll close this.

@maurer maurer closed this Apr 5, 2024
@maurer
Copy link
Contributor Author

maurer commented Apr 6, 2024

Re-opened no longer on top of #123521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG-exploit-mitigations Project group: Exploit mitigations 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.

3 participants