Drop unused arguments field from ZeroArgumentTag

This commit is contained in:
Richard Feldman 2022-04-08 11:53:16 -04:00
parent 45b5df3a23
commit b777b88e1c
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
3 changed files with 4 additions and 9 deletions

View file

@ -646,6 +646,7 @@ fn fix_values_captured_in_closure_expr(
| Var(_)
| EmptyRecord
| RuntimeError(_)
| ZeroArgumentTag { .. }
| Accessor { .. } => {}
List { loc_elems, .. } => {
@ -712,7 +713,7 @@ fn fix_values_captured_in_closure_expr(
fix_values_captured_in_closure_expr(&mut loc_expr.value, no_capture_symbols);
}
Tag { arguments, .. } | ZeroArgumentTag { arguments, .. } => {
Tag { arguments, .. } => {
for (_, loc_arg) in arguments.iter_mut() {
fix_values_captured_in_closure_expr(&mut loc_arg.value, no_capture_symbols);
}