-
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
Include ABI information in rustc_layout(debug) #115168
Comments
I should also note that the |
I found this gem rust/compiler/rustc_ty_utils/src/abi.rs Line 451 in 795ade0
so yeah I guess there's no way to say anything about the context of a concrete function signature. Fun times... |
You mean Maybe we could have a |
add rustc_abi debugging attribute This is the call ABI equivalent of `rustc_layout(debug)`. Fixes rust-lang/rust#115168 r? `@bjorn3`
It is currently rather hard to figure out which
PassMode
a type will get. It would be great to have some way to display that information, similar torustc_layout(debug)
. The logic for computingPassMode
is currently here and we'd have to find some way to invoke it:rust/compiler/rustc_ty_utils/src/abi.rs
Lines 404 to 416 in 795ade0
@eddyb @bjorn3 any advice on how to implement this? Or is it meaningless to ask about the
PassMode
of a type, since this has to always be considered in the context of a particular function signature?The text was updated successfully, but these errors were encountered: