Implement destructuring assignment for structs and slices
Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
parent
cf9cf7c923
commit
de84ad95b4
32 changed files with 619 additions and 108 deletions
|
@ -298,7 +298,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
path: ast::Path,
|
||||
fields: Vec<ast::Field>,
|
||||
) -> P<ast::Expr> {
|
||||
self.expr(span, ast::ExprKind::Struct(path, fields, None))
|
||||
self.expr(span, ast::ExprKind::Struct(path, fields, ast::StructRest::None))
|
||||
}
|
||||
pub fn expr_struct_ident(
|
||||
&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue