-
Notifications
You must be signed in to change notification settings - Fork 13.3k
MIR inlining inlines default trait methods #40473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is this just a matter of preventing the inliner from inlining trait default methods? |
1.17 is now beta. |
triage: P-medium Marking this as medium because it requires you to opt-in to the higher "MIR opt level", which is unstable, but we should definitely fix this. |
cc @Aatch @nikomatsakis just pinging for an update. |
1.17 is now stable. This is a nightly -> nightly regression affecting only |
triage: P-medium |
I have been talking to @qmx, who is going to take a look at implementing this. I'll leave some mentoring instructions shortly! |
…sakis MIR: should not inline trait method Fixes #40473. The idea here is bailing out of inlining if we're talking about a trait method.
STR
Expected Result
Code should print "Hello, World!"
Actual Result
Code does not print anything, because the empty default implementation is inlined.
cc @Aatch
The text was updated successfully, but these errors were encountered: