-
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
Use ..
consistently for ignoring multiple elements in patterns
#10366
Conversation
This adds a new pattern type |
let subpat = self.parse_pat(); | ||
match subpat { | ||
@ast::Pat { id, node: PatWild, span } => { | ||
// FIXME #5830 activate after snapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change this to a NOTE? At least when I've made a snapshot I normally run make tidy
to see how much there's left to do (other than git grep stage0
)
In the test you added, all the old syntax is going away, right? If so, r=me with NOTEs instead of FIXMEs |
@brson can you still do the tail destructuring? ie. |
@bjz Yes. |
@alexcrichton Yeah, the old syntax is going away. I just threw it all in there to see it all in the same place. |
This replaces `*` with `..` in enums, `_` with `..` in structs, and `.._` with `..` in vectors. It adds obsolete syntax warnings for the old forms but doesn't turn them on yet because we need a snapshot. #5830
fix [`cast_possible_truncation`] offering wrong suggestion for casting float to integer fixes: rust-lang#10366 --- changelog: [`cast_possible_truncation`] Fix incorrect suggestions when casting from float types or to `_`
This replaces
*
with..
in enums,_
with..
in structs, and.._
with..
in vectors. It adds obsolete syntax warnings for the old forms but doesn't turn them on yet because we need a snapshot.#5830