Closed
Description
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 to rustc_layout(debug)
. The logic for computing PassMode
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?
Metadata
Metadata
Assignees
Labels
No labels