enable mir inlining across trait methods #44389
Labels
A-codegen
Area: Code generation
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.
Uh oh!
There was an error while loading. Please reload this page.
As the fix to #40473, @qmx disabled MIR inlining of trait calls altogether. This issue tracks the task of re-enabling the inlining, where possible! This is a slightly more involved task.
Here is the example text:
The goal would be to have the call to
bar()
inlined. But we should draw up some more interesting tasks showing edge-cases: for example, generic functions and so forth (we should be able to useRevealMode::All
to "see through" specialization, since inlining executes quite late).I think roughly speaking the steps to solve this issue "properly" are to:
Instance
andInstanceDef
out oflibrustc_trans
and (probably) intolibrustc
The text was updated successfully, but these errors were encountered: