This commit is contained in:
Meta Vens 2026-11-28 00:34:15 +01:00
commit 9d86c80eff

View file

@ -937,7 +937,7 @@ fn an_unplaced_slot_argument_does_not_count_toward_the_depth_rule() {
#[test]
fn input_too_deep_to_recurse_into_is_refused_with_its_own_code() {
big(|| {
let resolution = run(&surface(chain(1100, false), &[]), &MemState::new());
let resolution = run(&surface(chain(STACK_TEST_DEPTH, false), &[]), &MemState::new());
assert!(resolution.tree.is_none());
assert_eq!(resolution.diagnostics.len(), 1, "{:?}", resolution.diagnostics);
assert_eq!(resolution.diagnostics[0].code, Code::TooDeepToResolve);
@ -953,3 +953,5 @@ fn a_slot_naming_a_param_of_another_kind_is_invalid() {
only(&resolution, Code::CompositionInvalid, Some("u"), "used as a slot");
});
}
const STACK_TEST_DEPTH: usize = 1100;