Add underscore expressions for destructuring assignments
Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
parent
a38f8fb674
commit
8cf3564310
27 changed files with 243 additions and 45 deletions
|
@ -2068,6 +2068,7 @@ impl<'a> State<'a> {
|
|||
self.print_expr_maybe_paren(e, fake_prec);
|
||||
}
|
||||
}
|
||||
ast::ExprKind::Underscore => self.s.word("_"),
|
||||
ast::ExprKind::Path(None, ref path) => self.print_path(path, true, 0),
|
||||
ast::ExprKind::Path(Some(ref qself), ref path) => self.print_qpath(path, qself, true),
|
||||
ast::ExprKind::Break(opt_label, ref opt_expr) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue