From 0c1e75a7dab05218588658ed8efb4e92d6936827 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 5 May 2026 11:11:59 -0700 Subject: [PATCH] fix(rust): implement DeadCodeDetector to satisfy lang.Language interface PR #7 added DeadCodeDetector() to lang.Language; PR #4 (Rust analyzer) branched from a pre-#7 main and merged without re-running CI on the merged result, breaking the build on main and any downstream go install ...@latest. Returning nil is the supported "no detector" path (internal/deadcode/deadcode.go:31 emits a PASS section explaining the language has no detector wired up). Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/lang/rustanalyzer/rustanalyzer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/lang/rustanalyzer/rustanalyzer.go b/internal/lang/rustanalyzer/rustanalyzer.go index 7b514a0..37ae17f 100644 --- a/internal/lang/rustanalyzer/rustanalyzer.go +++ b/internal/lang/rustanalyzer/rustanalyzer.go @@ -40,6 +40,7 @@ func (*Language) MutantGenerator() lang.MutantGenerator { return mutan func (*Language) MutantApplier() lang.MutantApplier { return mutantApplierImpl{} } func (*Language) AnnotationScanner() lang.AnnotationScanner { return annotationScannerImpl{} } func (*Language) TestRunner() lang.TestRunner { return newTestRunner() } +func (*Language) DeadCodeDetector() lang.DeadCodeDetector { return nil } // isRustTestFile reports whether path is a Rust integration test file. The // design doc settles this: any file whose path contains a `tests` segment