Skip to content

rust: deny unused_result_ok and map_err_ignore in Rust outside cli/, then in .bazelrc #13801

Closed

Description

@TrapsterDK

Follow-up to #13147.

Where

  • Rust outside cli/: deploy/private/** (release ~35, install 9, registry modules ~20), core/quality/{adapter,runner,lsp_check} (~30), tools/testing, tools/ci, apple/private/tools/ops, cc/private/tools/context, d/private/tools/coverage, dotnet/private/coverage, the */private/tools/lock resolvers, and the examples/ crates.
  • Leave lint fixtures under testdata/ that exist to trip a lint.

Fix

  • Same patterns as the cli/cli slices: write stderr through a logged helper, remove scratch paths through a helper that ignores NotFound and logs the rest, otherwise propagate or log with tracing and context.
  • Deny both lints per crate as each is clean. Once every crate is clean, add -Dclippy::unused_result_ok and -Dclippy::map_err_ignore as --@rules_dx//config:clippy_flag lines in .bazelrc and drop the per-crate attributes.

🤖 Generated with Claude Code

Activity

  1. added
    P2
    model:sonnet
    on Nov 19, 2026
  2. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    Resume: branch cloud/13801 already has commit 3a291b4 (lock resolvers and coverage wrappers). Continue from it; no PR is open yet.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

  3. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13892 covers the lock resolvers, d/dotnet/php coverage wrappers, apple ops, cc context and lsp_check. Tested: //core/quality/lsp_check:lsp_check_test //cc/private/tools/context:cc_context_test //apple/private/tools/ops/... and the lock/coverage resolve_test targets, all passed; //dotnet/private/coverage/... builds.

    Next slice: core/quality/{adapter,runner}, then tools/ci, tools/testing, deploy/private/**, examples/, then the .bazelrc flags.

    🤖 Generated with Claude Code


    Generated by Claude Code

  4. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #13987 covers core/quality/{adapter,runner}.

    Still to do: tools/ci, tools/testing, deploy/private/**, examples/, then the .bazelrc flags (that step also waits on #13800). The crates the Where list leaves out are tracked in #13981.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

  5. TrapsterDK commented on Nov 20, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #14222 covers tools/ci, tools/testing, tools/api and examples/.

    Still to do:

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

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

    P2model:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions