-
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
fn f(*) {}
successfully compiles in method position
#33413
Comments
Lol, this is great. So the |
(I'm auditing parsing/resolution of |
petrochenkov
added a commit
to petrochenkov/rust
that referenced
this issue
May 14, 2016
Fix spans and expected token lists, fix rust-lang#33413 + other cosmetic improvements Add test for rust-lang#33413 Convert between `Arg` and `ExplicitSelf` precisely Simplify pretty-printing for methods
bors
added a commit
that referenced
this issue
May 16, 2016
Remove ExplicitSelf from HIR `self` argument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication. The same changes can be applied to AST, I'll make them in the next breaking batch. The first commit also improves parsing of method declarations and fixes #33413. r? @eddyb
critiqjo
pushed a commit
to critiqjo/rustdoc
that referenced
this issue
Dec 16, 2016
Remove ExplicitSelf from HIR `self` argument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication. The same changes can be applied to AST, I'll make them in the next breaking batch. The first commit also improves parsing of method declarations and fixes rust-lang/rust#33413. r? @eddyb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
prints
10
on stable/beta/nightly.This is the coolest syntax I've seen this year, now I'll always use
*
instead ofself
to save 3 keystrokes.The text was updated successfully, but these errors were encountered: