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
|
@ -806,6 +806,7 @@ pub fn walk_expr<'a, V: Visitor<'a>>(visitor: &mut V, expression: &'a Expr) {
|
|||
walk_list!(visitor, visit_expr, start);
|
||||
walk_list!(visitor, visit_expr, end);
|
||||
}
|
||||
ExprKind::Underscore => {}
|
||||
ExprKind::Path(ref maybe_qself, ref path) => {
|
||||
if let Some(ref qself) = *maybe_qself {
|
||||
visitor.visit_ty(&qself.ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue