Generic function produces multiple identical methods in ASM. #46070
Labels
A-codegen
Area: Code generation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Compiled on Stable with Release target.
In the ASM, I see the following produced.
I observed this earlier today on Rust Playground. I don't know if
#[inline(never)]
is causing them not to be merged, or if it's expected that they don't get merged despite being identical. It seems to me like they should be merged, as they are identical aside from the type parameters, which is only a difference at compile time, not runtime.The text was updated successfully, but these errors were encountered: