Skip to content

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

Closed
maurer wants to merge 7 commits into
rust-lang:masterfrom
maurer:no-id-dyn2
Closed

CFI: Recursively transform predicates in ty::Dynamic rather than using identity (Redux)#123524
maurer wants to merge 7 commits into
rust-lang:masterfrom
maurer:no-id-dyn2

Conversation

@maurer

@maurer maurer commented Apr 5, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@maurer

maurer commented Apr 5, 2024

Copy link
Copy Markdown
Contributor Author

Sure, I'll close this.

@maurer maurer closed this Apr 5, 2024
@maurer

maurer commented Apr 6, 2024

Copy link
Copy Markdown
Contributor Author

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