Repository navigation
WIP: test: clear the 24 standing --all-targets -D warnings errors in tests/ - #2010
Conversation
Master's cargo check --all-targets under RUSTFLAGS=-D warnings carried 24 pre-existing errors across 18 test files (census: fix-1184-wart REPORT; the 25th, tests/issue1184, was fixed by #2002). CI never sees them: master CI does not run --all-targets -D warnings and niu CI only compiles the rubash lib with -D warnings. Dispositions, per compiler diagnosis, tests/ only, no src/ changes: - never-read harness fields removed (Output.status x5, Run.code, Run.stderr x2) together with their construction sites - unused imports removed (debugger_flag Path; issue705 Write + Stdio; issue804 Write, orphaned by the run_face removal) - unused variables bound as _ (issue1520 stdout, issue282 rc); unused parameter workload(i) -> _i in multi_session_isolation - unused mut removed (issue1845 stdin-file arm; multi_session b, which is only dropped) - dead helpers removed: issue531 e_lines (zero callers), issue804 run_face (zero callers; tests drive run_command/run_r) - issue555 quoted_cases gated #[cfg(windows)] to match its sole caller - six #[test] names that mirror literal flag/spec spellings (declare -nA x2, declare -aA / -a -A, Oils arith/invalid-const-A / -B-fresh) keep their names under per-item #[allow(non_snake_case)] with the reason on the line; snake_case would collide with the distinct -na / -a shapes they must stay distinguishable from No blanket allows, no behavior changes: every removed field/helper was provably unread/uncalled (that is the lint itself), and no assertion was touched.
|
CI adjudication note (for the merging session): the only red job is the niu canary's "Ledger copies are identical" step (all other steps skipped behind it; every other job is green, incl. Rust tests, macOS, goldens). This red is a master-vs-master ledger desync, not caused by this PR:
This PR touches only |
|
Verification update: the local So the |
… table with #1898 Master advanced eight PRs while this family was in flight. The one semantic intersection is PR #2011 (S5 registry faces, niubash#627): it added special_dev_entries() — the listable /dev table — with zero/full deliberately absent and a consistency pin stating that a future /dev/zero simulation (audit D5) must update the table in the same change. #1898 is that simulation: the table now lists zero/full as leaf entries and the doc comment records the move. Everything else auto-merged cleanly (notably #2022's #1965 guard-strip alongside #1966, and #2010's -D warnings hygiene). Verified on the merged tree: cargo check --all-targets -D warnings is clean for the library and every target this family touches; the single remaining error (dead 'status' field in tests/issue1941_1948_sim_layer_option_regressions.rs) is byte-identical to master 1f007cc — master's own debt, not this branch's.
What
Clears the 24 pre-existing
cargo check --all-targetserrors (underRUSTFLAGS="-D warnings") spread over 18 test files — the residue the fix-1184-wart cluster censused after #2002 removed the 25th. Master CI never exercises this surface (no--all-targets -D warningsrun; niu CI compiles only the rubash lib with-D warnings), so the errors were invisible.tests/ only; no src/ changes; no assertion touched.
Dispositions
Output.status), issue1687 (Run.code), issue621/651 (Run.stderr)Path), issue705 (Write,Stdio), issue804 (Write, orphaned by the run_face removal)stdout), issue282 (rc), multi_session (workload(i))_nameb, only dropped)mutremovede_lines, issue804run_face(both zero callers)quoted_cases(sole caller is#[cfg(windows)])#[cfg(windows)]#[allow(non_snake_case)]with the reason on the line — the names mirror literal spellings (declare -nAvs-na,declare -aA/-a -A, Oils case idsarith/invalid-const-A/-B-fresh); snake_case would make distinct flag shapes indistinguishableNo blanket/file-level allows.
Gates
--all-targets -D warningsrc=0: verified by a single localcargo check --all-targetsrun (this surface is outside CI by construction); per-file rustfmt applied, CR count 0.--lib+ named integration targets +--test regression). The changed files are standalone integration-test crates; none feeds the lib or regression targets.Do not auto-merge; main session adjudicates.