fix: reduce iteration limit to prevent stack overflow in test

This commit is contained in:
Tobias Schmitz 2025-05-09 10:54:52 +02:00
parent 25b5249823
commit ef9adf4618
No known key found for this signature in database

View File

@ -672,7 +672,7 @@ fn visit_grouping_rules<'a>(
finish_innermost_grouping(s)?;
i += 1;
if i > 4096 {
if i > 512 {
// It seems like this case is only hit when there is a cycle between
// a show rule and a grouping rule. The show rule produces content
// that is matched by a grouping rule, which is then again processed