Skip to content

rust: reasoned expects replace lint allows outside platform cfg_attr (part of #12395) - #12445

Merged
TrapsterDK merged 1 commit into
mainfrom
strict-lint-allow-outside-cli
Nov 12, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
strict-lint-allow-outside-cli

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #12395

Turns every plain #[allow(...)] outside the platform cfg_attr cases into #[expect(..., reason = "...")]: api_spec tests, apple fake.rs, core/quality/runner helm.rs, deploy/private (cloudflare.rs, npm.rs), dotnet/private/coverage, tools/ci/test_duplicates_test.rs, tools/docs extractors, tools/testing/nested, cli/shim tests support, cli/cli update tests. The too_many_arguments allow on pages_deploy_with in cloudflare.rs is dropped because the lint does not fire there.

Tests: tools/dx check --affected clippy diagnostics show no unfulfilled_lint_expectations except the cloudflare one, since removed; the scoped check on deploy/dotnet/nested shows only pre-existing format/clippy findings in untouched files. The affected run hit its 1200s timeout on remote cache errors in qt fixtures and deploy release staging. Nested-Bazel and consumer tests were not run locally.

Remaining for #12395:

  • cfg_attr(not(unix|linux), allow(dead_code)) in cli/process, cli/worktree/host.rs, cli/cli/src/exec/stream_probe_tests.rs, tools/testing/nested/src/lib.rs (664, 817), tools/testing/hermetic/appcontainer/args.rs (need Windows/macOS clippy)
  • then deny clippy::allow_attributes and allow_attributes_without_reason in .bazelrc
  • undocumented_unsafe_blocks, unsafe_code, wildcard_enum_match_arm, let_underscore_must_use, panic, string_slice, indexing_slicing
  • then families.rust = strict in dx.toml

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwH5AS7ytCaBAYwEtU

@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 12, 2026
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: approve

No must-fix items. Each plain allow in the touched files is now a reasoned expect. The dropped too_many_arguments allow on pages_deploy_with is right, since it takes 7 arguments. I did not run clippy or Bazel.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2i1LBYg969L4ZJRMURT

@TrapsterDK
TrapsterDK merged commit d2efab1 into main Nov 12, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the strict-lint-allow-outside-cli branch November 12, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant