diff --git a/crates/compiler/test_gen/src/gen_list.rs b/crates/compiler/test_gen/src/gen_list.rs index f343ea7830..2e0d767237 100644 --- a/crates/compiler/test_gen/src/gen_list.rs +++ b/crates/compiler/test_gen/src/gen_list.rs @@ -3811,6 +3811,9 @@ fn list_range_length_overflow() { #[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] mod pattern_match { + #[allow(unused_imports)] + use crate::helpers::with_larger_debug_stack; + #[cfg(feature = "gen-llvm")] use crate::helpers::llvm::assert_evals_to; @@ -3857,8 +3860,9 @@ mod pattern_match { #[test] fn ranged_matches_head() { - assert_evals_to!( - r#" + with_larger_debug_stack(|| { + assert_evals_to!( + r#" helper = \l -> when l is [] -> 1u8 [A] -> 2u8 @@ -3874,21 +3878,23 @@ mod pattern_match { helper [B], helper [B, A], helper [B, B], helper [B, A, B, B], ] "#, - RocList::from_slice(&[ - 1, // - 2, // - 3, 3, 3, 3, // - 4, 4, 4, 4, // - 5, 5, 5, 5, // - ]), - RocList - ) + RocList::from_slice(&[ + 1, // + 2, // + 3, 3, 3, 3, // + 4, 4, 4, 4, // + 5, 5, 5, 5, // + ]), + RocList + ) + }) } #[test] fn ranged_matches_tail() { - assert_evals_to!( - r#" + with_larger_debug_stack(|| { + assert_evals_to!( + r#" helper = \l -> when l is [] -> 1u8 [A] -> 2u8 @@ -3904,15 +3910,16 @@ mod pattern_match { helper [B], helper [A, B], helper [B, B], helper [B, A, B, B], ] "#, - RocList::from_slice(&[ - 1, // - 2, // - 3, 3, 3, 3, // - 4, 4, 4, 4, // - 5, 5, 5, 5, // - ]), - RocList - ) + RocList::from_slice(&[ + 1, // + 2, // + 3, 3, 3, 3, // + 4, 4, 4, 4, // + 5, 5, 5, 5, // + ]), + RocList + ) + }) } #[test] diff --git a/crates/compiler/test_gen/src/gen_tags.rs b/crates/compiler/test_gen/src/gen_tags.rs index bdfef4a93b..970295ca24 100644 --- a/crates/compiler/test_gen/src/gen_tags.rs +++ b/crates/compiler/test_gen/src/gen_tags.rs @@ -1,3 +1,6 @@ +#[allow(unused_imports)] +use crate::helpers::with_larger_debug_stack; + #[cfg(feature = "gen-llvm")] use crate::helpers::llvm::assert_evals_to; @@ -2167,9 +2170,10 @@ fn refcount_nullable_unwrapped_needing_no_refcount_issue_5027() { #[test] #[cfg(any(feature = "gen-llvm"))] fn issue_5162_recast_nested_nullable_unwrapped_layout() { - assert_evals_to!( - indoc!( - r###" + with_larger_debug_stack(|| { + assert_evals_to!( + indoc!( + r###" app "test" provides [main] to "./platform" Concept : [ @@ -2184,10 +2188,11 @@ fn issue_5162_recast_nested_nullable_unwrapped_layout() { when Dict.single bottom 0 is _ -> Bool.true "### - ), - true, - bool - ); + ), + true, + bool + ); + }) } #[test]