-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Uniform function call syntax #11938
Comments
cc me |
Nominating since this could block #11878. |
cc me |
Assigning P-high, but not 1.0. |
Thanks to @eddyb's tireless efforts, this should be relatively close |
Is this about being able to write |
@ben0x539: The first two. |
The UFCS RFC has been accepted, and #16293 is tracking its implementation. Should this be closed in favor of that issue? |
Closing as a dup of #16293 |
…n, r=llogiq Add new `unconditional_recursion` lint Currently, rustc `unconditional_recursion` doesn't detect cases like: ```rust enum Foo { A, B, } impl PartialEq for Foo { fn eq(&self, other: &Self) -> bool { self == other } } ``` This is because the lint is currently implemented only for one level, and in the above code, `self == other` will then call `impl PartialEq for &T`, escaping from the detection. The fix for it seems to be a bit tricky (I started investigating potential solution to add one extra level of recursion [here](https://github.com/rust-lang/rust/compare/master...GuillaumeGomez:rust:trait-impl-recursion?expand=1) but completely broken at the moment). I expect that this situation will remain for a while. In the meantime, I think it's acceptable to check it directly into clippy for the time being as a lot of easy cases like this one can be easily checked (next I plan to extend it to cover other traits like `ToString`). changelog: Add new `unconditional_recursion` lint
Don't see an issue for this. Would like to be able to treat methods like any other function, by providing
self
explicitly.The text was updated successfully, but these errors were encountered: