Repository navigation
rust: deny unused_result_ok and map_err_ignore in core/quality adapter and runner (part of #13801) - #13987
Merged
Conversation
…r and runner (part of #13801) Bind each ignored error and append it to the existing message, replace write!(String, ..).ok() with push_str(&format!(..)), give RunnerError::InvalidUtf8 a reason field, and deny both lints at each crate root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
TrapsterDK
force-pushed
the
cloud/13801-quality
branch
from
November 19, 2026 16:37
a05f438 to
35227d5
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.
Part of #13801.
core/quality/adapterandcore/quality/runner(lib, main, matrix_harness):clippy::map_err_ignoreandclippy::unused_result_okare denied at each crate root.map_err(|_| ..)now binds the error and adds it to the end of the existing message.write!(String, ..).ok()is nowpush_str(&format!(..)). The shim bytes are unchanged.RunnerError::InvalidUtf8has a newreasonfield. Outside matches use{ .. }, and only this crate builds the variant.numberednow expects the parse error for both the empty and the non-numeric case, and theInvalidUtf8tests inlib_pipeline.rsandreal_core.rsexpect the reason.real_core,real_fixtures,real_toolsandreal_delegatednow importfmt::Writethemselves, because they used to get it throughreal.rs.Tested locally:
tools/dx test //core/quality/adapter/... //core/quality/runner/...: 5/5 passed.tools/dx check --apply --affected: nomap_err_ignoreorunused_result_okfindings. The remaining findings are in files this PR doesn't change (cli/, deploy/private/release, tools/ci, examples/, biome.rs, scalafix.rs, check.rs).tools/dx test --affected: 25 passed, 1 failed. The failure is//core/quality/testdata:matrix_text_typos_fail, and it fails on main too: its fixture text"say the word\n"inrunner_matrix_file_family.bzlno longer has a typo in it.Remaining on #13801:
tools/ci,tools/testing,deploy/private/**,examples/, then the.bazelrcflags (that last step also waits on #13800). The other crates are tracked in #13981.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K