test(modular): print exact source-grounded eligibility diagnostics on composition regression failure

This commit is contained in:
cflmy committed 2026-11-18 13:44:39 +08:00
1 parent bf80f4527e
commit 167d2fadda
1 file changed
+2 -1
+2 -1
View File
@@ -334,7 +334,8 @@ import:
let call=c.semantics.bound_calls.iter().find(|x|
x.call_site=="math.math.exact").unwrap();
let (callee,caller,_,result)=candidate(&c,call)
.expect("typed pure forwarder must be eligible");
.unwrap_or_else(||panic!("composition candidate rejected: {}",
rejection_diagnostics(&c,call)));
assert_eq!(result,2);
assert!(callee.contains("theorem callee_contract"));
assert!(caller.starts_with("import CalleeModule"));