-
Notifications
You must be signed in to change notification settings - Fork 1.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
box_syntax/pattern not supported #1412
Comments
csmoe
added a commit
to csmoe/rust-analyzer
that referenced
this issue
Jun 18, 2019
Change-Id: I6e20e0163fa545de37226c1561b3b7103615626c
bors bot
added a commit
that referenced
this issue
Aug 22, 2019
1722: Parse `box` keyword in patterns below top-level r=matklad a=ecstatic-morse This extends the parser to handle patterns like `if let Some(box x) = ...` where the `box` keyword is not at the top-level. The last line of the added test caused a `ParseError`. This is a variant of #1412 which was not fixed by #1414. ~~I'm not familiar with `rust-analyzer`, otherwise I would fix this as well 😄.~~ Co-authored-by: Dylan MacKenzie <ecstaticmorse@gmail.com>
bors bot
added a commit
that referenced
this issue
Aug 22, 2019
1722: Parse `box` keyword in patterns below top-level r=matklad a=ecstatic-morse This extends the parser to handle patterns like `if let Some(box x) = ...` where the `box` keyword is not at the top-level. The last line of the added test caused a `ParseError`. This is a variant of #1412 which was not fixed by #1414. ~~I'm not familiar with `rust-analyzer`, otherwise I would fix this as well 😄.~~ Co-authored-by: Dylan MacKenzie <ecstaticmorse@gmail.com>
bors bot
added a commit
that referenced
this issue
Aug 25, 2019
1733: Parse arbitrarily complex `box` patterns. r=matklad a=ecstatic-morse This fully resolves the pattern part of #1412 by enabling the parsing of complex `box` patterns such as: ```rust let box Struct { box i, j: box Inner(box &x) } = todo!(); ``` This introduces a new `ast::BoxPat` (in the mold of `ast::RefPat`) that gets translated to `hir::Pat::Missing`. Co-authored-by: Dylan MacKenzie <ecstaticmorse@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc rust-lang/rust#49733
The text was updated successfully, but these errors were encountered: