Skip to main content

MAX_PREDICATE_DEPTH

Constant MAX_PREDICATE_DEPTH 

Source
pub const MAX_PREDICATE_DEPTH: usize = 64;
Expand description

Maximum nesting depth allowed in a match predicate tree.

Anything beyond this is operator error (no real rule needs deep nesting) and would also stress the recursive walker functions in lower / analyze. The depth check uses an explicit stack so the guard itself is never the source of a stack overflow.