-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
&[1, 2, 3] should always be &'static [<generic integer>] #12853
Comments
cc me |
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized. This issue has been moved to the RFCs repo: rust-lang/rfcs#827 |
This isn't a proposal for a language change, it's a bug report. |
We had an IRC chat about it, and it seems to me like an enhancement. Changing |
The fact that the compiler is treating immutable constant expressions as stack allocations is a bug. There is no language change to discuss here, only an implementation improvement. |
fix [`redundant_closure`] suggesting incorrect code with `F: Fn()` fixes: rust-lang#12853 --- changelog: fix [`redundant_closure`] suggesting incorrect code with `F: Fn()`
The following works:
This should also work, but does not:
The text was updated successfully, but these errors were encountered: