InstanceDef::requires_inline
does not result in an inline hint
#79108
Labels
A-codegen
Area: Code generation
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The
InstanceDef::requires_inline
is described to return true if "thisinstance is unconditionally marked with inline". In practice, the instance will
receive an inline hint if and only if the instance has any other user specified
inlining attributes.
For example, by default a closure will not receive an inline hint, but a
closure marked with
#[inline(never)]
counter-intuitively will (together withnoinline
).The text was updated successfully, but these errors were encountered: