Skip to content

Commit 5c9f414

Browse files
committed
id_visitor should handle expr_index and expr_assign_op as well.
1 parent 2b70cbc commit 5c9f414

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libsyntax/ast_util.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
454454

455455
visit_expr: fn@(e: @expr) {
456456
vfn(e.id);
457-
alt e.node {
458-
expr_unary(*) | expr_binary(*) | expr_index(*) {
457+
alt e.node {
458+
expr_index(*) | expr_assign_op(*) |
459+
expr_unary(*) | expr_binary(*) {
459460
vfn(ast_util::op_expr_callee_id(e));
460461
}
461462
_ { /* fallthrough */ }

0 commit comments

Comments
 (0)