Heap allocation in Box optimized out with rustc 1.60 but not with 1.61+ #98679
Labels
A-codegen
Area: Code generation
C-bug
Category: This is a bug.
I-heavy
Issue: Problems and improvements with respect to binary size of generated code.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
With rustc 1.60 all Box allocations are totally optimized out.
But starting from 1.61 it doesn't happen.
godbolt link
Possible it is the same issue as #97751
The text was updated successfully, but these errors were encountered: