-
Notifications
You must be signed in to change notification settings - Fork 15
Add a method to get the FnAbi
of a function pointer
#63
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
good first issue
Good for newcomers
Comments
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. |
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! |
FnAbi
of a function pointer
@rustbot claim |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jun 22, 2024
Add method to get `FnAbi` of function pointer Provide a StableMIR API to query `FnAbi` of a function pointer. Fixes [rust-lang/project-stable-mir#63](rust-lang/project-stable-mir#63)
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Jun 22, 2024
Add method to get `FnAbi` of function pointer Provide a StableMIR API to query `FnAbi` of a function pointer. Fixes [rust-lang/project-stable-mir#63](rust-lang/project-stable-mir#63)
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 22, 2024
Rollup merge of rust-lang#126722 - adwinwhite:ptr_fn_abi, r=celinval Add method to get `FnAbi` of function pointer Provide a StableMIR API to query `FnAbi` of a function pointer. Fixes [rust-lang/project-stable-mir#63](rust-lang/project-stable-mir#63)
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
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(/*..*/)
.The text was updated successfully, but these errors were encountered: