Skip to content
This repository was archived by the owner on Dec 25, 2019. It is now read-only.

Commit ccb73a6

Browse files
committed
Fix silly infinite recursion in visit_any/all
1 parent fb7dd77 commit ccb73a6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/ast/visit_macro.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,11 +1100,15 @@ macro_rules! make_visitor {
11001100
}
11011101

11021102
pub fn visit_any<'ast, V: $name<'ast> + ?Sized>(visitor: &mut V, left: &'ast $($mut)* Expr, op: &'ast $($mut)* BinaryOperator, right: &'ast $($mut)* Query) {
1103-
visitor.visit_any(left, op, right)
1103+
visitor.visit_expr(left);
1104+
visitor.visit_binary_operator(op);
1105+
visitor.visit_query(right);
11041106
}
11051107

11061108
pub fn visit_all<'ast, V: $name<'ast> + ?Sized>(visitor: &mut V, left: &'ast $($mut)* Expr, op: &'ast $($mut)* BinaryOperator, right: &'ast $($mut)* Query) {
1107-
visitor.visit_all(left, op, right)
1109+
visitor.visit_expr(left);
1110+
visitor.visit_binary_operator(op);
1111+
visitor.visit_query(right);
11081112
}
11091113

11101114
pub fn visit_insert<'ast, V: $name<'ast> + ?Sized>(

0 commit comments

Comments
 (0)