From bd02f07e3b7d019f023c26619beee4ec5889263a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 1 Jan 2025 12:16:31 -0800 Subject: [PATCH] Test larger expr depth --- tests/test_expr.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_expr.rs b/tests/test_expr.rs index 0c210019fe..d5b4232538 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -1577,7 +1577,6 @@ fn test_permutations() -> ExitCode { } } - let mut count = 0; let mut failures = 0; macro_rules! fail { ($($message:tt)*) => {{ @@ -1587,7 +1586,6 @@ fn test_permutations() -> ExitCode { }}; } let mut assert = |mut original: Expr| { - count += 1; let tokens = original.to_token_stream(); let Ok(mut parsed) = syn::parse2::(tokens.clone()) else { fail!( @@ -1619,8 +1617,7 @@ fn test_permutations() -> ExitCode { } }; - iter(2, &mut assert); - assert_eq!(count, 505); + iter(4, &mut assert); if failures > 0 { eprintln!("FAILURES: {failures}"); ExitCode::FAILURE