Skip to content

CFI: Abstract Closures and Coroutines#123106

Merged
bors merged 2 commits intorust-lang:masterfrom
maurer:cfi-closures
Mar 30, 2024
Merged

CFI: Abstract Closures and Coroutines#123106
bors merged 2 commits intorust-lang:masterfrom
maurer:cfi-closures

Conversation

@maurer
Copy link
Contributor

@maurer maurer commented Mar 26, 2024

This will abstract coroutines in a moment, it's just abstracting closures for now to show @rcvalle

This uses the same principal as the methods on traits - figure out the dyn type representing the fn trait, instantiate it, and attach that alias set. We're essentially just computing how we would be called in a dynamic context, and attaching that.

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

Labels

merged-by-bors This PR was explicitly merged by bors. PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

8 participants