-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: Refactor: Split into modules #123521
Conversation
Some changes occurred in compiler/rustc_symbol_mangling/src/typeid cc @rust-lang/project-exploit-mitigations, @rcvalle |
I'll take a look at it, but it might have to wait a little bit because we're in the middle of moving all sanitizers related code into a rustc_sanitizers crate and stabilizing the core sanitizers, and we'll have to see how it fits in the planned design (@davidtwco and I). |
☔ The latest upstream changes (presumably #123517) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first glance, these changes all seem reasonable to me, but will conflict with #123620 so you might want to wait until that lands?
Thanks a lot for your time and work on this, @maurer! Much appreciated. I took a look, and after #123620 is merged, I think we what we want from here is:
The abstraction for Would you mind rebasing these on top of #123620 whenever you have time? |
@rustbot author |
@maurer any updates on this? thanks |
Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks |
We have almost all the implementation in a single ~1200 line file, and have had a lot of churn that leaves debris around.
I believe this to be no-functional-change, just code organization and cleanup.
This change:
instance
, which has our instance generalization code,ty
, which has thetransform_ty
logic, anditanium_cxx_abi
, which has the type encoding.use rustc_symbol_mangling::typeid;
instance::transform
andty::transform