This commit is contained in:
Meta Vens 2026-11-28 00:35:34 +01:00
commit d2aff30f13

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(STACK_TEST_DEPTH, 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);
@ -954,4 +954,4 @@ fn a_slot_naming_a_param_of_another_kind_is_invalid() {
});
}
const STACK_TEST_DEPTH: usize = 1100;
fn stack_test_depth() -> usize { std::env::var("DEPTH").unwrap().parse().unwrap() }