Repository navigation
deploy: deny map_err_ignore and unused_result_ok in deploy crates (closes #13801) - #14487
Merged
Merged
Conversation
TrapsterDK
force-pushed
the
cloud/13801-deploy
branch
from
November 21, 2026 12:26
a2d6fe7 to
d6a2b0f
Compare
…oses #13801) String writes use push_str(&format!(..)), map_err closures keep the error they used to drop, release driver tests use dx_testing::scratch_dir, and every deploy crate root denies both lints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
TrapsterDK
force-pushed
the
cloud/13801-deploy
branch
from
November 21, 2026 12:26
d6a2b0f to
67ce28e
Compare
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.
Closes #13801
Last code slice of #13801 (
deploy/private/**), following #13892, #13987 and #14222.write!/writeln!(..).ok()into aStringnow usepush_str(&format!(..)), with\nadded for every formerwriteln!. Unusedfmt::Writeimports are gone.map_err(|_| ..)sites keep the error: cloudflare, maven (pom UTF-8, secret key parse, passphrase unlock), nuget, stage, the install test fake, andSymbolsError::DwarfOutsideBundle, which now carries aStripPrefixErrorsource.bin_release_drivertests usedx_testing::scratch_dirand no longer remove their dirs by hand.; refusingsuffix. The no-leak asserts are unchanged.indexing_slicing,map_err_ignore,string_sliceandunused_result_ok.The
.bazelrc/ strict-tier flip is tracked in #14484, which waits on #13800.Tested:
tools/dx lint //deploy/...with both-Dflags temporarily added to.bazelrc(since reverted): nomap_err_ignoreorunused_result_okfindings. The lint exit was 1 only because of existing warnings incli/*and in deploy files this PR does not touch.bazel test //deploy/private:dx_deploy_tools_test //deploy/private/release:all //deploy/private/install:dx_install_tools_test //deploy/private/symbols:all //deploy/private/offline:all //tools/ci:lint_attributes_test: 28 passed and 2 skipped (dsym/pdb).//tools/ci:lint_attributes_testfails on main too, atcli/exec_quality/src/testing.rs(expect allowlist),cli/codegen_shard/src/writer.rsanddeploy/private/src/crates.rs:499(drop(fs::..), from deploy: attach the published .crate to the GitHub release (closes #7434) #14337). This PR does not touch any of those files.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t