Repository navigation
fix(syntax): inner-loop breaks, while true and aliased process exits end the test before assertions (#8983) - #10489
Conversation
…end the test for assertion admission (#8983) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EAoMKstQhYv56x2g6gEHZG
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EAoMKstQhYv56x2g6gEHZG
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 54 minutes. View limit details
Comment |
|
|
|
Review of record (pre-CI part), head 1b5f875 Angles: correctness of break ownership, over/under-match direction, tests/oracle grip, spec parity, perf.
Local Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EAoMKstQhYv56x2g6gEHZG
…#8983) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EAoMKstQhYv56x2g6gEHZG
|
Review of record, exact head dfd20b6 Angles: correctness, tests/oracle, spec parity, perf/security. Delta since the earlier review at 1b5f875: main merged (SPEC-0197 prose reconciled with #10389; matrix and owner_pin lib tests re-run green), and Hosted evidence on this head: Squash-merging now. Generated by Claude Code |
Before: an assertion after a root
loopwhose onlybreakbelongs to an inner loop, afterwhile true, or after an aliased/importedstd::process::exit|abortwas still admitted as running, so the finding could be creditedexposedalthough the assertion can never execute.After: those shapes diverge at the root statement, so later assertions are not admitted. Live controls (
loopwith its ownbreak, labeledbreaktargeting the root loop) still admit.Governing issue or accepted claim: #8983
Acceptance delta: closes the root-statement divergence residuals of #8983 (inner-loop break,
while true,use std::process::{exit}/renamed module). Remaining: non-root divergence,loop { if false { break; } }, swallowed macro, #10389/#10445.How:
root_divergence_startinsyntax/owner_pin.rsnow usesloop_is_left_by_break(ownership by nearest loop or label, stops at closures/async) andStdProcessNames(resolves fileuseleaves and module binds).dead_context_assertion_admissionmatrix grows to 456 rows (6 dead + 2 live contexts). Removal control: without the production change,loop_outer_inner_break,while_true,exit_use_leaf,exit_renamed_modulefail;exit_qualifiedandexit_use_processare pins that already held. SPEC-0197 updated. Rust verdict corpus unchanged at 3/676.Generated by Claude Code