query: Allow unlimited pending matches

Well, not completely unlimited — we're still using a 16-bit counter to
keep track of them.  But we longer have a static maximum of 32 pending
matches when executing a query.
This commit is contained in:
Douglas Creager 2021-05-13 15:38:11 -04:00
parent b1c2723327
commit 78010722a4
2 changed files with 33 additions and 43 deletions

View file

@ -1625,6 +1625,7 @@ fn test_query_matches_with_different_tokens_with_the_same_string_value() {
});
}
/*
#[test]
fn test_query_matches_with_too_many_permutations_to_track() {
allocations::record(|| {
@ -1695,6 +1696,7 @@ fn test_query_matches_with_alternatives_and_too_many_permutations_to_track() {
assert_eq!(cursor.did_exceed_match_limit(), true);
});
}
*/
#[test]
fn test_query_matches_with_anonymous_tokens() {
@ -2702,6 +2704,7 @@ fn test_query_captures_with_many_nested_results_with_fields() {
});
}
/*
#[test]
fn test_query_captures_with_too_many_nested_results() {
allocations::record(|| {
@ -2792,6 +2795,7 @@ fn test_query_captures_with_too_many_nested_results() {
);
});
}
*/
#[test]
fn test_query_captures_with_definite_pattern_containing_many_nested_matches() {