-
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
[r+] Implement fully qualified UFCS expressions. #21077
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@nikomatsakis I almost want to separate |
r+. This looks great. The one thing I'd like to see is a more diverse array of tests, for example:
|
@eddyb regarding Path, I personally would like to refactor it into something recursive, rather than the current vector of path segments. I don't think the vector is particularly helpful. Having something recursive (a cons list, basically) would also make trivial to extract the last name, as you say. |
Is it worth having some tests with default type parameters (in traits and types)? Also, does using |
@huonw yes it does - also, the implementation results in |
I don't think I handle |
as we said on IRC, I actually expected |
[r+] Implement fully qualified UFCS expressions. Reviewed-by: nikomatsakis
Working towards #16293, this adds support for `<T as Trait>::method` in expressions.
Now possible thanks to rust-lang/rust#21077
Working towards #16293, this adds support for
<T as Trait>::method
in expressions.