Repository navigation
Rust bare exit, sleep and named-type io forms follow their contracts (Part of #8863, #8868) - #9231
Conversation
… goldens re-blessed (Part of #8863, #8868) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (4c41efa) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Part of #8863, #8868.
Checklist: partial [c:a9dfa2bb] -- no
draftcontracts remain; this lands three more Rust rows of #8868; the owner readings (Cassertas abort, Go writer prints,docstyles) and the other per-language rule rows are left.What changed
panics_and_aborts: bareexit((afteruse std::process::exit;) counts as a process-exit call; a method.exit(and a definitionfn exit(do not.thread_sleeps:time::sleep,thread::sleepand a baresleep((afteruse ...::sleep) count;.sleep(andfn sleep(do not.io: named-type opensOpenOptions::,TcpListener::,TcpStream::,UdpSocket::,UnixStream::,UnixListener::andio::stdin/stdout/stderr. Rustioprecision was 0.25, so only unambiguous call forms were added.test_rust_strict.py; 136 pass withtest_rust.py).golden-lock.sh; mismatches are in rust/tokio files plus the repo-level aggregates they feed (fingerprint, drift, network I/O).Timing (CPU seconds, best of 3, regex only over the 49
.rsfiles, 1.6 MB, in language-crucible)io 0.018 -> 0.019; panics_and_aborts 0.027 -> 0.051; thread_sleeps 0.016 -> 0.046. Absolute cost under 0.05 s per family per 1.6 MB.
Gates
pr_gates --fast9/9 pass;--ratchets9 pass, 0 fail, 0 skipped.Class / Sibling gaps
Class: a Rust language rule narrower than its declared signal contract (#8868's contract-answerable rows); all three same-mechanism Rust members (
panics_and_abortsexit,thread_sleepssleep,ionamed types) are handled here with a test each. Sibling gaps, none needing a burned mainframe estate: TypeScript regex literals and.test; Goio(os.ReadDir,WriteFile,MkdirAll); Cclose/mmap/fgets; Zigunreachable(design question); Dart/Rustdoccounting bare///; Rustbranchprecision (0.70, cause untraced); Goclosuresprecision (0.36); Go/TypeScriptdecoratorsfalse fires; Rustclosuresrecall. Java/C time is #9229. Owner readings still needed: Cassertas abort, Go writer prints,docstyles.Remaining slices
Go
io(go.py + test_go_strict.py); TypeScriptregex_executionliterals (typescript.py + test); Cio(c.py, after #9229 merges).🤖 Generated with Claude Code