You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have added a method to get the function ABI of an instance, however, that doesn't work for function pointers. We should consider adding a similar API to the query fn_abi_of_fn_ptr(/*..*/).
Activity
oli-obk commentedon Feb 22, 2024
function pointer types have a fn sig field https://doc.rust-lang.org/nightly/nightly-rustc/stable_mir/ty/struct.FnSig.html that contains the ABI.
celinval commentedon Feb 22, 2024
That just represents the ABI type not the argument's ABI though. I changed the title of this issue to avoid any confusion. Sorry about that!
[-]Add a method to get the ABI of a function pointer[/-][+]Add a method to get the `FnAbi` of a function pointer[/+]adwinwhite commentedon Jun 18, 2024
@rustbot claim
FnAbi
of function pointer rust-lang/rust#126722Rollup merge of rust-lang#126722 - adwinwhite:ptr_fn_abi, r=celinval
Rollup merge of rust-lang#126722 - adwinwhite:ptr_fn_abi, r=celinval
Unrolled build for rust-lang#126722