]> git.lizzy.rs Git - rust.git/commit
Merge #1733
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sun, 25 Aug 2019 09:47:44 +0000 (09:47 +0000)
committerGitHub <noreply@github.com>
Sun, 25 Aug 2019 09:47:44 +0000 (09:47 +0000)
commit866b41ddd86cbe9c3e8d9cb2896477bab060a044
tree2108601228076d62e833b732de52e182b8be4a0b
parentfdece911fe8e2f3c22760ea22038a6d00cb70dfa
parentc93903e9c7f64be2edcae0dfe62d8390514658b1
Merge #1733

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>