-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
A struct defined to hold a closure accepts a proc in its constructor #11515
Comments
Presumably with horrible results? Nominating. |
cc me |
Accepting for P-backcompat-lang. |
presumably a symptom of the current semi-hacky integration of proc into rustc |
Can't reproduce anymore, should we close this? |
I don't think it should be closed quite yet, the error message is pretty awful:
Because this no longer compiles successfully, nominating go go from 1.0 backcompat-lang to P-low |
Recategorizing as P-low, not on 1.0 milestone. |
…=Jarcho [`filter_map_bool_then`]: include multiple derefs from adjustments In rust-lang#11506 this lint was improved to suggest one deref if the bool is behind references (fixed the FP rust-lang#11503), however it might need multiple dereferences if the bool is behind multiple layers of references or custom derefs. E.g. `&&&bool` needs `***b`. changelog: [`filter_map_bool_then`]: suggest as many dereferences as there are needed to get to the bool
This seems like it shouldn't be possible:
...but it compiles just fine on 0.9.
The text was updated successfully, but these errors were encountered: