Repository navigation
rust: reasoned expects replace lint allows outside platform cfg_attr (part of #12395) - #12445
Merged
Merged
Conversation
…ects (part of #12395) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hwH5AS7ytCaBAYwEtU
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #12395
Turns every plain
#[allow(...)]outside the platformcfg_attrcases 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. Thetoo_many_argumentsallow onpages_deploy_within cloudflare.rs is dropped because the lint does not fire there.Tests:
tools/dx check --affectedclippy diagnostics show nounfulfilled_lint_expectationsexcept 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)clippy::allow_attributesandallow_attributes_without_reasonin.bazelrcundocumented_unsafe_blocks,unsafe_code,wildcard_enum_match_arm,let_underscore_must_use,panic,string_slice,indexing_slicingfamilies.rust = strictindx.toml🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hwH5AS7ytCaBAYwEtU