Skip to content

Fix difftest Clippy warnings under -D warnings - #368

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
uurl:difftest-fix-clippy-warnings
Jul 22, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
uurl:difftest-fix-clippy-warnings

Conversation

@uurl

@uurl uurl commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Closes #367

This fixes existing Clippy warnings in crates/fuzzer/rustlantis/difftest/src/backends.rs so the crate can pass strict Clippy validation with warnings denied.

Changes:

  • Return the wait_with_output().expect(...) expression directly instead of binding and returning it.
  • Rename private implementation structs LLVM and GCC to Llvm and Gcc.
  • Remove an unnecessary borrow in the Miri rustup run ... miri command.

These are mechanical cleanup changes only. The affected structs are private, so this should not change the public API or runtime behavior.

Validation:

cargo fmt
RUST_TEST_THREADS=1 cargo test
cargo clippy --all-targets -- -D warnings

@nihalpasham
nihalpasham force-pushed the difftest-fix-clippy-warnings branch from be90bf8 to 613305d Compare July 21, 2026 08:04
@nihalpasham nihalpasham added QoL-improvement Quality-of-life improvement; not a correctness fix fuzzer Fuzzing infrastructure (rustlantis, difftest) labels Jul 21, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator

Thanks for the PR. LGTM.

  • The difftest backends now pass strict clippy with warnings denied: LLVM/GCC renamed to Llvm/Gcc, an unnecessary borrow removed, and the wait_with_output expression returned directly.
  • I pushed a small maintainer follow-up removing an unused <'a> lifetime in ExecResults::from_exec_results, which was the last remaining -D warnings failure (clippy::extra_unused_lifetimes).

Reviewer note: cargo clippy -p difftest --all-targets -- -D warnings passes at the merged head and failed before the follow-up, confirming the acceptance criterion is now met. All hosted CI checks passed. This closes #367.

@nihalpasham
nihalpasham merged commit 660b8c4 into NVIDIA:main Jul 22, 2026
31 checks passed
@uurl
uurl deleted the difftest-fix-clippy-warnings branch July 23, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzer Fuzzing infrastructure (rustlantis, difftest) QoL-improvement Quality-of-life improvement; not a correctness fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix difftest Clippy warnings under -D warnings

2 participants