Skip to content

rust: stop discarding errors in cli/cli and deny unused_result_ok #13147

Closed

Description

@TrapsterDK

Where

  • ~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.

Done when

  • cli/cli and the next crates deny both lints.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

Activity

  1. added
    enhancement
    P2
    on Nov 17, 2026
  2. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    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:

  3. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    Exec report slice in #13372: build_failures, changed_coverage, failure_reports, skipped_targets and test_reports/* now deny both lints.

    Remaining:

  4. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    Quality/results slice in #13415: quality*, results now deny both lints.

    Remaining:

  5. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    Umbrella/workflow slice in #13458: umbrella.rs and workflow.rs now deny both lints.

    Remaining:


    Generated by Claude Code

  6. TrapsterDK commented on Nov 18, 2026

    @TrapsterDK
    CollaboratorAuthor

    Update slice in #13487: update* modules (incl. update_check/consumer/live) now deny both lints.

    Remaining:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions