"--emit mir" does not emit drop shim #58102
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When compiling code that generates drop shims, such as
I would expect the file created by
rustc --emit mir
to also contain the drop shim. However, that is not the case.This is related to #53532 but not identical: the code for selecting what gets dumped with
-Zdump-mir
and--emit=mir
is, from all I can see, entirely independent. Just the actual printing is shared.The text was updated successfully, but these errors were encountered: