-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Revert "CFI: Skip non-passed arguments" #123205
base: master
Are you sure you want to change the base?
Revert "CFI: Skip non-passed arguments" #123205
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
Since we're now using an approach which is a variant of rust-lang#123082 (that transforms closures into dynamic Fn traits but isolating it to the Fn call methods only) instead of rust-lang#121962 or rust-lang#122573, skipping non-passed arguments shouldn't be necessary for KCFI anymore and we can claim back the reduced granularity. This reverts commit f2f0d25.
9ce1899
to
8067604
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
We can choose to ship this eventually, since as we've discussed, while I find eliding |
It doesn't just elide (), but also function items, and more (e.g., the extern function and the constructor that had to be wrapped in a reference in the tests so they aren't gone). For example, this made functions that had only one parameter that was a function item and otherwise were each one placed in its own group to be grouped together with all functions that were just But yes, we should wait the remaining patches to be merged and test this with them before merging. If we still find an issue, we should look into it and fix it, instead of work around it with this. |
☔ The latest upstream changes (presumably #123455) made this pull request unmergeable. Please resolve the merge conflicts. |
Since we're now using an approach which is a variant of #123082 (that transforms closures into dynamic Fn traits but isolating it to the Fn call methods only) instead of #121962 or #122573, skipping non-passed arguments shouldn't be necessary for KCFI anymore and we can claim back the reduced granularity.
This should be tested with and merged after the remaining KCFI-related patches are merged.
This reverts commit f2f0d25 (#122456).
This was split off from #116404.
cc @compiler-errors @workingjubilee @maurer