You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: stop discarding errors in cli/cli and deny unused_result_ok #13147
~944 .ok() and map_err(|_| ...) sites, 349 in cli/cli
Fix
Propagate or log each with context; keep .ok() only where absence is the intended answer and say so in a comment. Then deny unused_result_ok and map_err_ignore per crate as each crate is clean. Split into one PR per crate group.
Rules: no panics in shipped code, every error handled or propagated with context, exhaustive matches, unsafe only where no safe API exists and each block holds one operation with a SAFETY comment. Enable a lint per crate only once that crate is clean.
First slice in #13329: cli/cli/src/adopt/* and the main.rs crate root now deny unused_result_ok and map_err_ignore; stderr writes go through dx_output::write_stderr.
Remaining:
cli/cli/src/exec/* (~300 sites), then move the deny from adopt.rs to cli/cli/src/lib.rs.
Other crates (~600 sites), one PR per crate group.
Activity
TrapsterDK commentedon Nov 18, 2026
First slice in #13329:
cli/cli/src/adopt/*and themain.rscrate root now denyunused_result_okandmap_err_ignore; stderr writes go throughdx_output::write_stderr.Remaining:
cli/cli/src/exec/*(~300 sites), then move the deny fromadopt.rstocli/cli/src/lib.rs.drop(writeln!(..))sites (rust: drop(writeln!(..)) discards errors that unused_result_ok cannot see #13317).rust: stop discarding errors in the adopt module and dx crate root (p…
rust: stop discarding errors in the adopt module and dx crate root (p…
TrapsterDK commentedon Nov 18, 2026
Exec report slice in #13372: build_failures, changed_coverage, failure_reports, skipped_targets and test_reports/* now deny both lints.
Remaining:
cli: deny unused_result_ok and map_err_ignore in the exec report modu…
cli: deny unused_result_ok and map_err_ignore in the exec report modu…
TrapsterDK commentedon Nov 18, 2026
Quality/results slice in #13415: quality*, results now deny both lints.
Remaining:
cli: deny unused_result_ok and map_err_ignore in the quality modules …
cli: deny unused_result_ok and map_err_ignore in the quality modules …
TrapsterDK commentedon Nov 18, 2026
Umbrella/workflow slice in #13458:
umbrella.rsandworkflow.rsnow deny both lints.Remaining:
Generated by Claude Code
cli: deny unused_result_ok and map_err_ignore in umbrella and workflo…
TrapsterDK commentedon Nov 18, 2026
Update slice in #13487: update* modules (incl. update_check/consumer/live) now deny both lints.
Remaining:
cli: deny unused_result_ok and map_err_ignore in the update modules (…