{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::exec_intrinsic (cyclomatic 197): Evaluator::exec_intrinsic has cyclomatic complexity 197 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c758cead91b92ff95920c4df53815483eba6121c466ec94e365dbd4d6c5221c2"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::context::analysis::classify_name_ref (cyclomatic 153): ide_completion::context::analysis::classify_name_ref has cyclomatic complexity 153 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaef3adf237d21df6a99c7eb328b1be772c12572ed1e4cf21447e7e70ce0a529"}},{"ruleId":"D1","level":"warning","message":{"text":"MirLowerCtx::lower_expr_to_place_without_adjust (cyclomatic 131): MirLowerCtx::lower_expr_to_place_without_adjust has cyclomatic complexity 131 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6a43431f320b1befc5ee212c4e3f7ec56f3995a5ac6216fa464b31ed292fa7"}},{"ruleId":"D1","level":"warning","message":{"text":"Ty::hir_fmt (cyclomatic 117): Ty::hir_fmt has cyclomatic complexity 117 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f95e59b2bab91cc87b5a8694f4bfc6221353d2ee407606b366aa3847e599a6"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::eval_rvalue (cyclomatic 100): Evaluator::eval_rvalue has cyclomatic complexity 100 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"5798858baace3cdfc4355f841d518ca02fdb40466cc20411191633e68ddc6fc4"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_diagnostics::semantic_diagnostics (cyclomatic 95): ide_diagnostics::semantic_diagnostics has cyclomatic complexity 95 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d6b40a207e841a9b1d4ff5af7c4d66f1bc4c837eb1a4f24ec2d11ac021c3f0"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::config::patch_old_style::patch_json_for_outdated_configs (cyclomatic 95): rust_analyzer::config::patch_old_style::patch_json_for_outdated_configs has cyclomatic complexity 95 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config/patch_old_style.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"22894dda9c2a058bb6b003caabd72d43a2341033722a3c310a7612d839d02367"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprCollector::maybe_collect_expr (cyclomatic 90): ExprCollector::maybe_collect_expr has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fbf91819c525f8995423766608026bb63ef636472693c650a34ad5f1feadbd"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::infer_expr_inner (cyclomatic 84): InferenceContext::infer_expr_inner has cyclomatic complexity 84 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"944229612c07b02f0f1607aaad01c65f52f5086a58c97bd5d5868187901a0d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::semantic_token_type_and_modifiers (cyclomatic 82): rust_analyzer::lsp::to_proto::semantic_token_type_and_modifiers has cyclomatic complexity 82 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"beac79acac94c8a67eef1895cd37cf16e2e254682294294f842c3a6627ce72fc"}},{"ruleId":"D1","level":"warning","message":{"text":"Printer::print_expr_in (cyclomatic 79): Printer::print_expr_in has cyclomatic complexity 79 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"042095507246aef914cda9d7ea0b72ff10b3b8920edf01460ccd6ae885d2e248"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::expr::complete_expr_path (cyclomatic 75): ide_completion::completions::expr::complete_expr_path has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26859731792d3f42c535b880da4421948e8c3ce549532490ebb1ea449e20c1f"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalState::handle_event (cyclomatic 74): GlobalState::handle_event has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a17b710a71a0a931002a4b7992f1b5677ae3b7add9c1c1ad1c43ca717c3a40"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::attrs::match_attr_flags (cyclomatic 71): hir_def::attrs::match_attr_flags has cyclomatic complexity 71 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"53764b6b0ba4ecb4081f06d34bd2202e4d9f522ff44fcfeeb07e1672df7a76b0"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyDiagnostic::inference_diagnostic (cyclomatic 66): AnyDiagnostic::inference_diagnostic has cyclomatic complexity 66 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa055b1a86afcee4d9d887706b14078ba2c15c64f982d3d21af647b82a21cdfe"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::render::definition (cyclomatic 64): ide::hover::render::definition has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e9930db01209febd33fabedbfd65cc120086da49fd02fb31a5b7a0e3d6ae67"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::highlight_def (cyclomatic 61): ide::syntax_highlighting::highlight::highlight_def has cyclomatic complexity 61 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a9f4f7535b81dc94008a760edbf11a3fb0a8a9a5e1699e081625d8cc4977d2"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenStream::from_str (cyclomatic 61): TokenStream::from_str has cyclomatic complexity 61 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee09cc3cf9c0799ccaaf42459781bd385394173179742d9de04a61b1135a9ecd"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::layout::layout_of_ty_query (cyclomatic 59): hir_ty::layout::layout_of_ty_query has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fe02d41a20824d8d7bb0c9c3cb0989437be4e50982e7900e14acf6796c90da"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_expand::builtin::derive_macro::coerce_pointee_expand (cyclomatic 57): hir_expand::builtin::derive_macro::coerce_pointee_expand has cyclomatic complexity 57 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 24 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4670c67070747ceb95355caf9d52dbc4e7fd7b90d2aa6e6ab891cfa8c57f90e"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ide::display::render_const_scalar_inner (cyclomatic 57): hir_ide::display::render_const_scalar_inner has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"574e5bed1917b43600cdce014f5dde8838a50e003bcf9105ece27a877494bd06"}},{"ruleId":"D1","level":"warning","message":{"text":"SymbolCollector::collect_from_module (cyclomatic 53): SymbolCollector::collect_from_module has cyclomatic complexity 53 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/symbols.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc06539ba537d9e4b057398c43b1a05cc2ef3c0ee37f886fd4fa6bcad1f4cc2"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::adjustment::hints (cyclomatic 53): ide::inlay_hints::adjustment::hints has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/adjustment.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"126b17b81f08d427711705ff8f20612afa50b86d9666635d656d257ab289d709"}},{"ruleId":"D1","level":"warning","message":{"text":"Converter::extend_token (cyclomatic 53): Converter::extend_token has cyclomatic complexity 53 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb818ee45c639905ec46dbfc91f2c3bbca07042f5eafdbc69622154c045d349a"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::inline_call::inline (cyclomatic 51): ide_assists::handlers::inline_call::inline has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_call.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c695a077ce23b9ce5f344d2de4402844725920b23d51f686b21f300d72656715"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::context::analysis::expected_type_and_name (cyclomatic 50): ide_completion::context::analysis::expected_type_and_name has cyclomatic complexity 50 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e2e100db400cbe27ce1cd41921bbec2781234876dca93c267f45c952064bef"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprCollector::lower_inline_asm (cyclomatic 49): ExprCollector::lower_inline_asm has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/asm.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5855dff5160f6e17951ec36babb82482922b7153ea2cfeef7f7259e9689e4d61"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisStats::run_inference (cyclomatic 49): AnalysisStats::run_inference has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"278eaea9394c6cee581819f28adf5b0912f10fd5bdb1e635164f5032063ae80f"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::resolve_variant (cyclomatic 48): InferenceContext::resolve_variant has cyclomatic complexity 48 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"451d93d4025400b391e757da9a623efb782c00bc6f9f0e40e16d564ff6635ad8"}},{"ruleId":"D1","level":"warning","message":{"text":"Definition::search_scope (cyclomatic 48): Definition::search_scope has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec92a7c41f605874bba4d45b3c7e8627493179186fda83059d3566786f479813"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisStats::run (cyclomatic 48): AnalysisStats::run has cyclomatic complexity 48 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10559b7856bea50dc54ca3ed9c20f18d5295b248809473d48f229594047d1ae"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::syntax_highlighting::traverse (cyclomatic 47): ide::syntax_highlighting::traverse has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ba02d0856de437fb630b62855830633de5b21345110e5521b76c3c05eada2e"}},{"ruleId":"D1","level":"warning","message":{"text":"MirLowerCtx::pattern_match_inner (cyclomatic 46): MirLowerCtx::pattern_match_inner has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c3f5033170507f502cb3f0dd4d0ba9e60eda0a593feae61fcc0a12ad916ebc"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceAnalyzer::resolve_path (cyclomatic 45): SourceAnalyzer::resolve_path has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6908410508b2beba2356ebbdc4eb8fcc040b133f7b950a9cde065d3fd4b2cef"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::postfix::complete_postfix (cyclomatic 45): ide_completion::completions::postfix::complete_postfix has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85cc24adf4806005138d17b50566dac79a2d82fdfa1ebe58660113c847051fa"}},{"ruleId":"D1","level":"warning","message":{"text":"mbe::expander::matcher::match_loop_inner (cyclomatic 45): mbe::expander::matcher::match_loop_inner has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"377c995882f34a50fbb78bb3c6478a05c971dc7e02941b7463ee14c4e2c46106"}},{"ruleId":"D1","level":"warning","message":{"text":"ErasedFileAstId::kind_typed (cyclomatic 45): ErasedFileAstId::kind_typed has cyclomatic complexity 45 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace1054cf1ae3b8bf368e81c84c9f2a3d90a02438c2c1944026cb54a085358e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::type::complete_type_path (cyclomatic 44): ide_completion::completions::type::complete_type_path has cyclomatic complexity 44 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/type.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d3853d61598c08ca8522de8c4d0bcb316c85488ea34e0f26b754e2a69a7074"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::hir::format_args::parse (cyclomatic 42): hir_def::hir::format_args::parse has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f92104f06b51eb8e3687033c17b5dcc87ff5cee9ea7e104470549188a2df734"}},{"ruleId":"D1","level":"warning","message":{"text":"Resolver::resolve_path_in_value_ns_with_prefix_info (cyclomatic 41): Resolver::resolve_path_in_value_ns_with_prefix_info has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"74899fdadeca199811f8bc9bc0176855ef12843479f56d8ec54b8dfbe0aa7da2"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_expand::fixup::fixup_syntax (cyclomatic 41): hir_expand::fixup::fixup_syntax has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/fixup.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"93997f4881b22ff4ed2b98ea6ee481137e131942f38a67fae1dad046d3ac5b25"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprCollector::collect_pat (cyclomatic 40): ExprCollector::collect_pat has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef3a374cd74cae89f2d42fca1325d42aad3e12eda407c528b613a88a2c2fa8e"}},{"ruleId":"D1","level":"warning","message":{"text":"Printer::print_pat (cyclomatic 40): Printer::print_pat has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f59b331f07d7991e51eb396671a4e7ed156544911e12b1e3bf837690fe1c87"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprUseVisitor::walk_expr (cyclomatic 40): ExprUseVisitor::walk_expr has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1f5d17728a648be98dce211b570ea9b8765b4249893b742ca64272a8a2dc9e"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::infer_mut_expr_without_adjust (cyclomatic 40): InferenceContext::infer_mut_expr_without_adjust has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/mutability.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"039bde2dfa316e3159360335097d719eef2d5a55815be33317ece7ae7b6cb82b"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::next_solver::consts::valtree::allocation_to_const (cyclomatic 40): hir_ty::next_solver::consts::valtree::allocation_to_const has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1031d84a6c75c3221182c6ddb0f63e73ef8bf727a719a523226299d06d08a2"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::punctuation (cyclomatic 40): ide::syntax_highlighting::highlight::punctuation has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e15e773206d02a924c0b8b41f2652146afb91f71963db06a6c4e20c34a26e7"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::syntax_helpers::format_string::lex_format_specifiers (cyclomatic 40): ide_db::syntax_helpers::format_string::lex_format_specifiers has cyclomatic complexity 40 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"908807aadbbac841ea0758d8ff68b7c9f8f4fc9d613162cb5b77c2d768a3a29c"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_bridge::prettify_macro_expansion::prettify_macro_expansion (cyclomatic 40): syntax_bridge::prettify_macro_expansion::prettify_macro_expansion has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/prettify_macro_expansion.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af97c4645104c442e37099e0a03e8acb9456f9d8e8ddbb99091735694b48e82"}},{"ruleId":"D1","level":"warning","message":{"text":"FindUsages::search (cyclomatic 39): FindUsages::search has cyclomatic complexity 39 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3653b42cd14e28067fba4f2b5d8d42beec43fd976fe544112944e39e26ce839"}},{"ruleId":"D1","level":"warning","message":{"text":"parser::grammar::items::opt_item (cyclomatic 39): parser::grammar::items::opt_item has cyclomatic complexity 39 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e42e3a03262517811c0e410fcf5de9eb6c01fa07bd0d530f873f1812ae20f50"}},{"ruleId":"D1","level":"warning","message":{"text":"ModCollector::collect (cyclomatic 38): ModCollector::collect has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0d1eb7f4ba66add31fd0fd50606a9bb7c16a3498bab4a1871c93c732f8059e"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::expr_store::lower::path::lower_path (cyclomatic 38): hir_def::expr_store::lower::path::lower_path has cyclomatic complexity 38 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"38766abccd08b46bc40fc3ee809e1b64927c7fc394919791636a04a24f2beed8"}},{"ruleId":"D1","level":"warning","message":{"text":"parser::grammar::expressions::atom::atom_expr (cyclomatic 37): parser::grammar::expressions::atom::atom_expr has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90b028fbf84ba2807cdf84cabb83006346eb76dab4a46d46d15ad9bc448395e"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ide::display::render_const_scalar_from_valtree_inner (cyclomatic 36): hir_ide::display::render_const_scalar_from_valtree_inner has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e1b116165082327b1bfc9a92531f5d2291ebc8abf3a37fa483439c42c1f14c"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ide::display::write_bounds_like_dyn_trait (cyclomatic 36): hir_ide::display::write_bounds_like_dyn_trait has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f74670f678263ca4201aceaa1de930f57195032c61bf30bdccdd6e64b4b54c"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::extract_variable::extract_variable (cyclomatic 36): ide_assists::handlers::extract_variable::extract_variable has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"144606444d4d362fedbb0a75d35a40b99ea4a6fc9d796be767fd8e74c3bbcf4d"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_expand::cfg_process::macro_input_callback (cyclomatic 35): hir_expand::cfg_process::macro_input_callback has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/cfg_process.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24bf25ac89caf76998d1113a8992aa6f93d4432478f86fef631fee80afb4e89"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagnosticsCollector::collect_impl (cyclomatic 34): DiagnosticsCollector::collect_impl has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e3e13df21cc19ac78a08054ab8abdf82e7cc49d354aa581d6034f5de0e9394"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::lifetime::hints_ (cyclomatic 34): ide::inlay_hints::lifetime::hints_ has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c0308611251c2541142ea1f35c582573e9eef338511b462f81329b25620b94"}},{"ruleId":"D1","level":"warning","message":{"text":"UnsafeVisitor::walk_expr (cyclomatic 33): UnsafeVisitor::walk_expr has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/unsafe_check.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71bb51041156a270fb3095394e4f63e8df68b3395a18b7c7ac8176f443fc822"}},{"ruleId":"D1","level":"warning","message":{"text":"client.createClient (cyclomatic 33): client.createClient has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 6 of the 33 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 60, callback, a function literal at line 84, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"437e479cee9221dd64f4fd4b4186920d44b4625ac2e02d9efc0dd0029aab4c03"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionStore::visit_expr_children (cyclomatic 32): ExpressionStore::visit_expr_children has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"045fe3192ea0f2160fca716a25cd61df07f4b54da8f7ddac9fa26fe4e5f504c0"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::infer_pat_inner (cyclomatic 32): InferenceContext::infer_pat_inner has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80f2370beb056522f99534e70039c146b13ed47a521a53fea9cd550ed9214e5"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::convert_closure_to_fn::convert_closure_to_fn (cyclomatic 32): ide_assists::handlers::convert_closure_to_fn::convert_closure_to_fn has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"27615f0344e9d6f7bfda38fb84157a1aeb20994353eec1c7a12b8790378fc437"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_bridge::to_parser_input::to_parser_input (cyclomatic 32): syntax_bridge::to_parser_input::to_parser_input has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/to_parser_input.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85e373f7dc88d29ffaebf4da9e8f838cd676de293b112a2ceec313bb37b86ac"}},{"ruleId":"D1","level":"warning","message":{"text":"DefCollector::resolve_macros (cyclomatic 31): DefCollector::resolve_macros has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"461d458287d528ba319fd8e47787f420195fb7708ed07d74a4ff14bbdece6c50"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::folding_ranges::folding_ranges (cyclomatic 31): ide::folding_ranges::folding_ranges has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/folding_ranges.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a08e1f07936c447d6cb53ac8a8577399cd5bd716e3a1963cabcda8e975fd64"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::closing_brace::hints (cyclomatic 31): ide::inlay_hints::closing_brace::hints has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/closing_brace.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad8de9e7a51e7c184ba61e27592521bfbe8c5f9a6d5cd100ea58522c5e75de4"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::pattern::complete_pattern (cyclomatic 31): ide_completion::completions::pattern::complete_pattern has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb6eebda4ba1b8da3c84866a11a243e91d4cacd843c98b257ee8a6abd9da9f4"}},{"ruleId":"D1","level":"warning","message":{"text":"project_model::workspace::cargo_to_crate_graph (cyclomatic 31): project_model::workspace::cargo_to_crate_graph has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0b82ce87555b2e1a786bfab8ecd93c30675db61199597f44f1788bd17e949e"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisStats::run_body_lowering (cyclomatic 31): AnalysisStats::run_body_lowering has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b9a7c44f5aa2eff0e3d6db71024a584afe88b7f91fc44222443f377e01e2d"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax_bridge::convert_tokens (cyclomatic 31): syntax_bridge::convert_tokens has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f8ca913f72b6229b7f2eaa6fffc8e47345a84c2148ec7741086d26f27ed6ff"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::hover_offset (cyclomatic 30): ide::hover::hover_offset has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca945f63a50969be35bce3da8abd63f6dec452b734fdb7ce95f34c07af82208f"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::moniker::def_to_kind (cyclomatic 30): ide::moniker::def_to_kind has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/moniker.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e3feda166b61cecf6992627ae71fce561800d5adc76565c171da5fb2529bb3"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::highlight_name_ref (cyclomatic 30): ide::syntax_highlighting::highlight::highlight_name_ref has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7113519fe66087ff1cbe6399aaf1c536d39b7ca3e90fd1225f2030b5c47a1ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::add_missing_match_arms::add_missing_match_arms (cyclomatic 30): ide_assists::handlers::add_missing_match_arms::add_missing_match_arms has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c9c49922a0b72b8aafe399ffe43727848b2c6bf68beef6ce8cd03db49dc9fd"}},{"ruleId":"D1","level":"warning","message":{"text":"mbe::expander::transcriber::expand_subtree (cyclomatic 30): mbe::expander::transcriber::expand_subtree has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a6ead818baaa1a665d9e0e32266c8c9f5550a717ba0ac6fadffa14177596b6"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalState::handle_task (cyclomatic 30): GlobalState::handle_task has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"888fd34026ee07a7fe78c7ff178dcfdba93e5e427cb415e703d22dfb510ad4c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprCollector::maybe_collect_expr_as_pat (cyclomatic 29): ExprCollector::maybe_collect_expr_as_pat has cyclomatic complexity 29 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 9 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b61e880c9cef7b9551fc8efa526b8d7d867dda4a59585c923bf1d35868141e1"}},{"ruleId":"D1","level":"warning","message":{"text":"Path::hir_fmt (cyclomatic 29): Path::hir_fmt has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95e15721c7404a30fd8e8c5cde782b32d14856d58ab8dbc8263fcbe5bdb9c83"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::syntax_helpers::format_string_exprs::parse_format_exprs (cyclomatic 29): ide_db::syntax_helpers::format_string_exprs::parse_format_exprs has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string_exprs.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd67cbc24defe514de65000942d3e54f3728fc47b77af6dcce1f6d0c74cd97b"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalState::switch_workspaces (cyclomatic 29): GlobalState::switch_workspaces has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdb8a135b779ee85a7aa056e84cb030cae86a0cd941a05af93c975a21fc913b"}},{"ruleId":"D1","level":"warning","message":{"text":"tt::storage::encode (cyclomatic 29): tt::storage::encode has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b52feabaffd1234177f0f173eef19991df0d84165ad583ef50182447401290f"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::unwrap_return_type::unwrap_return_type (cyclomatic 28): ide_assists::handlers::unwrap_return_type::unwrap_return_type has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_return_type.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"76285577af4c04a384c09a75c93b12e440014cee03ca30acee43cae08d703f1a"}},{"ruleId":"D1","level":"warning","message":{"text":"Definition::label (cyclomatic 28): Definition::label has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b370685d26ca04a6dd3e87c5eb57695366d80e5c36b205eaa56ac6096080cb06"}},{"ruleId":"D1","level":"warning","message":{"text":"Reader::read_tokenstream (cyclomatic 28): Reader::read_tokenstream has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"3457b17b08d297582b3dff8c8726d484d330a75b57005a4de123c795eb0469ab"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisStats::run_term_search (cyclomatic 28): AnalysisStats::run_term_search has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2e62be50d37fd25e9dc26dc597977c307bfdf792b6e0fc3cb9033f983ed0f0"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::handlers::notification::run_flycheck (cyclomatic 28): rust_analyzer::handlers::notification::run_flycheck has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6c654329a3f849f196af2e8e779e5ac36c0974c45b11263ad55eaf144609b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr::gen_source_code (cyclomatic 27): Expr::gen_source_code has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/expr.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0599566aca9555ec7b33589e2cdaf3615a9c7bd7fbebee61788000a55ac97dbf"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprCollector::collect_format_args_impl (cyclomatic 27): ExprCollector::collect_format_args_impl has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/format_args.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c636de21a0a22e00147e9dcf48b297322bfacd06fe97102ac31927e3be66eff"}},{"ruleId":"D1","level":"warning","message":{"text":"Printer::print_path (cyclomatic 27): Printer::print_path has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d001704c3b56ee68046c8152bff712990918d01e566d4da2c8abec5c0a775f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ItemScope::push_res_with_import (cyclomatic 27): ItemScope::push_res_with_import has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf07c3fd781ada3532c13f1ea594b65a38a819d87a18ea41b5a2d3513853b448"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::attrs::parse_repr_tt (cyclomatic 27): hir_def::attrs::parse_repr_tt has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d421719e081b468d249c66739dc9294c5a3d56da7658b2bc5b55836a6f0a09b"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::try_find_coercion_lub (cyclomatic 27): InferenceContext::try_find_coercion_lub has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d397982cd899ed2be23e13076c081eba58fa0b03054b701ed0459ded16db78"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::exec_extern_c (cyclomatic 27): Evaluator::exec_extern_c has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"768d8c63272cb873ad556c8ace6395c21c5f9c424ba2a8859d49f7791227c887"}},{"ruleId":"D1","level":"warning","message":{"text":"Module::process_def_in_sel (cyclomatic 27): Module::process_def_in_sel has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ab7a507694e467438baa8dab5b72f6eee3cd193fb5356bb187649a59aad594"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionRelevance::score (cyclomatic 27): CompletionRelevance::score has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: CompletionItemKind::tag (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/item.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd87a39882d3676fa885a816df39ba2e8d6c624d168624aa3a41dea8f5a7c977"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::context::analysis::expand (cyclomatic 27): ide_completion::context::analysis::expand has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eab01e712750a0b78ebbce17eca4e41d42b8f2ba1bfe5d0aefff98ecf80321e"}},{"ruleId":"D1","level":"warning","message":{"text":"Definition::range_for_rename (cyclomatic 27): Definition::range_for_rename has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1aa1f95d83b4da0b93768836ace9e4cbe960c61089e3882babae6fb5bbc00e3"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::prime_caches::parallel_prime_caches (cyclomatic 27): ide_db::prime_caches::parallel_prime_caches has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/prime_caches.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd328b0a10ef0d08f252fb6aeaf1632e8225c5b67035814cb17fc01c5c4e81a"}},{"ruleId":"D1","level":"warning","message":{"text":"SemanticsImpl::descend_into_macros_impl (cyclomatic 26): SemanticsImpl::descend_into_macros_impl has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b0dc7797b2e163338b73a2127af29f8ffe18e3ad96aeceeb824cf4a6b29a09"}},{"ruleId":"D1","level":"warning","message":{"text":"Printer::print_type_ref (cyclomatic 26): Printer::print_type_ref has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a0801aacad15b0c64646a18ade7cdb018d07abdaa1e4541753a1d5301dec11"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::analyze_closure (cyclomatic 26): InferenceContext::analyze_closure has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7cefb38605e386eae65f71aa7db9e7749d83c181b553baa9a3de3b9e3358da"}},{"ruleId":"D1","level":"warning","message":{"text":"TyLoweringContext::lower_dyn_trait (cyclomatic 26): TyLoweringContext::lower_dyn_trait has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab422f4838c19ae2bc4a2fccc7650e2dfb0ee71d26b573c22e448b4cafe5a0d"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::exec_simd_intrinsic (cyclomatic 26): Evaluator::exec_simd_intrinsic has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim/simd.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d6348a245afee2b6bd389b6304eb2d3e4a9275e6e6097cb139875325801529"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::file_structure::structure_node (cyclomatic 26): ide::file_structure::structure_node has cyclomatic complexity 26 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/file_structure.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2d161d9a1558bfcb2c969c35dd9143fd5d3d34af13b68a38a8d92fa1287635"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::render::render_memory_layout (cyclomatic 26): ide::hover::render::render_memory_layout has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fdb97a18bdf371086bf13bccebe862da533215760dff5ea0d2d2ebde57dbbf"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::hints (cyclomatic 26): ide::inlay_hints::hints has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"019f2099205437dbbf7aa8145874e860f2399e1787fa155c9d817c1450567f95"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::render::render_resolution_path (cyclomatic 26): ide_completion::render::render_resolution_path has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1615e9804419e34644dbb43b47bde2944e4057f05080035bd9b18967f720336"}},{"ruleId":"D1","level":"warning","message":{"text":"Scip::run (cyclomatic 26): Scip::run has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6bf0e063ea703a98d9189c0576a004ea47b56bd10bacb8169d82c9cc0ccc89"}},{"ruleId":"D1","level":"warning","message":{"text":"tt::storage::decode (cyclomatic 26): tt::storage::decode has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c98be69ab4cd1819bf74da650e096e66063db69ca4929ff1faec9f1f1722d6"}},{"ruleId":"D1","level":"warning","message":{"text":"hir::source_analyzer::resolve_hir_path_ (cyclomatic 25): hir::source_analyzer::resolve_hir_path_ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"064092cc508090bcfeb315bef1698e2fd7b110db25e01459871fd0494b413ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"DefCollector::seed_with_top_level (cyclomatic 25): DefCollector::seed_with_top_level has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37ed0b75eaa4a9d581becad3579868e5a6fa280888ee62ba35be8e35b58e373"}},{"ruleId":"D1","level":"warning","message":{"text":"MirLowerCtx::lower_expr_as_place_without_adjust (cyclomatic 25): MirLowerCtx::lower_expr_as_place_without_adjust has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/as_place.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4136104cab35f50238822f65e7ec06f81853f1a5e302b7690894b29fc40a285c"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::goto_type_definition::goto_type_definition (cyclomatic 25): ide::goto_type_definition::goto_type_definition has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_type_definition.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f4c3362e56c3ef250c47c655a1a6b929aae0e81434771ec8ca8238c6c0eba1"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::signature_help::signature_help_for_call (cyclomatic 25): ide::signature_help::signature_help_for_call has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3485e50b0c73c5b053c5300a33c0918f6f7256b90b3ac73e9081cd64684e2f6"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::attribute::complete_attribute_path (cyclomatic 25): ide_completion::completions::attribute::complete_attribute_path has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9410cd5f662ee4758e4d69c14d71da76a6e209e266d12be6932556ec784d774e"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::item_list::add_keywords (cyclomatic 25): ide_completion::completions::item_list::add_keywords has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0260026807659c10b393ec549b1564ea7c42e7ffc895c27e6a3226efc0319cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::pattern::complete_pattern_path (cyclomatic 25): ide_completion::completions::pattern::complete_pattern_path has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa562027f69da0a9f210576c82a2b92de07707de86a56ea558b22e421c8c4aa2"}},{"ruleId":"D1","level":"warning","message":{"text":"NameRefClass::classify (cyclomatic 25): NameRefClass::classify has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Definition::docs_with_rangemap (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"160a715f792ffee94919109ac2965bc10c73f3871ca6670e5375e18c24295e59"}},{"ruleId":"D1","level":"warning","message":{"text":"Ctx::transform_path_ (cyclomatic 25): Ctx::transform_path_ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/path_transform.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"59029a724678c34b364fec784743c5117995caa7ac61c5642a5db70e4eca32f8"}},{"ruleId":"D1","level":"warning","message":{"text":"Converter::extend_literal (cyclomatic 25): Converter::extend_literal has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: parser::lexed_str::err_to_msg (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9fa9560e0005293df9927f82fc318b086315abfbd2c2abeb0a9ad856ba90c6"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalState::process_changes (cyclomatic 25): GlobalState::process_changes has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"5803356ccab288d86bf308c5adb41e8603d262feb742349cc362e0a6b3933f43"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::completion_item (cyclomatic 25): rust_analyzer::lsp::to_proto::completion_item has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: rust_analyzer::lsp::to_proto::completion_item_kind (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a65ff5321c0415b049cea36d89126282f84b9024c95b30af2078d4e691af01"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportMap::collect_import_map (cyclomatic 24): ImportMap::collect_import_map has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/import_map.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"266fc41443030815b2a075c5088e100a8da2d0a042c4480abba636b2f4edfb79"}},{"ruleId":"D1","level":"warning","message":{"text":"DefCollector::record_resolved_import (cyclomatic 24): DefCollector::record_resolved_import has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6af87b76616b7c27509ac233e9283df1054e2c79ae96b55ce09e6846ffdc50"}},{"ruleId":"D1","level":"warning","message":{"text":"CastCheck::do_check (cyclomatic 24): CastCheck::do_check has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/cast.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"173df976104a9a6867f95e51216e8ede80cedd9531177c1c31ad8a2c54e7d4e2"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::check_record_expr_fields (cyclomatic 24): InferenceContext::check_record_expr_fields has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94ab774ebbfe6849cdafcd034d029de6a05092b6a95b421d1f3a8232c762649"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::interpret_mir (cyclomatic 24): Evaluator::interpret_mir has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86c1913dc46f848710cf215a8377c6c0d2232bd839a04fdc9f3915506539fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::consteval::literal_ty (cyclomatic 24): hir_ty::consteval::literal_ty has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0945b3d77790fe5cda38dee810892a8f120dae2ea2407da04f5d0b5caebdfb85"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::annotations::annotations (cyclomatic 24): ide::annotations::annotations has cyclomatic complexity 24 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/annotations.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4a2d798d904c208be227357bda5792645f0d7ff2b0f2cc24af9f991b80c8e9"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::doc_links::filename_and_frag_for_def (cyclomatic 24): ide::doc_links::filename_and_frag_for_def has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"49078374e33c639242639b5c2f21b5e8326becb861cfcc0ef7b8ef439508d29b"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::rename::transform_method_call_into_assoc_fn (cyclomatic 24): ide::rename::transform_method_call_into_assoc_fn has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdb57f3ecc914cf10641ad72101241ec3ca62efd3b7140595023662e323c291"}},{"ruleId":"D1","level":"warning","message":{"text":"FindUsages::short_associated_function_fast_search::collect_possible_aliases (cyclomatic 24): FindUsages::short_associated_function_fast_search::collect_possible_aliases has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a67a0a71c4090d65de3b42b4cdb12055c746c899ff9b4273234c370e1ba9029"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::diagnostics::flycheck_to_proto::map_rust_diagnostic_to_lsp (cyclomatic 24): rust_analyzer::diagnostics::flycheck_to_proto::map_rust_diagnostic_to_lsp has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics/flycheck_to_proto.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"de747aee22da51bdbc566f6680dbaa2edaef73d12b6f2ff5bd769e75832ef2f5"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr::needs_parens_in_expr (cyclomatic 24): Expr::needs_parens_in_expr has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/prec.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6b398a1548911820f3412ac0bb2192cfdd206648900dbcd0d50821bd9aeda7"}},{"ruleId":"D1","level":"warning","message":{"text":"hir::attrs::resolve_doc_path_on_ (cyclomatic 23): hir::attrs::resolve_doc_path_on_ has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/attrs.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fd91339cc752d441737c6101aab5bc2870b6da18813fce506d97c106b36171"}},{"ruleId":"D1","level":"warning","message":{"text":"hir::display::write_function (cyclomatic 23): hir::display::write_function has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"79620767ef08477a84a1afbcaa15e2be26f78f8f93eebb181e3274bdea38e07e"}},{"ruleId":"D1","level":"warning","message":{"text":"DefCollector::push_res_and_update_glob_vis (cyclomatic 23): DefCollector::push_res_and_update_glob_vis has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7237f650fd727023e3d279c55e83a6e7c7d0c80e75e1d59498501606b7bff3"}},{"ruleId":"D1","level":"warning","message":{"text":"Pat::hir_fmt (cyclomatic 23): Pat::hir_fmt has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bf199170bf48af17c689845bcc53761b4bac0fcc2d22986ba2a57f23915127"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::check_call_arguments (cyclomatic 23): InferenceContext::check_call_arguments has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4da38ce106c159bb20eacb8638a035b3cf13070ff87e3eeb054a237c7f07a4f"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::drop::has_drop_glue_impl (cyclomatic 23): hir_ty::drop::has_drop_glue_impl has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/drop.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6450f989141c96ccd8389e74f08496e181fd1dbe453353aa5e2c61ebf8fe764f"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::lower::resolve_type_param_assoc_type_shorthand (cyclomatic 23): hir_ty::lower::resolve_type_param_assoc_type_shorthand has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7f5b8a55a687ca0159c57b14d9b7d907fd052efdab776ba9c77c20272556e5"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::lower::path::substs_from_args_and_bindings (cyclomatic 23): hir_ty::lower::path::substs_from_args_and_bindings has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"11079bcc8dbfdcc155c27dd77e4fa7afbff48f72a77dc3e7ee24a37c554456b1"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::highlight_related::highlight_references (cyclomatic 23): ide::highlight_related::highlight_references has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"95894389806a792b146c0da9b6489c2fbd5b74dfaec4f3fc9886503c3a597b29"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionBody::analyze_container (cyclomatic 23): FunctionBody::analyze_container has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2def598a63845ea338b6bc96b3b3195ce7472cbec0e0edf9380ef14c407d86"}},{"ruleId":"D1","level":"warning","message":{"text":"Module::get_usages_and_record_fields (cyclomatic 23): Module::get_usages_and_record_fields has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5eecb126bb4cd1b9821a444a97762282d0e91c74a070d77f34cad455b5f47e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::insert_use::guess_granularity_from_scope (cyclomatic 23): ide_db::imports::insert_use::guess_granularity_from_scope has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"974cb2ab2a373ff9b757211efdf682a914193461d483044466ee1204bd3f8721"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceToDefCtx::container_to_def (cyclomatic 22): SourceToDefCtx::container_to_def has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"458ce9b179a03a4eaef2556e1d6c9ef65be799f6557cd2ae2c4e953ad15d4ca6"}},{"ruleId":"D1","level":"warning","message":{"text":"Resolver::resolve_path_in_type_ns_with_prefix_info (cyclomatic 22): Resolver::resolve_path_in_type_ns_with_prefix_info has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f529f2405d3cf0a251d4149cbafec8ad772bac9bb23df20637245f9bda1814"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::expr_store::lower::lower_body (cyclomatic 22): hir_def::expr_store::lower::lower_body has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d26256076f20300c3bf6d9356a0a863e10e0e183973a1d37942ec1983cbab5a"}},{"ruleId":"D1","level":"warning","message":{"text":"TyLoweringContext::lower_ty_ext (cyclomatic 22): TyLoweringContext::lower_ty_ext has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"881c3201f941daa46c70617d599689621708007738648265bd8e12a3f3652338"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::create_memory_map::rec (cyclomatic 22): Evaluator::create_memory_map::rec has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"9993426a9d92e3ea8dbf624419e94868552d9d75dc5fec97a10837eeec84f214"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::goto_definition::goto_definition (cyclomatic 22): ide::goto_definition::goto_definition has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_definition.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7711ab712cad6d92fe8089c480e1d3dd06479de02884e00b862957028b17315"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::bind_pat::hints (cyclomatic 22): ide::inlay_hints::bind_pat::hints has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/bind_pat.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"065e7ad8f4c85e76f6c04e83ac07331e5ec7b5c348514d19b2b2030234ff99dc"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::join_lines::remove_newline (cyclomatic 22): ide::join_lines::remove_newline has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/join_lines.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b80e4eb880554d3ff9580183f197b68e26c99df50d3ecbe3310dcb923f627a"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::add_turbo_fish::add_turbo_fish (cyclomatic 22): ide_assists::handlers::add_turbo_fish::add_turbo_fish has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_turbo_fish.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b2ba67cb4c244caec5fff92eab89f2fb7b72dd5743ccd27fb2abcc926f33fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::use_::complete_use_path (cyclomatic 22): ide_completion::completions::use_::complete_use_path has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/use_.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ce88ea9d2dd32efdf268a62a5e8a774e29c3e131d4b657aab1b2d0a9d4311e"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::context::analysis::analyze (cyclomatic 22): ide_completion::context::analysis::analyze has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7006225424f72c9e1255972b58297529e8bd5746a0f7dee5c34bb0519f6af64"}},{"ruleId":"D1","level":"warning","message":{"text":"mbe::expander::matcher::match_loop (cyclomatic 22): mbe::expander::matcher::match_loop has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28f2058f3614e98c525c88317685801cbcf95f3c2e7aa843705ba34a85f046"}},{"ruleId":"D1","level":"warning","message":{"text":"parser::grammar::expressions::atom::parse_asm_expr (cyclomatic 22): parser::grammar::expressions::atom::parse_asm_expr has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e48e14c958ce19dbfd14695841a490da9b427465dcd15d74de445815b5a9636"}},{"ruleId":"D1","level":"warning","message":{"text":"Reader::read_subtree (cyclomatic 22): Reader::read_subtree has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"febc0e5429de7f74b129ff814ba613870bbd721fb9f6ccf91d71438614713047"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalState::current_status (cyclomatic 22): GlobalState::current_status has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a641e3cd6303c5bb9e079b495c6ff9096e2dec4583ecd6fe2d9ccc49b30a61"}},{"ruleId":"D1","level":"warning","message":{"text":"hir::attrs::resolve_assoc_or_field (cyclomatic 21): hir::attrs::resolve_assoc_or_field has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/attrs.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"077ee4615d9a9202e30510cfe14ef74b3f58f1eb5982dd8cb0a1d2f5ddc1bd17"}},{"ruleId":"D1","level":"warning","message":{"text":"Printer::print_mod_item (cyclomatic 21): Printer::print_mod_item has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/pretty.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc9fdb4667664ca0930694ff1155e96ecd981509fddd88bf05583d775d83810"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_expand::builtin::fn_macro::concat_expand (cyclomatic 21): hir_expand::builtin::fn_macro::concat_expand has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: BuiltinFnLikeExpander::find_by_name (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"883dbe246e9766523514df6059e49ff2f1adead74403a52851c4bfd3c0bc6360"}},{"ruleId":"D1","level":"warning","message":{"text":"Context::add_constraints_from_ty (cyclomatic 21): Context::add_constraints_from_ty has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b7b01785b62360a9efe97f715091055f949dd1885a58c1574d9b139ac48fc6"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::render::literal (cyclomatic 21): ide::hover::render::literal has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cf52e1df2d35840e0468255dab69ee19ae08fd99bac2b4f51e30ffd0de214a"}},{"ruleId":"D1","level":"warning","message":{"text":"mbe::expander::matcher::match_meta_var (cyclomatic 21): mbe::expander::matcher::match_meta_var has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a75bed492386ef6c23ea29fbef1f53359b6bcc6a6ba5637d5281662bf08379c"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::apply_change_with_sink (cyclomatic 21): Config::apply_change_with_sink has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: rust_analyzer::config::field_props (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d7454abe53ba9b6c6802f06c665c56561ccb750e4b0eb21e7d1b0fb88eded7"}},{"ruleId":"D1","level":"warning","message":{"text":"FlycheckActor::run (cyclomatic 21): FlycheckActor::run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"72516da64bc3839ff0b4c14ba56faac17158bf1e01f99e301ef9628fa2a24b56"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::handlers::request::handle_runnables (cyclomatic 21): rust_analyzer::handlers::request::handle_runnables has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"52025c822a658c9e093b808c3421739b9000d6f295edd802e88ac0fa5bde2e47"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::handlers::request::run_rustfmt (cyclomatic 21): rust_analyzer::handlers::request::run_rustfmt has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2758e208b380472b42e189e8f0b9732377a0c74b66fcf2f5bd9381fb81d010"}},{"ruleId":"D1","level":"warning","message":{"text":"NotifyActor::run (cyclomatic 21): NotifyActor::run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs-notify/src/lib.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9872497309e17d56a9adbc03ec24abe17fb4f16ca7c23a282f5a621b6c4ba3a9"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyDiagnostic::body_validation_diagnostic (cyclomatic 20): AnyDiagnostic::body_validation_diagnostic has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ea8ca3e7577f91f6ee605a67b59f6403c0e5fd979644e83ea350c1efec37c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprCollector::lower_type_ref (cyclomatic 20): ExprCollector::lower_type_ref has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed65ee7003b73bf5920a71d5f376486420113456990803e02161692f9d25f0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ItemScope::dump (cyclomatic 20): ItemScope::dump has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe18bca11af25b1a0656a6303798caa6a7f089890d31c093546e42278a5c06e"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::lang_item::crate_lang_items (cyclomatic 20): hir_def::lang_item::crate_lang_items has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"df073f3ee838bf342db1ea41c07ecf3aeaa032b4ce5ea45ad0078db213d1a300"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprUseVisitor::cat_pattern (cyclomatic 20): ExprUseVisitor::cat_pattern has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce1541cd6a89b5995e769d4035dcc5d200ef4e546deacc7413ffc98084f1b36"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::infer_ref_pat (cyclomatic 20): InferenceContext::infer_ref_pat has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b951099c108b9182bdf756b1ea1b070a7ba5ed15af4633314752feddae1ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"SolverContext::compute_goal_fast_path (cyclomatic 20): SolverContext::compute_goal_fast_path has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed30095168b6f8862b8751bca64a2922866fdb7ca3fe1478175c4af53fc82f7"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::lower::remap_gat_vars_and_recurse_into_nested_projections (cyclomatic 20): hir_ty::lower::remap_gat_vars_and_recurse_into_nested_projections has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed83fcc766305b183854063dd108cb3a6b3f8c01de55b82b86d513e0f2754394"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::typing::on_eq_typed (cyclomatic 20): ide::typing::on_eq_typed has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (assign_expr, let_stmt, assign_to_eq). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/typing.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c19efed47e71fb2a1ac76b6a782ad7671b45492662488367d5df1601b73c27"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::extract_function::extract_function (cyclomatic 20): ide_assists::handlers::extract_function::extract_function has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aa1dee3cae3b03e315e19447964550e4e37f683f8c7d2ff7fe5b931ae03f56"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::extract_type_alias::collect_used_generics (cyclomatic 20): ide_assists::handlers::extract_type_alias::collect_used_generics has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_type_alias.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2375eb809fdae820c09ecfad34ad91b27b7887785e93516c5da1c9da234ed32"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::inline_type_alias::create_replacement (cyclomatic 20): ide_assists::handlers::inline_type_alias::create_replacement has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_type_alias.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa3ba1d1d8814224e945a8a00eca0ddd095d1ef8af3a9e059eb7c3f9b835cf5"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::remove_dbg::compute_dbg_replacement (cyclomatic 20): ide_assists::handlers::remove_dbg::compute_dbg_replacement has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_dbg.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d02ff475411bc1cd6768fa3faa14cacc0e50a5750d3cf116e1d69bd5e81346"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::utils::gen_trait_fn_body::gen_partial_eq (cyclomatic 20): ide_assists::utils::gen_trait_fn_body::gen_partial_eq has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"efca1a46f81ee4ec04c665a2ed5bf868e184755dc4d6095509ab7901ebfbfce1"}},{"ruleId":"D1","level":"warning","message":{"text":"project_model::workspace::handle_rustc_crates (cyclomatic 20): project_model::workspace::handle_rustc_crates has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"345e8b355dcf759d40904e9a4c0987447aef510c8e59c32673f213e42a9f9e96"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::inlay_hints (cyclomatic 20): Config::inlay_hints has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: rust_analyzer::config::field_props (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb3b4ec780f25966bf4a4450635c881a484f3f9ace91ba7241748afa2049a13"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax::validation::validate_literal (cyclomatic 20): syntax::validation::validate_literal has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: syntax::validation::rustc_unescape_error_to_string (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d38241fc64d77cc2039450cea3bedf2486b339000dd81c0a0fe1d9995e8181"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.getDebugConfiguration (cyclomatic 20): debug.getDebugConfiguration has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/debug.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec7b2a52d12498112c681013fca976839ae1de71e20b264168e4752f0a249fd"}},{"ruleId":"D1","level":"warning","message":{"text":"BuiltinDeriveImplTrait::get_method (cyclomatic 19): BuiltinDeriveImplTrait::get_method has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/builtin_derive.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd6a15a3553b6cacd939ed5326622fdcdaed968ed6c9bc0dca99f366ad7ec7a"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_expand::mod_path::convert_path (cyclomatic 19): hir_expand::mod_path::convert_path has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/mod_path.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9022649ba71de0fe4ef960a06fd207b5f008997d141d3d56e942a54f2513e72"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprUseVisitor::walk_pat (cyclomatic 19): ExprUseVisitor::walk_pat has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f75c091800573f3e8fc40e9b0428cbdf49989961eed3acdf07ec68213739b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProbeContext::consider_probe (cyclomatic 19): ProbeContext::consider_probe has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"236f0a264f6c8597da02fa54872fcb63f0aa6bf2d0af63e34a50e924bba09846"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::exec_atomic_intrinsic (cyclomatic 19): Evaluator::exec_atomic_intrinsic has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ccdc8fb130baf2fba8915f8805d4d3416cc8000a543e6a5081c4a14d71cae8"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::patch_addresses (cyclomatic 19): Evaluator::patch_addresses has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"54960bc220b8c8c1c07880ce35fe6b0d4e8f0b5eca09c69cfd6406680ff31a03"}},{"ruleId":"D1","level":"warning","message":{"text":"MirEvalError::pretty_print (cyclomatic 19): MirEvalError::pretty_print has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/mir_pretty/errors.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f276b76f2c64f28b981d424a74d47f041546cd8c012a37c14dd6c652e5b3d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::implicit_drop::hints (cyclomatic 19): ide::inlay_hints::implicit_drop::hints has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/implicit_drop.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4664afeadf834c9ba5e4c58386382db40114bc00c975d7ccde0dce99fe69fd6a"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::param_name::get_segment_representation (cyclomatic 19): ide::inlay_hints::param_name::get_segment_representation has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/param_name.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"0149968b66616e0d22e0575d059e11515b486105dc23fb19054352c674cd09b5"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::convert_let_else_to_match::remove_mut_and_collect_idents (cyclomatic 19): ide_assists::handlers::convert_let_else_to_match::remove_mut_and_collect_idents has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_let_else_to_match.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec0c090f34732c9ec21525123bc49a15b52844c1880b8ff3c7f3729eb681a0f"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::import_assets::filter_by_definition_kind (cyclomatic 19): ide_db::imports::import_assets::filter_by_definition_kind has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d29cda41dddcbfbb09b1a8fdcecf455866d27f665193ea9610dc5d7df53f8d"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::import_assets::validate_resolvable (cyclomatic 19): ide_db::imports::import_assets::validate_resolvable has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ab3f6b7225cd2be9c2f620263ffa1d1a55c3045d92219fc1c506cc416c63a"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::insert_use::insert_use_with_alias_option_with_editor (cyclomatic 19): ide_db::imports::insert_use::insert_use_with_alias_option_with_editor has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8749a87d710824bee47175297ed373bac76b4d680c390119eccff963b1523301"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::syntax_helpers::node_ext::for_each_tail_expr (cyclomatic 19): ide_db::syntax_helpers::node_ext::for_each_tail_expr has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e623948a6c17bc123aca9ae5617eca4265ec346a04a29b74fdc76cefa8bd45a"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::traits::diff_assoc_items (cyclomatic 19): ide_db::traits::diff_assoc_items has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/traits.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf18a7d7052a8c1ba77f214070e2463d777bade40ec01862e45333c404e2ca3"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectFolders::new (cyclomatic 19): ProjectFolders::new has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03040d773e5364aa5332552257a3818ecef112476c549769ca546d803c0d00b"}},{"ruleId":"D1","level":"warning","message":{"text":"mbe::parser::eat_fragment_kind (cyclomatic 19): mbe::parser::eat_fragment_kind has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/parser.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6996f77852a7c71bf769fe5646c7c789d6c00615c3d1f971284eaacfaa275d9d"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::subtree (cyclomatic 19): Writer::subtree has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d417be97a8bca32d48c877a8cea237f9ceda0a5e8c4ae810e636d9f33e5d631"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::group (cyclomatic 19): Writer::group has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"196fb4af678ab8d6a807758b84efd8bc07cad296a4448b5638daa555ba6eb35e"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr::binding_power (cyclomatic 19): Expr::binding_power has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Expr::is_ordered_before_parent_in_place_of::order (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/prec.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce7c1595ec87a0fc1d28e8c7eae0af44f9d4bf74ece9fcf299fdb2adc537c02"}},{"ruleId":"D1","level":"warning","message":{"text":"syntax::ast::prec::precedence (cyclomatic 19): syntax::ast::prec::precedence has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: Expr::is_ordered_before_parent_in_place_of::order (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/prec.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d6b0732aa79611399fc61c639ab7330c9635230fcefab783d3bc46bead084f"}},{"ruleId":"D1","level":"warning","message":{"text":"TtTreeSink::token (cyclomatic 19): TtTreeSink::token has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69acf10d082c5abee382c28b12601c20d11d7c9b7a016608cbea593b1fd6fcc"}},{"ruleId":"D1","level":"warning","message":{"text":"MacroCallId::expand_speculative (cyclomatic 18): MacroCallId::expand_speculative has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"4924ec56dad6ea8b6a8b4c206d1d73775829ab5bdc04c70cdff99de50a2fee26"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluator::place_addr_and_ty_and_metadata (cyclomatic 18): Evaluator::place_addr_and_ty_and_metadata has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d62fabc7fe73b5731ad0cc07cb522910da7b80d9326e32fea2626ac53620e9"}},{"ruleId":"D1","level":"warning","message":{"text":"MirBody::walk_places (cyclomatic 18): MirBody::walk_places has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c285c4417f596a515dd07d6bd5946902567143d220f4002c3e9534dba290c9"}},{"ruleId":"D1","level":"warning","message":{"text":"BestObligation::visit_goal (cyclomatic 18): BestObligation::visit_goal has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87543d7aea69e4cffe3107f6868b47244535ab8a53b5ab0acccdf26504793ab"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::render::definition_owner_name (cyclomatic 18): ide::hover::render::definition_owner_name has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37ea59fc986a31ba38623af60eb0de82ae7dfa83eeba3fc94fb752a957842de"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::moniker::def_to_non_local_moniker (cyclomatic 18): ide::moniker::def_to_non_local_moniker has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: MonikerDescriptorKind::from (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/moniker.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf78b2738542b40e7b5f6be8394de0e4645c7bf8c9499e45884de8c47b7f2861"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::rename::transform_assoc_fn_into_method_call (cyclomatic 18): ide::rename::transform_assoc_fn_into_method_call has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc66d56c732da01976088845164ac5659d843dbd82d6b0aa2590c091a50c1b3"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::signature_help::signature_help (cyclomatic 18): ide::signature_help::signature_help has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"61adf8a1c98b9ab66effed1daef579eafd0f7ab345acedb6bae870dcdf8e1052"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::highlight_name_ref_by_syntax (cyclomatic 18): ide::syntax_highlighting::highlight::highlight_name_ref_by_syntax has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ide::syntax_highlighting::highlight::highlight_name_by_syntax (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e27900236e432f20dc11ff1fb4c129c45571f94ebd31b91c8554bdace7971e"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::view_memory_layout::view_memory_layout (cyclomatic 18): ide::view_memory_layout::view_memory_layout has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/view_memory_layout.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2adb0f41aa145da0ca58ee66780673e812fad425562df21ff5a69f7079c7d8f"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::apply_demorgan::apply_demorgan (cyclomatic 18): ide_assists::handlers::apply_demorgan::apply_demorgan has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/apply_demorgan.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d4b6a6a8a011d7fff75c5341470e502a326b4fac60f447cfa468ae044f05f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::extract_module::extract_module (cyclomatic 18): ide_assists::handlers::extract_module::extract_module has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989f3e2834a897d60fc13019d9d887c76f905eb66b20ccc6c5a869a71a05337"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::generate_new::generate_new (cyclomatic 18): ide_assists::handlers::generate_new::generate_new has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_new.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc974d41bf6c383f74172626ac949d4be9396975069ae465090dd1f928fe6d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::unwrap_branch::unwrap_branch (cyclomatic 18): ide_assists::handlers::unwrap_branch::unwrap_branch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_branch.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4362152d448f9b4c2a81e8be5b755967ae106cd3774a91a101c87089bd0365c4"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::wrap_return_type::wrap_return_type (cyclomatic 18): ide_assists::handlers::wrap_return_type::wrap_return_type has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_return_type.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcd22bda6fb338eec840f2221b1aaa98fb3339b18e1394adc1b736582fad4f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::complete_name_ref (cyclomatic 18): ide_completion::completions::complete_name_ref has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c5379a43c69286f6fd981aeb0f6bfbf84b3b004a89861866593b393463ea72"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::render::function::render (cyclomatic 18): ide_completion::render::function::render has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/function.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f68ce5f0048cf0408b263463bda2d572dfdb67458d6b40dd4b3f90aafed5ef7"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_diagnostics::handlers::unlinked_file::fixes (cyclomatic 18): ide_diagnostics::handlers::unlinked_file::fixes has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unlinked_file.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"111a46ab6d58125896d017b2d7635d16a066311639b46183bd61643c5102be15"}},{"ruleId":"D1","level":"warning","message":{"text":"parser::grammar::expressions::atom::builtin_expr (cyclomatic 18): parser::grammar::expressions::atom::builtin_expr has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bf7da988012e6196a4c7bb76461cb791a4dca9cc1fb2caf3290e6888a0c384"}},{"ruleId":"D1","level":"warning","message":{"text":"ungrammar::lexer::advance (cyclomatic 18): ungrammar::lexer::advance has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ungrammar/src/lexer.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc046d041f986371ee9bcf95f06311f6a0b345efec2e5d0238f73ba172b0fa27"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::find_path::find_path_for_module (cyclomatic 17): hir_def::find_path::find_path_for_module has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d8b5137fb012d519a729674167ac98e64a164a7ce795b0998c54d2c38aaf1f"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::compute_min_captures (cyclomatic 17): InferenceContext::compute_min_captures has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bda2ccf9d637031ac9a50fc277b9c55d409408c77d5838ef624eba8c842204"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::deduce_closure_signature_from_predicates (cyclomatic 17): InferenceContext::deduce_closure_signature_from_predicates has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b5c0d4f943e7d384dda0e4134430fde10cdbba739e53558f6f3d466e567a00"}},{"ruleId":"D1","level":"warning","message":{"text":"InferenceContext::resolve_all (cyclomatic 17): InferenceContext::resolve_all has cyclomatic complexity 17 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"713ced629d4aacdbbb75e0b496255f3f5af1c0aeccc822d841519ce3c30e7b28"}},{"ruleId":"D1","level":"warning","message":{"text":"PathLoweringContext::substs_from_args_and_bindings (cyclomatic 17): PathLoweringContext::substs_from_args_and_bindings has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a9d5d3222adc464b92936953c082c3e8a306832f4e3dc79385eb6181c4f827"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::lower::path::check_generic_args_len (cyclomatic 17): hir_ty::lower::path::check_generic_args_len has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a9d66fb740defd28b2ed3513a3db21f62ca04637970e8f4b2976aabd0e58fb"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::mir::lower::mir_body_for_closure_query (cyclomatic 17): hir_ty::mir::lower::mir_body_for_closure_query has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"53eed89a742f888c1f34288c40a6a61563879823a4dce9ae1960d3775bfaf935"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::binding_mode::hints (cyclomatic 17): ide::inlay_hints::binding_mode::hints has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/binding_mode.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd57bdd0df0ec7124078a747f75fd2cb720945b8af3caafe959773314724530f"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::inlay_hints::generic_param::hints (cyclomatic 17): ide::inlay_hints::generic_param::hints has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/generic_param.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7c351927857f22929193f81463448b037f32a0c14af300f6115213f19041f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::signature_help::signature_help_for_generics (cyclomatic 17): ide::signature_help::signature_help_for_generics has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb181e35b216140435a2b1a8a29281127289ae99057659978797c31eccb9681"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::auto_import::relevance_score (cyclomatic 17): ide_assists::handlers::auto_import::relevance_score has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/auto_import.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77e81325aeac6c849bee53defc88fe960f96f6e17511bef767055ab9e442343"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::convert_bool_to_enum::replace_usages (cyclomatic 17): ide_assists::handlers::convert_bool_to_enum::replace_usages has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1297e972bf7eb092813c4626beb00f0dddb79c749ac86f5ec6d8d69c3f95674b"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::extract_function::make_body (cyclomatic 17): ide_assists::handlers::extract_function::make_body has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: FunctionBody::external_control_flow (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f858c9e6cc15d3dfe2a9f14b3f9a6f6da430daf4dfd8792b92b72ba45d1997"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::toggle_macro_delimiter::toggle_macro_delimiter (cyclomatic 17): ide_assists::handlers::toggle_macro_delimiter::toggle_macro_delimiter has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/toggle_macro_delimiter.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"20346a67a210d2e5792f582f22a3bd501b0a8343b75f5c54d0ea5e87022fcb06"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::merge_imports::recursive_normalize (cyclomatic 17): ide_db::imports::merge_imports::recursive_normalize has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"930cf78514ab45beb3917397b48c1b638e37d5cc5f2ad24f87f40dd53867f030"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::merge_imports::version_sort::version_sort (cyclomatic 17): ide_db::imports::merge_imports::version_sort::version_sort has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1ae1bbdb1a3e76710eac35f34257d7f92a5e90923eb6ddf94f5697f99d1334"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::syntax_helpers::tree_diff::diff (cyclomatic 17): ide_db::syntax_helpers::tree_diff::diff has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (go, syntax_element_eq). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/tree_diff.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"896d488134a9e9cf6a35ede34fa78f92afadffbb1327c747fe913b42ec16a3b3"}},{"ruleId":"D1","level":"warning","message":{"text":"CargoWorkspace::new (cyclomatic 17): CargoWorkspace::new has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef4f75088573ac92140382b531d13cdd0d6fdf6e6bbf7c0d1ec1a025d89bb84"}},{"ruleId":"D1","level":"warning","message":{"text":"Sysroot::load_workspace (cyclomatic 17): Sysroot::load_workspace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2633bfa809fa1a0a6a654b850ccbfb7509d8e9205737f4af030e13a6c7121d8"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::lsp::completion_item_hash (cyclomatic 17): rust_analyzer::lsp::completion_item_hash has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (hash_completion_relevance). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a935be17a58c85ea058af07ae8eeb9875bf64b407ac0828e6378bd3bb53dac46"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::code_lens (cyclomatic 17): rust_analyzer::lsp::to_proto::code_lens has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: rust_analyzer::lsp::to_proto::completion_item_kind (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabcda46a811cb5688e78af9a17a6eda2a4da5410ace95e288c79e3d6ce35b90"}},{"ruleId":"D1","level":"warning","message":{"text":"UseTree::expand_impl (cyclomatic 16): UseTree::expand_impl has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"7634d7ab810bcc7b14529dbcb3f7ca6325a7ade17791a400f555889258cd91d9"}},{"ruleId":"D1","level":"warning","message":{"text":"DefMap::resolve_path_fp_with_macro_single (cyclomatic 16): DefMap::resolve_path_fp_with_macro_single has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5968a8c7a64fdca9404ac3e9aa907107d6b6609b858db4620e66b110fbbf0564"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionSignature::with_source_map (cyclomatic 16): FunctionSignature::with_source_map has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/signatures.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc36fb03494d62d1ffbe11631f5f9228e5631cd654097de8a5246b59a944d4ce"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_def::find_path::find_local_import_locations (cyclomatic 16): hir_def::find_path::find_local_import_locations has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"4337b84f19f4b9110cf3ea98e118552195d3226d4554c405b25909228f80d5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"PathLoweringContext::resolve_path_in_value_ns (cyclomatic 16): PathLoweringContext::resolve_path_in_value_ns has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"768fc4cb06b9fc8a2feb42eb060d4297792cd0f3b607f5eed3e20da31175f4e7"}},{"ruleId":"D1","level":"warning","message":{"text":"Filler::fill_body (cyclomatic 16): Filler::fill_body has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/monomorphization.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"591a4a70071ef7f3f3f388a58dc01a65df1d7cd300d9d29f95297233243e66df"}},{"ruleId":"D1","level":"warning","message":{"text":"Generalizer::tys (cyclomatic 16): Generalizer::tys has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"385fcc9944e3f2ef5e7c02b52d28ba24a31f2046e9f31d71670b26a1864cc9da"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::consteval::intern_const_ref (cyclomatic 16): hir_ty::consteval::intern_const_ref has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71409314748edd663c29c1260e9b610853f5b3ed5e4d692b93e713e7e183369"}},{"ruleId":"D1","level":"warning","message":{"text":"hir_ty::infer::infer_query_with_inspect (cyclomatic 16): hir_ty::infer::infer_query_with_inspect has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e794ae1e05c508748243af30fd73e070800e32900a3c32836d5a08c5bdac2cee"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::highlight_related::highlight_break_points (cyclomatic 16): ide::highlight_related::highlight_break_points has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (hl). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: ide::highlight_related::highlight_related (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"235fc75049e4e215b79d59b023f6ecfbec1a3848cc33f89a0e13d465eaeb7039"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::goto_type_action_for_def (cyclomatic 16): ide::hover::goto_type_action_for_def has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"30289343136b34b871719c203bb82a0c555a71863320085f73b5f8329ded5b30"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::hover::render::try_expr (cyclomatic 16): ide::hover::render::try_expr has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb32ac0943545b0d2e5cd0b0678d545e84a417590f07c4e67f606a5c02fee79"}},{"ruleId":"D1","level":"warning","message":{"text":"ide::rename::find_definitions (cyclomatic 16): ide::rename::find_definitions has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aaa83b909799eae1a337973bf6a19ca752920fb905b53338e675b92f0cfe33"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::convert_closure_to_fn::compute_closure_type_params (cyclomatic 16): ide_assists::handlers::convert_closure_to_fn::compute_closure_type_params has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f914ecc5f7f913e0b4f488d92702b46cd3cf03e41bed61324c31ea8a94596f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::extract_expressions_from_format_string::extract_expressions_from_format_string (cyclomatic 16): ide_assists::handlers::extract_expressions_from_format_string::extract_expressions_from_format_string has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"716fc5becf6e0e77d24f6128980ed858e4149e33743717d79b810aba35ac0472"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::generate_delegate_methods::generate_delegate_methods (cyclomatic 16): ide_assists::handlers::generate_delegate_methods::generate_delegate_methods has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_methods.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57069308054f800bc5dce371247e9463923349168418b0368c6d8dd37d00845"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::handlers::wrap_unwrap_cfg_attr::attempt_get_derive (cyclomatic 16): ide_assists::handlers::wrap_unwrap_cfg_attr::attempt_get_derive has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f67fe515e9692774ba68bb9ff7a7d68e6cbf1ea5745e0727c30b4d4f272641"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_assists::utils::invert_special_case (cyclomatic 16): ide_assists::utils::invert_special_case has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed83b73d3db85682d1e7d7554f27cb2ace690f849ea4ab46c2e7c09830b3311f"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionContext::new (cyclomatic 16): CompletionContext::new has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"b774f177a78a33477c5232cc66a88ce8ee4581fe1a328f803d491a6bbc4ddeb9"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_completion::completions::attribute::cfg::complete_cfg (cyclomatic 16): ide_completion::completions::attribute::cfg::complete_cfg has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/cfg.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8443b2fd56d59374bf1dfa994d6cf6237ff601388fdfc62bbeb3650e8b7b932f"}},{"ruleId":"D1","level":"warning","message":{"text":"ide_db::imports::merge_imports::use_tree_cmp (cyclomatic 16): ide_db::imports::merge_imports::use_tree_cmp has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8524f9d47c20e74ff01c9a3a227b9be8d92cf3bdecaf1c6344f72d7d268915"}},{"ruleId":"D1","level":"warning","message":{"text":"parser::grammar::expressions::expr_bp (cyclomatic 16): parser::grammar::expressions::expr_bp has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: parser::grammar::expressions::current_op (cyclomatic 33) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"95df6fbdbeb0cd3697b9a1a98ee819afb1161f840a9e6efb6837e679222e2c61"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceBuildScripts::run_command (cyclomatic 16): WorkspaceBuildScripts::run_command has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"730fbf9854f6de32db549084a48bf1975ae4a1d9ff570e4303423fe2b7c08ab9"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceBuildScripts::build_command (cyclomatic 16): WorkspaceBuildScripts::build_command has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e98472c741c732d3a071eef3a25dac463af5a252b2a1f00e40b20e129c4461"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectWorkspace::load_cargo (cyclomatic 16): ProjectWorkspace::load_cargo has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb499c935d9dbc873f5af30b301aae5dbc4cf3ca920bebc06ea0dc70399354c"}},{"ruleId":"D1","level":"warning","message":{"text":"project_model::workspace::project_json_to_crate_graph (cyclomatic 16): project_model::workspace::project_json_to_crate_graph has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d05189d4490348bec87ff4fafd2d93cfeda11fd63682661ba6952c1c73fa64d"}},{"ruleId":"D1","level":"warning","message":{"text":"FlycheckActor::check_command (cyclomatic 16): FlycheckActor::check_command has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e96fe8f4a64383940bac2609186606f02fe41edce77b173ac1e12176902eec"}},{"ruleId":"D1","level":"warning","message":{"text":"rust_analyzer::session::run_session (cyclomatic 16): rust_analyzer::session::run_session has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/session.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3960c3a77b286e23762dfdbadecea4adb90e58f5c5a3246f8a21da68ed19485d"}},{"ruleId":"D1","level":"warning","message":{"text":"AstIdMap::from_source (cyclomatic 16): AstIdMap::from_source has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ErasedFileAstIdKind::syntax_kind (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b185a567b03e88e86db909eacfab4d802d6ece63441ef3f7a812edd63dd387d3"}},{"ruleId":"D1","level":"warning","message":{"text":"xtask::codegen::lints::generate_lint_descriptor (cyclomatic 16): xtask::codegen::lints::generate_lint_descriptor has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8518adb62d9021c8feba98edabce8867995542a1e5debe337364ff54332139"}},{"ruleId":"D1","level":"warning","message":{"text":"xtask::publish::notes::get_next_line_component (cyclomatic 16): xtask::publish::notes::get_next_line_component has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/publish/notes.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aebf1b261d5d1432ef07a8b45ddf28c68456e9141fa95e604ac1d2993a21b8"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::exec_intrinsic (cognitive 213): Evaluator::exec_intrinsic has cognitive complexity 213 (threshold 15). Drivers by points: if/else 86 (177 pts), match/switch 14 (27 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 107). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e40566d963fb555fb3c07ed98a9ea80f4e7f77aea0dde1d266eb98d4d3caab"}},{"ruleId":"D2","level":"warning","message":{"text":"MirLowerCtx::lower_expr_to_place_without_adjust (cognitive 208): MirLowerCtx::lower_expr_to_place_without_adjust has cognitive complexity 208 (threshold 15). Drivers by points: if/else 62 (140 pts), match/switch 23 (54 pts), loops 4 (9 pts), boolean chains 5 (nesting depth added 114). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"470b49f17cc76f5dec3a80facbc41c35cd69d366cf2fce2e22ad7db3901b23ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::context::analysis::classify_name_ref (cognitive 172): ide_completion::context::analysis::classify_name_ref has cognitive complexity 172 (threshold 15). Drivers by points: if/else 48 (80 pts), match/switch 32 (67 pts), boolean chains 16, loops 2 (9 pts) (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d40f81c29cee9ddd30dbf87256d9bd7bf349e5e712007483d4f27be5887ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"Ty::hir_fmt (cognitive 149): Ty::hir_fmt has cognitive complexity 149 (threshold 15). Drivers by points: if/else 46 (102 pts), match/switch 21 (42 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b26482e90e20f4ef30275891a6cb5b4f4d961662882382162b424768897697"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::eval_rvalue (cognitive 146): Evaluator::eval_rvalue has cognitive complexity 146 (threshold 15). Drivers by points: match/switch 25 (68 pts), if/else 24 (66 pts), loops 4 (12 pts) (nesting depth added 93). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dd99fb04950934adbd93d348e831a1587bc5e2833088d624c11c791901d230"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::config::patch_old_style::patch_json_for_outdated_configs (cognitive 135): rust_analyzer::config::patch_old_style::patch_json_for_outdated_configs has cognitive complexity 135 (threshold 15). Drivers by points: loops 41 (82 pts), match/switch 43 (44 pts), if/else 6 (7 pts), boolean chains 2 (nesting depth added 43). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config/patch_old_style.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"976aa3e1f39e7f9b7a3da5f56f9c1d2ad3d22bb2a3e09876f030b0d50f3d4110"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisStats::run_inference (cognitive 134): AnalysisStats::run_inference has cognitive complexity 134 (threshold 15). Drivers by points: if/else 43 (115 pts), match/switch 4 (8 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff062731c8123884d576badb904b11d67631f145508a9e7141f001e4e5b5f5e4"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::expander::matcher::match_loop_inner (cognitive 133): mbe::expander::matcher::match_loop_inner has cognitive complexity 133 (threshold 15). Drivers by points: if/else 44 (115 pts), match/switch 4 (11 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 79). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"149e960e1d94f93d94fb7f0902711ea3478e7c46e96debceaf967011fa527a53"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::expr::complete_expr_path (cognitive 131): ide_completion::completions::expr::complete_expr_path has cognitive complexity 131 (threshold 15). Drivers by points: if/else 38 (87 pts), match/switch 13 (32 pts), boolean chains 6, loops 2 (6 pts) (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6758ba08f0a332c32ebaf751bf9a502b6238496d12a7c84b957f43e36af0fe28"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::maybe_collect_expr (cognitive 119): ExprCollector::maybe_collect_expr has cognitive complexity 119 (threshold 15). Drivers by points: if/else 51 (93 pts), match/switch 9 (19 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"001f3bc147e56c11df5770df92b0b039a8ca3a9ddc1207d1914470c25d917923"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::handle_event (cognitive 109): GlobalState::handle_event has cognitive complexity 109 (threshold 15). Drivers by points: if/else 31 (60 pts), boolean chains 19, loops 8 (16 pts), match/switch 6 (14 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f608cedca4d52421463eadd5c3d31f140e509677b059221e54c907b67ea9cab7"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::traverse (cognitive 103): ide::syntax_highlighting::traverse has cognitive complexity 103 (threshold 15). Drivers by points: if/else 17 (50 pts), match/switch 16 (49 pts), boolean chains 3, loops 1 (nesting depth added 66). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1246d5d172aea4a439dd25b42d5ba93b45eb6fd12957881609bf0dd4545b5e0"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::syntax_helpers::format_string::lex_format_specifiers (cognitive 101): ide_db::syntax_helpers::format_string::lex_format_specifiers has cognitive complexity 101 (threshold 15). Drivers by points: if/else 18 (62 pts), match/switch 7 (29 pts), boolean chains 7, loops 3 (nesting depth added 66). Of this number, 92 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4535d6f49e90d33d6165695ecb514242687f0f6eeb93b03490a62d8ffffb7238"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::lower_inline_asm (cognitive 100): ExprCollector::lower_inline_asm has cognitive complexity 100 (threshold 15). Drivers by points: if/else 27 (65 pts), match/switch 10 (28 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/asm.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fa398df625170e9bedc4f31d474f8e6a3288325678c8b5803ed42a30c551b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceAnalyzer::resolve_path (cognitive 99): SourceAnalyzer::resolve_path has cognitive complexity 99 (threshold 15). Drivers by points: if/else 30 (67 pts), match/switch 8 (23 pts), loops 1 (6 pts), boolean chains 3 (nesting depth added 57). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddb8040efe3261b27e6eb389e259395193f821bd5d5ced8a6458ab612423383"}},{"ruleId":"D2","level":"warning","message":{"text":"FindUsages::search (cognitive 98): FindUsages::search has cognitive complexity 98 (threshold 15). Drivers by points: if/else 16 (44 pts), loops 12 (36 pts), match/switch 8 (17 pts), boolean chains 1 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d442c841c333a116dc666aa466d9ae9239e6e136db13018b61c52f110d9ec63"}},{"ruleId":"D2","level":"warning","message":{"text":"FindUsages::short_associated_function_fast_search::collect_possible_aliases (cognitive 97): FindUsages::short_associated_function_fast_search::collect_possible_aliases has cognitive complexity 97 (threshold 15). Drivers by points: if/else 15 (73 pts), loops 6 (20 pts), boolean chains 4 (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5d8e516997898a3a582c95bb369e07e1fdf61f74127b67f6ca1a50f1ab3fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_expr_inner (cognitive 96): InferenceContext::infer_expr_inner has cognitive complexity 96 (threshold 15). Drivers by points: if/else 27 (50 pts), match/switch 15 (33 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a3ab6e99ea65eedb2f7ebaa83bea48c11d370a10bc7dda3323e12e9ed5d1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::hover::render::definition (cognitive 92): ide::hover::render::definition has cognitive complexity 92 (threshold 15). Drivers by points: if/else 34 (64 pts), match/switch 16 (28 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f368cb5a3e38fe3f9efdb55b3d810a75959025f9ba7506d3961391a551bd1467"}},{"ruleId":"D2","level":"warning","message":{"text":"Printer::print_expr_in (cognitive 88): Printer::print_expr_in has cognitive complexity 88 (threshold 15). Drivers by points: if/else 23 (50 pts), loops 7 (19 pts), match/switch 10 (19 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"403a2add42ba1a65dad66273361b99b04f52fe52860bb835cf546aff9cd88da6"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ide::display::render_const_scalar_inner (cognitive 87): hir_ide::display::render_const_scalar_inner has cognitive complexity 87 (threshold 15). Drivers by points: if/else 27 (67 pts), match/switch 6 (13 pts), loops 3 (7 pts) (nesting depth added 51). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"173e1c7575f3413c25ec724cc702faa486cd6bc7c9ee186b9c03003a160e0ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::cfg_process::macro_input_callback (cognitive 86): hir_expand::cfg_process::macro_input_callback has cognitive complexity 86 (threshold 15). Drivers by points: if/else 23 (61 pts), match/switch 4 (11 pts), loops 3 (10 pts), boolean chains 4 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/cfg_process.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c4e98c2ae21f89562e366f2ddbf7ada22f0b15a77ca760b3a26dd116ef44d1"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisStats::run (cognitive 81): AnalysisStats::run has cognitive complexity 81 (threshold 15). Drivers by points: if/else 25 (35 pts), match/switch 6 (22 pts), loops 8 (21 pts), boolean chains 3 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"160b29be9703d6462f08aaacf65cb7c3b428fe468d1f40ed054daaf4daec02f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::inline_call::inline (cognitive 80): ide_assists::handlers::inline_call::inline has cognitive complexity 80 (threshold 15). Drivers by points: if/else 25 (46 pts), match/switch 8 (15 pts), boolean chains 10, loops 6 (9 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_call.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6f8cb23abeda02f3cda7d59ad50ada23e3e95d338623f2d765309f11344806"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::resolve_variant (cognitive 79): InferenceContext::resolve_variant has cognitive complexity 79 (threshold 15). Drivers by points: if/else 28 (60 pts), match/switch 7 (13 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 39). Of this number, 77 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2373ef1eb824c7bf46a923c2568d902703bc1910124f044e59d67331c480986"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticsImpl::descend_into_macros_impl (cognitive 78): SemanticsImpl::descend_into_macros_impl has cognitive complexity 78 (threshold 15). Drivers by points: if/else 10 (41 pts), match/switch 6 (20 pts), loops 5 (16 pts), boolean chains 1 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"93858c6b8844c57d4937cb39c23929fcef14c85932a200affdb11397bafa9a10"}},{"ruleId":"D2","level":"warning","message":{"text":"MirLowerCtx::pattern_match_inner (cognitive 78): MirLowerCtx::pattern_match_inner has cognitive complexity 78 (threshold 15). Drivers by points: if/else 26 (60 pts), match/switch 5 (10 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 42). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dfd39120353bd6c19c70de5229d7bc9e94e352f8ca7082197c805c28efcb5d"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ide::display::write_bounds_like_dyn_trait (cognitive 77): hir_ide::display::write_bounds_like_dyn_trait has cognitive complexity 77 (threshold 15). Drivers by points: if/else 26 (69 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"635203996013e6a8c1807d8a48002410bec111db4646d11709bc346143c5f145"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::folding_ranges::folding_ranges (cognitive 76): ide::folding_ranges::folding_ranges has cognitive complexity 76 (threshold 15). Drivers by points: if/else 18 (65 pts), match/switch 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/folding_ranges.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e4edb0a1d1813b0fe0a2490340663fe53001c8f5cd4ac42506408430a85f3f"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticsCollector::collect_impl (cognitive 75): DiagnosticsCollector::collect_impl has cognitive complexity 75 (threshold 15). Drivers by points: if/else 16 (45 pts), match/switch 4 (12 pts), loops 3 (11 pts), boolean chains 7 (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a1cc5be5c0e7a68046f7e29e7babe1e67ed67e987dd9c70640ce804cd6e385"}},{"ruleId":"D2","level":"warning","message":{"text":"DefCollector::resolve_macros (cognitive 75): DefCollector::resolve_macros has cognitive complexity 75 (threshold 15). Drivers by points: if/else 18 (56 pts), match/switch 6 (11 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0088047c953d8da706652ad0a9714e920c726bf54164b9c9a9d2c88aaa3cdbd"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::layout::layout_of_ty_query (cognitive 75): hir_ty::layout::layout_of_ty_query has cognitive complexity 75 (threshold 15). Drivers by points: if/else 20 (54 pts), match/switch 9 (21 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bd8b18e25a176c174ae25620e04054de429d93e8e579c1f12517ec6add5b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::fixup::fixup_syntax (cognitive 74): hir_expand::fixup::fixup_syntax has cognitive complexity 74 (threshold 15). Drivers by points: if/else 18 (50 pts), match/switch 5 (17 pts), boolean chains 6, loops 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/fixup.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee30b27419989081ea6395d5fca71f46412c98cc7d7e1d59caf469903cd8877"}},{"ruleId":"D2","level":"warning","message":{"text":"Path::hir_fmt (cognitive 73): Path::hir_fmt has cognitive complexity 73 (threshold 15). Drivers by points: if/else 14 (42 pts), match/switch 5 (18 pts), loops 4 (11 pts), boolean chains 2 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3b5e449b2f25a6fad17dafb83948d71fb87c055e9a085c5ce3b8c020bdbe81"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::expr_store::lower::path::lower_path (cognitive 72): hir_def::expr_store::lower::path::lower_path has cognitive complexity 72 (threshold 15). Drivers by points: if/else 25 (47 pts), match/switch 7 (19 pts), boolean chains 5, loops 1 (nesting depth added 34). Of this number, 71 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8ec5c52605de650eaf9534a386be8eb13a57421990ef57eaa72d97a419d321"}},{"ruleId":"D2","level":"warning","message":{"text":"project_model::workspace::cargo_to_crate_graph (cognitive 72): project_model::workspace::cargo_to_crate_graph has cognitive complexity 72 (threshold 15). Drivers by points: if/else 22 (55 pts), loops 7 (12 pts), boolean chains 5 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"084f979542dc73292d088562b58be24867a38ce433c69a5bd855bae2183f457e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::collect_format_args_impl (cognitive 71): ExprCollector::collect_format_args_impl has cognitive complexity 71 (threshold 15). Drivers by points: if/else 23 (56 pts), match/switch 3 (8 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/format_args.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6fa54da310964541635d453ed08504c55d37464825754eefd76a77f424c86a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::highlight_def (cognitive 69): ide::syntax_highlighting::highlight::highlight_def has cognitive complexity 69 (threshold 15). Drivers by points: if/else 22 (42 pts), match/switch 9 (22 pts), boolean chains 5 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1a2624cc03e1c8aa0c4ba950462c79a7fb1a5458773f327c70dcc6760a8801"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::notification::run_flycheck (cognitive 69): rust_analyzer::handlers::notification::run_flycheck has cognitive complexity 69 (threshold 15). Drivers by points: if/else 11 (36 pts), match/switch 6 (19 pts), loops 3 (11 pts), boolean chains 3 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d71060a155ead955313ce49184c5788a0fab6c85dcccf5dbf0b12f4b36f279"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisStats::run_term_search (cognitive 67): AnalysisStats::run_term_search has cognitive complexity 67 (threshold 15). Drivers by points: if/else 10 (31 pts), match/switch 9 (26 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e97d6dbf9618aff5b432866acc9c1a9a69ad4c301ad11eca89d783a3400d23"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::builtin::derive_macro::coerce_pointee_expand (cognitive 64): hir_expand::builtin::derive_macro::coerce_pointee_expand has cognitive complexity 64 (threshold 15). Drivers by points: if/else 31 (46 pts), match/switch 8 (10 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 18). Of this number, 46 points are the body\u0027s own statements and 18 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9231013b73e5845781fa63aca6a4b696072bd952ae142a0985299d4764f99f7f"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::expander::transcriber::expand_subtree (cognitive 64): mbe::expander::transcriber::expand_subtree has cognitive complexity 64 (threshold 15). Drivers by points: if/else 8 (29 pts), match/switch 7 (28 pts), loops 3 (7 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db8708cfb5c8fd9efe51a1467ff9709b4d38b264359cbe6459f0818f58f641"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::context::analysis::expected_type_and_name (cognitive 63): ide_completion::context::analysis::expected_type_and_name has cognitive complexity 63 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 11 (23 pts), boolean chains 7, loops 3 (5 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6d62e3c92cdce8db08bf548d2f23a44fc8056c2adb9bea182f0613618fae86"}},{"ruleId":"D2","level":"warning","message":{"text":"NotifyActor::run (cognitive 63): NotifyActor::run has cognitive complexity 63 (threshold 15). Drivers by points: if/else 9 (36 pts), loops 4 (13 pts), match/switch 3 (10 pts), boolean chains 4 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs-notify/src/lib.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de6f7873664927f9347ddbfcee59c99e93a127f9d7301c6fed56cc6c96d7fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::rename::transform_method_call_into_assoc_fn (cognitive 62): ide::rename::transform_method_call_into_assoc_fn has cognitive complexity 62 (threshold 15). Drivers by points: if/else 12 (41 pts), match/switch 4 (14 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"644c286fdfd9cd15ad340ec16d307d016d8f3d00cfd75518cc140734b81e4eee"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::switch_workspaces (cognitive 62): GlobalState::switch_workspaces has cognitive complexity 62 (threshold 15). Drivers by points: if/else 20 (41 pts), match/switch 5 (10 pts), loops 2 (6 pts), boolean chains 5 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"43804056278dd1466a5d90b30ebecdaacaeff7bcb1cd799c33c8c6854f08aca0"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver::resolve_path_in_value_ns_with_prefix_info (cognitive 61): Resolver::resolve_path_in_value_ns_with_prefix_info has cognitive complexity 61 (threshold 15). Drivers by points: if/else 16 (41 pts), match/switch 5 (11 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f481adb5ad524c20c4f692adecbf28ce875a290d84a70c1449574a894fd472"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::postfix::complete_postfix (cognitive 61): ide_completion::completions::postfix::complete_postfix has cognitive complexity 61 (threshold 15). Drivers by points: if/else 27 (36 pts), match/switch 10 (15 pts), boolean chains 10 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd180ecddda08fde6112b3ed9d5ba3593a9cc39055549909d59801b2dfb20643"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::highlight_related::highlight_references (cognitive 60): ide::highlight_related::highlight_references has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (40 pts), match/switch 5 (14 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"722b8848df6266e0561623342fd0258e1295a9be122fa36674993c69177ba9c7"}},{"ruleId":"D2","level":"warning","message":{"text":"project_model::workspace::handle_rustc_crates (cognitive 60): project_model::workspace::handle_rustc_crates has cognitive complexity 60 (threshold 15). Drivers by points: if/else 11 (37 pts), loops 9 (23 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c98e523639a8ffac1109d5709313f228a7baa00319b6a82f1f704285422d186"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_closure_to_fn::convert_closure_to_fn (cognitive 59): ide_assists::handlers::convert_closure_to_fn::convert_closure_to_fn has cognitive complexity 59 (threshold 15). Drivers by points: if/else 23 (43 pts), match/switch 5 (8 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9217ccdc188ae49721063ab35de16bb5af632953b4277e03ef57ae9d6d5eae8"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::context::analysis::expand (cognitive 58): ide_completion::context::analysis::expand has cognitive complexity 58 (threshold 15). Drivers by points: if/else 14 (45 pts), match/switch 4 (6 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef22d5bae9165a9cde02b2f5b7e0fafbadcd7e8a4008956d7d2a173b2dfacf15"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::check_record_expr_fields (cognitive 57): InferenceContext::check_record_expr_fields has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (41 pts), loops 3 (7 pts), match/switch 2 (7 pts), boolean chains 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"71823b3ad3f258335b050fc47004005802bcf8db81811e556649a561ce8596b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Scip::run (cognitive 57): Scip::run has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (40 pts), match/switch 3 (9 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c8082e2835e123adb81ff7e485fbb94505344c9b59ca84506396caa785a7ce"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::process_changes (cognitive 57): GlobalState::process_changes has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (45 pts), match/switch 2 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a72cafc2c47f2edba581d820ca020f19db868a78ba2c2a5038d13d212b5e79"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::adjustment::hints (cognitive 56): ide::inlay_hints::adjustment::hints has cognitive complexity 56 (threshold 15). Drivers by points: if/else 26 (36 pts), boolean chains 10, match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/adjustment.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1d3c66b24e75f8c15156445251462aa948132deb53601b3e6f05dc6a4f7868"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_variable::extract_variable (cognitive 56): ide_assists::handlers::extract_variable::extract_variable has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (36 pts), match/switch 10 (16 pts), boolean chains 3, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7945787f0c10a50f1bb9e6ab1819982695828faf3824105daf4db6c5182a5529"}},{"ruleId":"D2","level":"warning","message":{"text":"FlycheckActor::run (cognitive 56): FlycheckActor::run has cognitive complexity 56 (threshold 15). Drivers by points: if/else 9 (28 pts), match/switch 6 (19 pts), loops 3 (9 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"810fc21795354e0694f99ad7915dd9c4a8dbc01d5b8bed4c7be99baae35110b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Printer::print_pat (cognitive 54): Printer::print_pat has cognitive complexity 54 (threshold 15). Drivers by points: if/else 15 (37 pts), loops 6 (12 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 29). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedc7f3ef311247ef22676b8c32a8816b433e61d40c8981a5646aa9b9778bb53"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::hir::format_args::parse (cognitive 54): hir_def::hir::format_args::parse has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (27 pts), match/switch 10 (25 pts), loops 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f31b799a9cce6d7d2a6a7474f329183fb80c5a8406897e3056c8b50fdf5988"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::unwrap_return_type::unwrap_return_type (cognitive 54): ide_assists::handlers::unwrap_return_type::unwrap_return_type has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (37 pts), match/switch 5 (12 pts), boolean chains 4, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_return_type.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c60bcfb1d1eb7d011e4beaf7b851eea28f0f686fd8d38245a7db578894ab41a"}},{"ruleId":"D2","level":"warning","message":{"text":"DefCollector::record_resolved_import (cognitive 53): DefCollector::record_resolved_import has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (36 pts), match/switch 6 (16 pts), boolean chains 1 (nesting depth added 31). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"74990f55bb2d203344908ada6f1330ee9a134b7e074023cc678b9f04d286dc60"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::expander::matcher::match_loop (cognitive 53): mbe::expander::matcher::match_loop has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (37 pts), match/switch 2 (8 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a993f4e31315076b2b4b38f041b0c6169777a8617234b3f297886a03bfe83e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::inline_type_alias::create_replacement (cognitive 52): ide_assists::handlers::inline_type_alias::create_replacement has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (44 pts), loops 4, boolean chains 2, match/switch 1 (2 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_type_alias.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c91534f968d21cc2a48964ef22c737816d1cf5e202c930e828ec1cffa99806"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemScope::push_res_with_import (cognitive 51): ItemScope::push_res_with_import has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (32 pts), match/switch 7 (14 pts), boolean chains 5 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46160f2272b9e32c9d87119212a7965a49f410e8a6ba83bb6249e2dcaec0d84"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::type::complete_type_path (cognitive 51): ide_completion::completions::type::complete_type_path has cognitive complexity 51 (threshold 15). Drivers by points: if/else 9 (28 pts), match/switch 8 (16 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 31). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/type.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca8fa7c689fd694d34aaa12fca9aca26f4ce0c1d4c5ac7736b0f7663f022ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_bridge::convert_tokens (cognitive 51): syntax_bridge::convert_tokens has cognitive complexity 51 (threshold 15). Drivers by points: match/switch 8 (24 pts), if/else 4 (15 pts), loops 4 (11 pts), boolean chains 1 (nesting depth added 34). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aa4c816d8155e50352451c007f211878c35b84a99730e6317d3a72df2b7f28"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::lower::path::substs_from_args_and_bindings (cognitive 50): hir_ty::lower::path::substs_from_args_and_bindings has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 3 (10 pts), match/switch 3 (9 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3bea7ac49bbf81b909f9e2b45a340f917e734c57db328b7a4f53cfeb5c2fce"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisStats::run_body_lowering (cognitive 50): AnalysisStats::run_body_lowering has cognitive complexity 50 (threshold 15). Drivers by points: if/else 20 (37 pts), match/switch 4 (10 pts), loops 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46692873250b74309b514d525e93f2c043fbabd6aa497823fc1f1afa92e297b"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_bridge::to_parser_input::to_parser_input (cognitive 50): syntax_bridge::to_parser_input::to_parser_input has cognitive complexity 50 (threshold 15). Drivers by points: match/switch 9 (31 pts), if/else 5 (16 pts), boolean chains 2, loops 1 (nesting depth added 33). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/to_parser_input.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf41b93261dcbde7607ae8ae6c62b15237a519a3f21ff9caefd656d36fb45d2"}},{"ruleId":"D2","level":"warning","message":{"text":"TyLoweringContext::lower_dyn_trait (cognitive 49): TyLoweringContext::lower_dyn_trait has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (30 pts), match/switch 5 (13 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"822356614f2e126d2962a45c98d79d21efd7591115b503fe92eb34cb4f74728a"}},{"ruleId":"D2","level":"warning","message":{"text":"SymbolCollector::collect_from_module (cognitive 48): SymbolCollector::collect_from_module has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 9 (16 pts), loops 8 (10 pts), boolean chains 5 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/symbols.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a13a6cb392b6f840302af54306aca2f746e5caf9b74ec2b899f677d89ede41e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportMap::collect_import_map (cognitive 48): ImportMap::collect_import_map has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 4 (20 pts), loops 3 (6 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/import_map.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02b70d005ec8bf46b776ff3fadf50a7901b90957d0b4d5f9d8fab04145cc0a0"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::check_call_arguments (cognitive 48): InferenceContext::check_call_arguments has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (28 pts), match/switch 5 (15 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c1d1f882e30dc674831826bd978c0c40a06af89b7fb5c97ce20410ee42c941"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::lower::resolve_type_param_assoc_type_shorthand (cognitive 48): hir_ty::lower::resolve_type_param_assoc_type_shorthand has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (36 pts), match/switch 2 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d6e456c13205b6ff9c41a8df45a704da90538a5367270bcefe7aff050f3eda"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::implicit_drop::hints (cognitive 47): ide::inlay_hints::implicit_drop::hints has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 6 (24 pts), if/else 8 (22 pts), loops 1 (nesting depth added 32). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/implicit_drop.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"35932c87d992a1075ef85ac137a9b88fb5468ceb24de02ecdafcb52851612596"}},{"ruleId":"D2","level":"warning","message":{"text":"Module::get_usages_and_record_fields (cognitive 47): Module::get_usages_and_record_fields has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (34 pts), match/switch 3 (12 pts), loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c41a8c6bb18fc902a1934d7d5e6b854c14ee737b37c30bd633e3bb25e26db25"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::attrs::match_attr_flags (cognitive 46): hir_def::attrs::match_attr_flags has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 11 (31 pts), if/else 6 (13 pts), boolean chains 2 (nesting depth added 27). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a7627bd99513f16261b297194f523dad29b5c9300f71aaa90556b1aa4beb9b"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::next_solver::consts::valtree::allocation_to_const (cognitive 46): hir_ty::next_solver::consts::valtree::allocation_to_const has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (38 pts), match/switch 4 (8 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"352ce395269cc6caf8a84cf6a944afe64a3a38dc02ceeb901218ce58bafd06ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Ctx::transform_path_ (cognitive 46): Ctx::transform_path_ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/path_transform.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2144d48f08b330e2bb11fa59cafb751fa4de2725257d3ec882df4a5e78513d"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::exec_simd_intrinsic (cognitive 45): Evaluator::exec_simd_intrinsic has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 5 (11 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 25). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim/simd.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70cbcbc745658d64178049e1c9f098161e0b004503ec33f78add021196faca7"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenStream::from_str (cognitive 45): TokenStream::from_str has cognitive complexity 45 (threshold 15). Drivers by points: if/else 20 (41 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"db65e3a949347c9d84965d7be12b23e16f6d0af540fd79314078f19ab41a1722"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::apply_change_with_sink (cognitive 45): Config::apply_change_with_sink has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 5 (17 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c000410ad5aff137bf05150bcbf48b088ef90945259e9c9d4fc551f57a3a683"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::completion_item (cognitive 45): rust_analyzer::lsp::to_proto::completion_item has cognitive complexity 45 (threshold 15). Drivers by points: if/else 30 (38 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 9). Of this number, 43 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aa2094f5d37594ac5d80c2c27b653cfb097677818c0d558439772e543abb01"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::interpret_mir (cognitive 44): Evaluator::interpret_mir has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 5 (15 pts), loops 4 (9 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7e0bb7a073f4ec514d776493f5fc37c637d48f08ea0ecfc85c87f688fafefb"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::rename::transform_assoc_fn_into_method_call (cognitive 44): ide::rename::transform_assoc_fn_into_method_call has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (27 pts), match/switch 3 (11 pts), loops 3 (6 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"996997467207878dca1d3771b3f13e52132e9a9b8e2c4947f4bc0572aca37950"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::add_missing_match_arms::add_missing_match_arms (cognitive 44): ide_assists::handlers::add_missing_match_arms::add_missing_match_arms has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 6, match/switch 3 (4 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3687441dc4eb4e5bf998b0f2bcc0c786520994a614a3efb89392ecd459f9405e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::utils::gen_trait_fn_body::gen_partial_eq (cognitive 44): ide_assists::utils::gen_trait_fn_body::gen_partial_eq has cognitive complexity 44 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (16 pts), match/switch 5 (9 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"17440fd158b46f9c0b7fefe5f20654abb81a4870563113fbf09b4efe14558ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"client.createClient (cognitive 44): client.createClient has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 6, match/switch 1 (5 pts), loops 2, ternaries 2 (nesting depth added 16). Most of this is not in the body itself: 4 of the 44 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 60, callback, a function literal at line 169, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a253c469f399a0d07bb4be67f801ced8bbc2bce8fb201547014be717e9759e2a"}},{"ruleId":"D2","level":"warning","message":{"text":"ModCollector::collect (cognitive 42): ModCollector::collect has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 5 (8 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae41649f9cd573cf1f4e297d30e650b2adf659e526ba6356e5f327637a00ffa2"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::attrs::parse_repr_tt (cognitive 42): hir_def::attrs::parse_repr_tt has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 4 (16 pts), boolean chains 2, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdf2e3c089aed32e39824990e33e3f8e8a866fabcaa30b8cc953f8b9cc1c4f0"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::use_::complete_use_path (cognitive 42): ide_completion::completions::use_::complete_use_path has cognitive complexity 42 (threshold 15). Drivers by points: if/else 7 (23 pts), match/switch 4 (9 pts), loops 2 (7 pts), boolean chains 3 (nesting depth added 26). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/use_.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c830ad9ac106c190d137813e749359049a641a74425edd554f69fd326ff0199e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::imports::insert_use::guess_granularity_from_scope (cognitive 41): ide_db::imports::insert_use::guess_granularity_from_scope has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 6, match/switch 2, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0432a1af3ed9e17fbeeef586a9775f8aedefa44716348ceec38d8882770e7821"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::rename::source_edit_from_def (cognitive 41): ide_db::rename::source_edit_from_def has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (27 pts), match/switch 3 (8 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0c0fb5c5307e2ddf76ef24172278dc681a48e8b16bf74294b37e4cd8b16a36"}},{"ruleId":"D2","level":"warning","message":{"text":"Converter::extend_literal (cognitive 41): Converter::extend_literal has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (40 pts), match/switch 1 (nesting depth added 20). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"463f9721e8663a8a035876e48110b26bc5b4141a23c4288c1ecea73144211e87"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax_bridge::prettify_macro_expansion::prettify_macro_expansion (cognitive 41): syntax_bridge::prettify_macro_expansion::prettify_macro_expansion has cognitive complexity 41 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 5 (12 pts), boolean chains 7, loops 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/prettify_macro_expansion.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5396a923f931ab2823e723b1911a75fd966fe74701663e894fa505dcffa8b9f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::collect_pat (cognitive 40): ExprCollector::collect_pat has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (10 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4c694d39d5a1478f077abf2e9477e5c35a17c2bccae6acd7f9ad70daf4226d"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::prime_caches::parallel_prime_caches (cognitive 40): ide_db::prime_caches::parallel_prime_caches has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 8 (14 pts), match/switch 6 (8 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/prime_caches.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd14cb2cb461a576134d80464253d68d0fa65ed250ec680052d48dc2ebd612b"}},{"ruleId":"D2","level":"warning","message":{"text":"Sysroot::load_workspace (cognitive 40): Sysroot::load_workspace has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (11 pts), match/switch 1 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f53934e4d48cd5fe7bd50f99d84ec747d011c16b7a5cfb141ce7ab14c4d2b3"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::handle_task (cognitive 40): GlobalState::handle_task has cognitive complexity 40 (threshold 15). Drivers by points: match/switch 9 (21 pts), if/else 7 (19 pts) (nesting depth added 24). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dbed8c306adbee5793a4aaa17b2180cb9ea6b52a360fef1d81b2140dc80ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::analyze_closure (cognitive 39): InferenceContext::analyze_closure has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 3 (5 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c490462b33c2490482120ddafc380574ebe0704c054080b214bd05c15a7b4e89"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_ref_pat (cognitive 39): InferenceContext::infer_ref_pat has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 5, match/switch 3 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c01ac65615d04404e5a1a4768dcd5be32521c2b13fe83cc48809aeec7f9a4fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::place_addr_and_ty_and_metadata (cognitive 39): Evaluator::place_addr_and_ty_and_metadata has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 8 (27 pts), if/else 5 (11 pts), loops 1 (nesting depth added 25). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"229036d509241333f80d151c3a93693d98d4e456b02c92a45987c5dac17efb6f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::closing_brace::hints (cognitive 39): ide::inlay_hints::closing_brace::hints has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (27 pts), match/switch 4 (9 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/closing_brace.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"df45011395bdff9f75a4c9457c1733eccab58816352db2f0f28c5d776dfc0771"}},{"ruleId":"D2","level":"warning","message":{"text":"Module::process_def_in_sel (cognitive 39): Module::process_def_in_sel has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 11, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"5006bcd6e1bca505b064582a2076239f8df815f168060add243e85f478df48bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::add_turbo_fish::add_turbo_fish (cognitive 39): ide_assists::handlers::add_turbo_fish::add_turbo_fish has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 7, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_turbo_fish.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f182c218fa70eee2425f4335f64e37b909b652cf8a66d57754ee03434da2d5"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::expressions::atom::parse_asm_expr (cognitive 39): parser::grammar::expressions::atom::parse_asm_expr has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 4, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7df05237784fd853f97086a2ce53f730a09ed64c669955e4e4928c7305ccea3"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_mut_expr_without_adjust (cognitive 38): InferenceContext::infer_mut_expr_without_adjust has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 4 (8 pts), loops 2 (4 pts) (nesting depth added 22). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/mutability.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ee855222fee579692066e5bd310713c90dcf95995a9789a11702761ddcc4af"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::lifetime::hints_ (cognitive 38): ide::inlay_hints::lifetime::hints_ has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (18 pts), match/switch 9 (13 pts), boolean chains 6, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1d00cb3592e80e284e7c7cbf0420ff459f9822dc156ea346899134493ce159"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::highlight_name_ref (cognitive 38): ide::syntax_highlighting::highlight::highlight_name_ref has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 5 (8 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"78655c2f515a65fb612147481dca0104aa30438edc18eb1152e2863590a28398"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::request::handle_runnables (cognitive 38): rust_analyzer::handlers::request::handle_runnables has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 6, loops 2 (3 pts), match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae51db0c61580291634a99bdbf58a2a51167e412fde248543ece63abb017fcb8"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::code_lens (cognitive 38): rust_analyzer::lsp::to_proto::code_lens has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (29 pts), match/switch 3 (6 pts), boolean chains 3 (nesting depth added 23). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"6412fab425747df4d90eb672dd91182652bad155cc9e0c7e7cd946799bdc76fd"}},{"ruleId":"D2","level":"warning","message":{"text":"MirLowerCtx::lower_expr_as_place_without_adjust (cognitive 37): MirLowerCtx::lower_expr_as_place_without_adjust has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (30 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/as_place.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65c6a8dabab09d2b56d3c19b859efd352b577350d97834c211f39091d2ea23b"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_diagnostics::handlers::unlinked_file::fixes (cognitive 37): ide_diagnostics::handlers::unlinked_file::fixes has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 4 (11 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unlinked_file.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb793537a1de6505f373b2716aea5f870919382bbb779426183e21727800f79"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::current_status (cognitive 37): GlobalState::current_status has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (30 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08beb586ad1e2d810a2b116b7c9dbc3844620c3d471f02ec0427e3d87ca4eca"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::diagnostics::flycheck_to_proto::map_rust_diagnostic_to_lsp (cognitive 37): rust_analyzer::diagnostics::flycheck_to_proto::map_rust_diagnostic_to_lsp has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 5 (7 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics/flycheck_to_proto.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f10ede72c9dbcc47f69eb2a011cbb9a32d0f543b0e35ead169e4c2af6b74f72"}},{"ruleId":"D2","level":"warning","message":{"text":"TtTreeSink::token (cognitive 37): TtTreeSink::token has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 8 (27 pts), if/else 4 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 22). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"8631810187ff0f5df7c1c2c21e889ba10b322298f430dd1ce545d7d69d2fb15e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::maybe_collect_expr_as_pat (cognitive 36): ExprCollector::maybe_collect_expr_as_pat has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 7 (11 pts), boolean chains 1 (nesting depth added 16). Of this number, 23 points are the body\u0027s own statements and 13 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d89faefc71a9f9f567bb182cdf48d100eff05548ce823cc9e6c6f06c376e018"}},{"ruleId":"D2","level":"warning","message":{"text":"Pat::hir_fmt (cognitive 36): Pat::hir_fmt has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 5 (11 pts), boolean chains 2 (nesting depth added 20). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"de08c1ccc91aa703709f805f120e5ffea02b804b611205ad522be9c7bc7f83d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::apply_demorgan::apply_demorgan (cognitive 36): ide_assists::handlers::apply_demorgan::apply_demorgan has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 2 (3 pts), loops 2, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/apply_demorgan.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d958cc958261f08513ca673d602e1746190d331e22b7cc5c5bcf03e85e534283"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::item_list::add_keywords (cognitive 36): ide_completion::completions::item_list::add_keywords has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 8 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1337c063adf13f1ba98d998ea492592ef162064854b5d22d047cd619e25edb16"}},{"ruleId":"D2","level":"warning","message":{"text":"DefMap::resolve_remaining_segments (cognitive 35): DefMap::resolve_remaining_segments has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 5 (14 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf6550adf146e6954269d58be28ad6e12f80de5c821d5f77750547753a18083"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprValidator::check_for_unnecessary_else (cognitive 35): ExprValidator::check_for_unnecessary_else has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 1 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/expr.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09e867dd29da29637980aff6a229aebb16b2396397b5c1ef095217813f546cb"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ide::display::render_const_scalar_from_valtree_inner (cognitive 35): hir_ide::display::render_const_scalar_from_valtree_inner has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 3 (5 pts), loops 2 (4 pts) (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d68e734044453f19f78200b303f95703a88c467d9d3a1461ac28a838011f42"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::try_find_coercion_lub (cognitive 35): InferenceContext::try_find_coercion_lub has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 5 (11 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd51c1a60012c42264d2b8041d5ba118572da4ffd81917e5e94ca3a0b6b7c0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::create_memory_map::rec (cognitive 35): Evaluator::create_memory_map::rec has cognitive complexity 35 (threshold 15). Drivers by points: loops 5 (15 pts), match/switch 6 (13 pts), if/else 3 (7 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ce4e421d5248438dc7695f6a6d28332c54b702b35d4f2b7f3c3bcfde2baf5f"}},{"ruleId":"D2","level":"warning","message":{"text":"Filler::fill_body (cognitive 35): Filler::fill_body has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 5 (20 pts), loops 5 (13 pts), if/else 1 (2 pts) (nesting depth added 24). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/monomorphization.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dc88ab5e7c624fa52ec34b95b031c3747be7d3361c69c9b97209fa4afe4741"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::annotations::annotations (cognitive 35): ide::annotations::annotations has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 5, match/switch 4 (5 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 29 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/annotations.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e43078e739c9fe8efa58ac48bd0ebea5ce0f519dcb4eeaaf746c43eb01c47fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::signature_help::signature_help_for_call (cognitive 35): ide::signature_help::signature_help_for_call has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 8 (17 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fdf951953771345e4ea3b2decd6ec5c9da7d4d10135f0936b9cc5819f5aa2c"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::view_syntax_tree::syntax_node_to_json (cognitive 35): ide::view_syntax_tree::syntax_node_to_json has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 5 (15 pts), loops 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/view_syntax_tree.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98a6cf33564d2b6a507914b70e188827b5795281f4aeb5430776655f896f6fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_function::update_external_control_flow (cognitive 35): ide_assists::handlers::extract_function::update_external_control_flow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (24 pts), match/switch 3 (9 pts), boolean chains 1, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c330d8706ff21105952c380e59264ec26957df375d496da99f3a08e5e519bc88"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::generate_new::generate_new (cognitive 35): ide_assists::handlers::generate_new::generate_new has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (24 pts), match/switch 4 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_new.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02cdff3d4bfda7a69e2d71e6fb6199b6f0099aad3ed819ee5fadec37fcdde9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::render::function::add_call_parens (cognitive 35): ide_completion::render::function::add_call_parens has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 4 (12 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/function.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ecbb19a2df5f55edc1dd2758ec2c68fb1cf5801eafdfcbde354c5ac66612ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Reader::read_tokenstream (cognitive 35): Reader::read_tokenstream has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 4 (11 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"96090d2803a6a9149f025f72ec2550f9156514d48aa5da4f50b9e736baf4221d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBuildScripts::build_command (cognitive 35): WorkspaceBuildScripts::build_command has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 3 (7 pts) (nesting depth added 20). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1427513ab86885be29691809bf38cd97f9821890ed40e5baa8f93194b09e4e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver::resolve_path_in_type_ns_with_prefix_info (cognitive 34): Resolver::resolve_path_in_type_ns_with_prefix_info has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 4 (9 pts), boolean chains 1, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad7276c4bc91b5146d3a777cb7f87fea2f78cf5d1dabdaac336de11dd6dcfff"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::expr_store::lower::lower_body (cognitive 34): hir_def::expr_store::lower::lower_body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 4 (9 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5d9dd36ade1569b915f528fd453111fe0f8a13c43a8ef35ae7c69695a5ae35"}},{"ruleId":"D2","level":"warning","message":{"text":"MirLowerCtx::lower_block_to_place (cognitive 34): MirLowerCtx::lower_block_to_place has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (27 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb95f1dd5b47979ebb0229ad137dfd90953690f32d75c74805c5c528a8b2282"}},{"ruleId":"D2","level":"warning","message":{"text":"Definition::search_scope (cognitive 34): Definition::search_scope has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 15 (25 pts), if/else 8, boolean chains 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"095535bcc2d50613a1d1eeb98e1e195d054d4bd2676d2a795e12bd348d9ddd41"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectFolders::new (cognitive 34): ProjectFolders::new has cognitive complexity 34 (threshold 15). Drivers by points: loops 10 (18 pts), if/else 5 (10 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"8844728f7ece531d76de138dc0312dd8c9574915dee94d10ff0bee9a4faf085c"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::expressions::atom::builtin_expr (cognitive 34): parser::grammar::expressions::atom::builtin_expr has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6968852a1fa1fa78d72b7f5a61dc76a56fa168eba7c6575ca0e6a3171976178d"}},{"ruleId":"D2","level":"warning","message":{"text":"project_model::env::cargo_config_env (cognitive 34): project_model::env::cargo_config_env has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (31 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/env.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d087e1887ffb62a15bdbf656ee216682118c994bb466c2e396b61a2f80bba7e"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::exec_extern_c (cognitive 33): Evaluator::exec_extern_c has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 4 (7 pts), loops 1 (2 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"b445f171eccc11f28614d472ae03d335f4fd9479cf5e3285026b4ff1f9f4495e"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::lower::remap_gat_vars_and_recurse_into_nested_projections (cognitive 33): hir_ty::lower::remap_gat_vars_and_recurse_into_nested_projections has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (27 pts), match/switch 2 (3 pts), loops 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1a33012670703469dd90e996a2d1c3382faf491f3357b2bffee9550d02b51e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::hover::hover_offset (cognitive 33): ide::hover::hover_offset has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 7, match/switch 3 (5 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c14e16c04c1c6799da54a47fcf9e4f2aa9de08148f22f7af446a6d70702ffc"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::join_lines::remove_newline (cognitive 33): ide::join_lines::remove_newline has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 4 (8 pts), boolean chains 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/join_lines.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"37825d024e8c3a3226b07b4706b202abb5e1d595f298af0d95e6960b1ce8af84"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::context::analysis::analyze (cognitive 33): ide_completion::context::analysis::analyze has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 8, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3e585d6f2a19b606c5e2646d8b2dde1b19ac8ca7835142bd6c642cb5ac44ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::traits::diff_assoc_items (cognitive 33): ide_db::traits::diff_assoc_items has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 3 (7 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/traits.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"02888d16e047e0692042bc38ca268dfa5d518a5dcfc1b874f4adfa166890528c"}},{"ruleId":"D2","level":"warning","message":{"text":"Matcher::attempt_match_token_tree (cognitive 33): Matcher::attempt_match_token_tree has cognitive complexity 33 (threshold 15). Drivers by points: if/else 5 (16 pts), match/switch 4 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/matching.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b589a05baff08ad11eb8bc4ae81db62bd9bf13259f13f0af939f83b9788597"}},{"ruleId":"D2","level":"warning","message":{"text":"Reader::read_subtree (cognitive 33): Reader::read_subtree has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 2 (8 pts), loops 2 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e887427039faa13fca181806df225ef9d0334ece307268eb6535846bece62f0"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceToDefCtx::container_to_def (cognitive 32): SourceToDefCtx::container_to_def has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (26 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"c286fc13471fd008feb9991117b52e63587fde19795d98d8804e518a33f8ece2"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::attrs::expand_cfg_attr_with_doc_comments (cognitive 32): hir_expand::attrs::expand_cfg_attr_with_doc_comments has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/attrs.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2fa7fb5be0d344fe6bff5cc28924927184f7537c283e9c9f6b4f6b5e2398cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::patch_addresses (cognitive 32): Evaluator::patch_addresses has cognitive complexity 32 (threshold 15). Drivers by points: loops 5 (15 pts), match/switch 6 (11 pts), if/else 2 (6 pts) (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce5f5a50fea9a19760d762a1ededd5bd5462f96c8b20ad54ccbca3ccc2192ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::punctuation (cognitive 32): ide::syntax_highlighting::highlight::punctuation has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 4 (7 pts), boolean chains 3 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a489204d12c4d932e111f6dcbeb7578c3328fa6f9b1443bf5d0beb68aad8f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::items::opt_item (cognitive 32): parser::grammar::items::opt_item has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 13, match/switch 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66df3adbd936890bfd07f2c886c51c9fbf6f66a5dcd43aca710b708d4448509"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::request::run_rustfmt (cognitive 32): rust_analyzer::handlers::request::run_rustfmt has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 6, match/switch 4 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45d778ee33822250d269b5b872473d2e3d3cc40540fc3598822dbf91bffcc7b"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::display::write_function (cognitive 31): hir::display::write_function has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (22 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abe76c780d75a8446957e4bafc1f5af3f2f0b493662e6cc8753ab46a2c458c6"}},{"ruleId":"D2","level":"warning","message":{"text":"DefCollector::seed_with_top_level (cognitive 31): DefCollector::seed_with_top_level has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 4 (9 pts), boolean chains 3, loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb13ac23f6d759e9f6935fc490f9a1aacff9b89280095ba6ea44968641b4ab"}},{"ruleId":"D2","level":"warning","message":{"text":"DefCollector::push_res_and_update_glob_vis (cognitive 31): DefCollector::push_res_and_update_glob_vis has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 9 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5717cba444ff5e7589abfac191bb60912522dc606ca199ede802d1068d4afbf"}},{"ruleId":"D2","level":"warning","message":{"text":"UnsafeVisitor::walk_expr (cognitive 31): UnsafeVisitor::walk_expr has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 5 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/unsafe_check.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e4eaea3250acb0371af430b26068ee48fbbdb607379eb9c46692c6deb1c328"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::compute_min_captures (cognitive 31): InferenceContext::compute_min_captures has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 5 (11 pts), loops 4 (7 pts) (nesting depth added 17). Of this number, 29 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa93b0f5e096d27ee79580a8e91f1638bf261d78a8e3352a921728c7be9fe76"}},{"ruleId":"D2","level":"warning","message":{"text":"MirEvalError::pretty_print (cognitive 31): MirEvalError::pretty_print has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 9 (28 pts), loops 2 (3 pts) (nesting depth added 20). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/mir_pretty/errors.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"686b8ee35559b46cf76945865935bc8409182db13c1f312371c3e6b244a41149"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::moniker::def_to_non_local_moniker (cognitive 31): ide::moniker::def_to_non_local_moniker has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 5 (10 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/moniker.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0379d12f7634b25b704cb2651f44ec87e2147a6b543e9a2cd0bb34e139258235"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::deduce_closure_signature_from_predicates (cognitive 30): InferenceContext::deduce_closure_signature_from_predicates has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 3 (9 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a239c6e79dc3381303dddec4b520c4568397dd616617c1d964b86cd35fed1e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProbeContext::consider_probe (cognitive 30): ProbeContext::consider_probe has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 5 (8 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68ae7951b6e9eb2b33dce304309f29ddf51785e5de2cfdca356c4a502c185f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_bool_to_enum::replace_usages (cognitive 30): ide_assists::handlers::convert_bool_to_enum::replace_usages has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb3f74ed3ada56b241febbe0d4ca12537036803ffb067933eaccf78878a72ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_closure_to_fn::compute_closure_type_params (cognitive 30): ide_assists::handlers::convert_closure_to_fn::compute_closure_type_params has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 5 (11 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b4c9228ae22ba0ca61e6347cbbe6350ae7a11aa1b06370e71cbeb95aa47aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::syntax_helpers::format_string_exprs::parse_format_exprs (cognitive 30): ide_db::syntax_helpers::format_string_exprs::parse_format_exprs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string_exprs.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ab4f9817b7a15f393d7b1b6145a516502e02e07bae1b43e8f6f174d4526b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::compute_priming_scope (cognitive 30): GlobalState::compute_priming_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 4 (9 pts), match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e574d9df0723bcc9a98646e10e3f64e7665cae1ca1f434904118432cbe0720"}},{"ruleId":"D2","level":"warning","message":{"text":"AstIdMap::from_source (cognitive 30): AstIdMap::from_source has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 3 (7 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1286d69419595bcc9ae8c77e6c3152f9bbb039ea51a14e36bb58943a75b35ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::source_analyzer::resolve_hir_path_ (cognitive 29): hir::source_analyzer::resolve_hir_path_ has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 4 (5 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7b3c2cf93b4dbd446a8b3993331427a95df4a8a636f136b11f974f04b7203a"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::expr_store::pretty::print_generic_params (cognitive 29): hir_def::expr_store::pretty::print_generic_params has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"78078824a79b8fd2999a6cd591053783eb8b9625d30b90e47a31374d57985df3"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_module::extract_module (cognitive 29): ide_assists::handlers::extract_module::extract_module has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 5 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af3693cf0b66b4db522e59219349bdc35b723d7d970d3e7d3547732b940d462"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::generate_delegate_methods::generate_delegate_methods (cognitive 29): ide_assists::handlers::generate_delegate_methods::generate_delegate_methods has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 4 (8 pts), boolean chains 2, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_methods.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51672f3188b1b4af6e76b530edc3c6169513ca433772ff53db8bc2aaf1b765a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::imports::merge_imports::recursive_normalize (cognitive 29): ide_db::imports::merge_imports::recursive_normalize has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"08944b6698512e3b866249d5237abc3bb7013223efef46f1ba18eb1defa4a014"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_diagnostics::handlers::missing_fields::fixes (cognitive 29): ide_diagnostics::handlers::missing_fields::fixes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/missing_fields.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab16b007f89991534dc1142d2888fadfd44f80264e95443e4a8f66c8d51929b"}},{"ruleId":"D2","level":"warning","message":{"text":"Printer::print_type_ref (cognitive 28): Printer::print_type_ref has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 3 (5 pts), loops 2 (4 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e0bb47d400c58378f53842b35e9e46543d710bbe10e49439f6615c6f7f79d2"}},{"ruleId":"D2","level":"warning","message":{"text":"SolverContext::compute_goal_fast_path (cognitive 28): SolverContext::compute_goal_fast_path has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf53893eba993c3218e25bc5abca64cfbc98a89ef67c505bfa202cfbe3631dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::param_name::hints (cognitive 28): ide::inlay_hints::param_name::hints has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 5 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/param_name.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caec74f5a98a09c88ffb2bede792ae81bffa763677945261a0ec8c27da2f5a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_expressions_from_format_string::extract_expressions_from_format_string (cognitive 28): ide_assists::handlers::extract_expressions_from_format_string::extract_expressions_from_format_string has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 4 (9 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"96801e31e197eebcab3c2891dc89ccd50c7aaef83e1bfb57c4d6a3aaeb4d73fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::wrap_return_type::wrap_return_type (cognitive 28): ide_assists::handlers::wrap_return_type::wrap_return_type has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 4 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_return_type.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d928fa2d89a6b86ba6ad002ce2e0d81b6fccff4b17fed331daa9aa9eeb974a0e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::attribute::complete_attribute_path (cognitive 28): ide_completion::completions::attribute::complete_attribute_path has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 4 (7 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"188e2a8407b05c4dc3b62b218b526ac9a6ceb5c512a9d729f9fb9fa51caaa82e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::imports::merge_imports::version_sort::version_sort (cognitive 28): ide_db::imports::merge_imports::version_sort::version_sort has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 5 (14 pts), if/else 3 (11 pts), boolean chains 2, loops 1 (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"1066d8a72a8e0ee1e100d607d81f6d0afe9cc1241da41f54a5fac1c37a007af1"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.getDebugConfiguration (cognitive 28): debug.getDebugConfiguration has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (4 pts), boolean chains 3, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/debug.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"99df9567dbb51affb865fc34ff6ee56615770e28760cac909128f57395700e47"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::attrs::docs::get_horizontal_trim (cognitive 27): hir_def::attrs::docs::get_horizontal_trim has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (7 pts), boolean chains 3, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs/docs.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6301692d50e01741b7ac01d5000788fd88477eff2c184158d1e0c3315447d4"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::eager::eager_macro_recur (cognitive 27): hir_expand::eager::eager_macro_recur has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 7 (17 pts), if/else 4 (9 pts), loops 1 (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/eager.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3058ca6c7e3446de55a348580fd1197c6231d8b83dc024da812928541d8cea7"}},{"ruleId":"D2","level":"warning","message":{"text":"Generalizer::tys (cognitive 27): Generalizer::tys has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 4 (10 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8c985e8e8cf96e63a03fde2b0895fba7bcdf5ca77212a7324292f58699b2a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::hover::render::render_memory_layout (cognitive 27): ide::hover::render::render_memory_layout has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 5 (10 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee89afba5c656a0e08019a68c7c17b0d0b2938f96b1b27ff1d0e9a918ad6e352"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::bind_pat::hints (cognitive 27): ide::inlay_hints::bind_pat::hints has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, match/switch 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/bind_pat.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dd2c585319f475df7a7f77f302b7e2a7c9138a6646504df10c6aff48571dd8"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::signature_help::signature_help (cognitive 27): ide::signature_help::signature_help has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (23 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93c14768fa7d06c8714aa909281471f8974871ba86cc87287f6c6af4dba4cd0"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_function::extract_function (cognitive 27): ide_assists::handlers::extract_function::extract_function has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 4, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3579b0eb145c2cc9d86d3f9c82c0523540328092a76eb1bbf67ae411ea4a6eed"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::generate_documentation_template::introduction_builder (cognitive 27): ide_assists::handlers::generate_documentation_template::introduction_builder has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_documentation_template.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"936be579fe8eef41a894eb9b2c95144e6c0e180567ebe0e03141ca09712a9e07"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionRelevance::score (cognitive 27): CompletionRelevance::score has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), match/switch 4 (6 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/item.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f99900c551954eb670ca5a1de134ab9ac196d54d153b854febd604c7e6f4a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::pattern::complete_pattern_path (cognitive 27): ide_completion::completions::pattern::complete_pattern_path has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 6 (15 pts), if/else 3 (9 pts), loops 1 (3 pts) (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfdd972fac3bd2ae4f3b8ad025f7d1b063664d5d9ae069835e3667f238b9d85"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::subtree (cognitive 27): Writer::subtree has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 3 (9 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b31d7d632d1e51f5594198f594577fed1a863ec9d3a2269e4de7c107106b923"}},{"ruleId":"D2","level":"warning","message":{"text":"project_model::workspace::project_json_to_crate_graph (cognitive 27): project_model::workspace::project_json_to_crate_graph has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 2 (4 pts), boolean chains 2, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9682b1d52ba969292f79878e522598b912ce6e68f4724808daa602bafcad6123"}},{"ruleId":"D2","level":"warning","message":{"text":"tt::storage::encode (cognitive 27): tt::storage::encode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 3 (7 pts), boolean chains 4 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5eb275a392bac3a429150f23fcbff05a3617a089a74c82c59c924afed99f93"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::resolve_value_path_inner (cognitive 26): InferenceContext::resolve_value_path_inner has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 4 (13 pts) (nesting depth added 14). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/path.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7e7e62f4ec560f286d2d68234e7626103939e53c1500368a4458c6893ca33d"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::resolve_all (cognitive 26): InferenceContext::resolve_all has cognitive complexity 26 (threshold 15). Drivers by points: loops 15 (25 pts), if/else 1 (nesting depth added 10). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6fa947eb71a5df569631a02082cbc10eceafc1bfe1ea7a3bf10d09304af194"}},{"ruleId":"D2","level":"warning","message":{"text":"MirBody::walk_places (cognitive 26): MirBody::walk_places has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 6 (18 pts), loops 3 (8 pts) (nesting depth added 17). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd62dc804ad493e30d28701d3d2939421503969760c1aac59da4e5eaed1c2c4"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::goto_definition::goto_definition (cognitive 26): ide::goto_definition::goto_definition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_definition.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8956119f11be7f4d1c4719cbb495bf5158f8c75a6863e6c853961c0e8efcdddf"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::highlight_related::highlight_branch_exit_points (cognitive 26): ide::highlight_related::highlight_branch_exit_points has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 4 (9 pts), match/switch 2 (5 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2ec4b96af330cde4071f9f5f57d4365ead4a69de27b1dd30ac247ee685a59d"}},{"ruleId":"D2","level":"warning","message":{"text":"NameRefClass::classify (cognitive 26): NameRefClass::classify has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 6 (11 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"835127d3fe7cfd9d44b2e8416bd9d02e3bb514a04b76386fcd63d2838c1e9c3b"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportScope::find_insert_use_container (cognitive 26): ImportScope::find_insert_use_container has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e77817cbbe858a135afbd49cb33b17ab2a193cddb0859e8f299a17fde2b02a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_diagnostics::semantic_diagnostics (cognitive 26): ide_diagnostics::semantic_diagnostics has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 8 (18 pts), if/else 3 (4 pts), boolean chains 2, loops 2 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcfd363c56819f2ccc4e30bedbeadea139d8a732d7ae205dbf2d14a96325e53"}},{"ruleId":"D2","level":"warning","message":{"text":"ErasedFileAstId::kind_typed (cognitive 26): ErasedFileAstId::kind_typed has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ffcd0cf3ff89336a46409dc4bd730cf7eada68dd96cd8db9a53f18fb27ab38"}},{"ruleId":"D2","level":"warning","message":{"text":"SyntaxEditor::add_generic_param (cognitive 26): SyntaxEditor::add_generic_param has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (25 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e3799674b75226089973ee385b5fd7376a6efb9a4834825c0430643ee15d74"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax::validation::validate_literal (cognitive 26): syntax::validation::validate_literal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"270b5e30b8e2383c913f42c1eae7f66beeab07d828117d05076f61fb4ba93252"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::display::write_generic_params_or_args (cognitive 25): hir::display::write_generic_params_or_args has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, match/switch 1 (3 pts), loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbeb865a51e18589f1b50739609c5e160d0561d6f2b6752ddd1074a94f0dbd0"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::find_path::find_path_for_module (cognitive 25): hir_def::find_path::find_path_for_module has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e68d64464470e4a507794dfe20e1a9fd5e12d14dcf086088e12c6aa66ef7805"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::find_path::find_local_import_locations (cognitive 25): hir_def::find_path::find_local_import_locations has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a2d93257a039cbd6016346ac36392455968bfe0ef859c836687c593e9206d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Coerce::coerce_from_fn_item (cognitive 25): Coerce::coerce_from_fn_item has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (22 pts), boolean chains 2, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c689a3f7623477072b541f2d445afa1d419eeaddd59a4cdbc5f8b5a6dc85ca"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_pat_inner (cognitive 25): InferenceContext::infer_pat_inner has cognitive complexity 25 (threshold 15). Drivers by points: loops 3 (8 pts), match/switch 4 (7 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc18b62dbad30352f983c6259946f0c5db5ba4c43aa2bc10dde86895a5810fe2"}},{"ruleId":"D2","level":"warning","message":{"text":"TraitImpls::collect_def_map::collect (cognitive 25): TraitImpls::collect_def_map::collect has cognitive complexity 25 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (9 pts), match/switch 2 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dddbde9e20a6303449042b2631424d2d09436d71f6334d4e8dfaa522079435f"}},{"ruleId":"D2","level":"warning","message":{"text":"AdtDef::new (cognitive 25): AdtDef::new has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5d1fe6b5ecf4783f4f8ec5d8a1c22a1b6aa702d4b76a0f47754d9c149e49a2"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::mir::lower::mir_body_for_closure_query (cognitive 25): hir_ty::mir::lower::mir_body_for_closure_query has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 4 (7 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c879623437b44dbc45714c73122f5371eb55b74f5a78a99e966fdd7293a49c"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_type_alias::collect_used_generics (cognitive 25): ide_assists::handlers::extract_type_alias::collect_used_generics has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 5 (9 pts), boolean chains 2 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_type_alias.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d10ead43d43cd42063b70b6b5678e3d058912afa45ef970dd5c754f4fc0b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::remove_dbg::compute_dbg_replacement (cognitive 25): ide_assists::handlers::remove_dbg::compute_dbg_replacement has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 4 (8 pts), boolean chains 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_dbg.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c790e312d6f9f5aae87498ad3558d3ff491f7483fcddc02d6a9762856c525f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::syntax_helpers::node_ext::walk_patterns_in_expr (cognitive 25): ide_db::syntax_helpers::node_ext::walk_patterns_in_expr has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 3 (8 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06db472280cdeaa767e6a3c611170f0139662e2647e31af81c86944b7c4ef5a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBuildScripts::rustc_crates (cognitive 25): WorkspaceBuildScripts::rustc_crates has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3 (9 pts), loops 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e5fa34ef02e8ac17b44360939ef12b87e5d1910237a0a6d3eb23c32463057"}},{"ruleId":"D2","level":"warning","message":{"text":"FlycheckActor::check_command (cognitive 25): FlycheckActor::check_command has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 5 (10 pts), boolean chains 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"7431f8ae34372121d04547a838c1a3951fffea86e51e3bfba265e3febfac322e"}},{"ruleId":"D2","level":"warning","message":{"text":"tt::transform_tt (cognitive 25): tt::transform_tt has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), match/switch 2 (5 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/lib.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9e87ebd2dbc68a391de3f7a8048d3ad4275b634c47f38a6ef778a5185b922e"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::display::write_variants (cognitive 24): hir::display::write_variants has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"db507f948327ce0a770ca83d22c9a9ebbf93d4501bc5dfb1ef7579ed535a0be7"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemScope::dump (cognitive 24): ItemScope::dump has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 4 (9 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"29554e8a65061dd0611266cf00d633d05a4e0cdad328e9b05b669d3dea35525d"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver::rename_will_conflict_with_renamed (cognitive 24): Resolver::rename_will_conflict_with_renamed has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da99b9029bfa28934c2139ed76cea1d7051cdf8f4e6b043ffd9690ad4557fb9"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::expr_store::pretty::print_where_clauses (cognitive 24): hir_def::expr_store::pretty::print_where_clauses has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 2 (7 pts), match/switch 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa815d96f4694746bb729c18ebffd569021c02feca5798f4603e442b765b24e"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::builtin::fn_macro::concat_expand (cognitive 24): hir_expand::builtin::fn_macro::concat_expand has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 2 (6 pts), boolean chains 5, loops 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89e6fce26ecbcb53126dea3a908672a48b57dc4798b41120e08dfbe6712f4c4"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_mut_expr (cognitive 24): InferenceContext::infer_mut_expr has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 3 (12 pts), if/else 3 (10 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/mutability.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bcaa077bd4cf28116953a408da6999ead7e71775e888113e68c66a1cb77169"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::file_structure::structure_node (cognitive 24): ide::file_structure::structure_node has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 10). Of this number, 17 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/file_structure.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfe64867e7b9d20d7e00869778ae0a8d59bbe362cd2df94a98c078da68fa8cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::hover::render::literal (cognitive 24): ide::hover::render::literal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 7 (12 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e6684d47c813bd81af39a613bbe5c7c9ac0dd42f16acb5000820a06afb6d67"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::wrap_unwrap_cfg_attr::attempt_get_derive (cognitive 24): ide_assists::handlers::wrap_unwrap_cfg_attr::attempt_get_derive has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0e4070d6071ecbe6e6a20174e7f2af829e6182c3d07478c5ddc67d7016b7dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::rename::source_edit_from_name_ref (cognitive 24): ide_db::rename::source_edit_from_name_ref has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfb74e20693e15f967f8f69b9477dc47b0a1da1a144009e6489c57f0a350c11"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::expressions::expr_bp (cognitive 24): parser::grammar::expressions::expr_bp has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, match/switch 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e617548a3a3f6be0113276a4e382fe9384e5930a818e46ef326a74e7e4daaa8b"}},{"ruleId":"D2","level":"warning","message":{"text":"NotifyActor::load_entry (cognitive 24): NotifyActor::load_entry has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs-notify/src/lib.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f87b9c5f45c4d79cf3db162a50edfec93d1315b0334be1ecfd1787a60cb3df6"}},{"ruleId":"D2","level":"warning","message":{"text":"config.substituteVariablesInEnv (cognitive 24): config.substituteVariablesInEnv has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5 (7 pts), boolean chains 3 (nesting depth added 9). Of this number, 18 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b32802a9bde5424df4d4304ba6101940f4583954eb6629088261cd6e063ccb7"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrap.getServer (cognitive 24): bootstrap.getServer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (5 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/bootstrap.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e538e42ede3dca10f6dd86f5ced3912e83fb680989bdb85ada51a7e47826e90c"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr::gen_source_code (cognitive 23): Expr::gen_source_code has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 8 (17 pts), if/else 3 (6 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/expr.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e50fc32213eb344235832ea5729ba80966eb32bcc4cab32640e1909e1cc833"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::term_search::tactics::data_constructor (cognitive 23): hir::term_search::tactics::data_constructor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"149053511dcc4438dee5970bb60da69c07b6d52cabdebfe0f673a8915ef8d795"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::lang_item::crate_lang_items (cognitive 23): hir_def::lang_item::crate_lang_items has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 3 (11 pts), loops 4 (8 pts), if/else 4 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c797b165cfd6ed847adc619da4728cede5e131b3f8ede25282a8b218db9319f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprUseVisitor::cat_pattern (cognitive 23): ExprUseVisitor::cat_pattern has cognitive complexity 23 (threshold 15). Drivers by points: loops 7 (13 pts), match/switch 3 (6 pts), if/else 2 (4 pts) (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c900f7a84e44e2342d573e4b07d52561c69c2d457a4e7a35df5b3b49fcbb428"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::highlight::highlight_name_ref_by_syntax (cognitive 23): ide::syntax_highlighting::highlight::highlight_name_ref_by_syntax has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 7 (13 pts), if/else 6 (10 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf62b3d047d273c5d7aa556b515168d2d85ac31da04b80b4d88ee81c0e71b9fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_function::make_body (cognitive 23): ide_assists::handlers::extract_function::make_body has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 11 (23 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"decd80ce1f37c1c620a7872d3860450630d01236ae751f5b91e3be0ed8f782ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::merge_match_arms::get_arm_types::recurse (cognitive 23): ide_assists::handlers::merge_match_arms::get_arm_types::recurse has cognitive complexity 23 (threshold 15). Drivers by points: loops 4 (13 pts), if/else 3 (7 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/merge_match_arms.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"05be52114577e39ddcd543da12b4869806cc00a9048b929faa1792403636fccc"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::remove_unused_imports::remove_unused_imports (cognitive 23): ide_assists::handlers::remove_unused_imports::remove_unused_imports has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 6 (9 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_unused_imports.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8543d2c1ed11b35f3d2c98648651ab8aeb47ae6a0b3d794f872630bbcc0afcc"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::imports::merge_imports::recursive_merge (cognitive 23): ide_db::imports::merge_imports::recursive_merge has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 2 (6 pts), boolean chains 3, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee81a2f5f406b8b0effc8ca55776c5c5751d924c5ac728faf92beddc30f71458"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::symbol_index::resolve_path_to_modules (cognitive 23): ide_db::symbol_index::resolve_path_to_modules has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 5 (11 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/symbol_index.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3979b068fc25e2575891b990e0417b1de801c937e481e25bf71ffa6e64155f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::syntax_helpers::tree_diff::diff::go (cognitive 23): ide_db::syntax_helpers::tree_diff::diff::go has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 3 (6 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/tree_diff.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"090dbd96d32aa6df2acc31060e47059b83146e310ff6c62225b2ccb5ea0147d4"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::params::param (cognitive 23): parser::grammar::params::param has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/params.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2980523041ec1ff1820cdf215bf2f7f57c9ca7356aa8e4e364f7d55873cd00"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::paths::path_segment (cognitive 23): parser::grammar::paths::path_segment has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/paths.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7d0468b2f54fb562bbeba93b878e993a208c4ba43178e2228b1fa98f682853"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBuildScripts::run_command (cognitive 23): WorkspaceBuildScripts::run_command has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 3 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99b6629851764d093e6f26d9cbd959b6a7d35010d32bcabffafa1e4f699b9f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Diagnostics::run_ (cognitive 23): Diagnostics::run_ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/diagnostics.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f28e7e6f3acd38ee0d5a4052d3665162bce244086f0d5561be6467a757faaa"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::merge_text_and_snippet_edits (cognitive 23): rust_analyzer::lsp::to_proto::merge_text_and_snippet_edits has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (9 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1827cc1e3336756e21a1b99565ae650cdfed9822d3b3b15c9ce12fa9e02796a1"}},{"ruleId":"D2","level":"warning","message":{"text":"Printer::print_path (cognitive 22): Printer::print_path has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce2e48ae9deeaab30de1a462c93a538d8a6ebe3025d0747c855e494af356276"}},{"ruleId":"D2","level":"warning","message":{"text":"DefMap::resolve_path_fp_with_macro_single (cognitive 22): DefMap::resolve_path_fp_with_macro_single has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 4 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"adec8f82893eebc73ef50fd2d83a352135f993f1325a8d5fdea758bb75276909"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver::rename_will_conflict_with_another_variable (cognitive 22): Resolver::rename_will_conflict_with_another_variable has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"c582a48f6d85abaff67b60b1b17c59d01d1fe48cc61b2e168fc93bdc576e1c24"}},{"ruleId":"D2","level":"warning","message":{"text":"Visibility::max (cognitive 22): Visibility::max has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (Visibility::min) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8294fd5e4c40da0bdabef8728962db1793472daf4f86000e2f5024c271fd37b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Visibility::min (cognitive 22): Visibility::min has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (Visibility::max) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e211380192aa0d78878aaf045c76d25a529ba0e7d8a006d9343898b1a33232"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::expr_store::lower::lower_function (cognitive 22): hir_def::expr_store::lower::lower_function has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 3 (11 pts), if/else 5 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c975f8a30ec9166d11d02d91f7d4728d4c79ba74a31b5ec17e18777174af8f78"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprUseVisitor::walk_expr (cognitive 22): ExprUseVisitor::walk_expr has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), match/switch 2 (4 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1de901739508e78cc3f0db144722fc9f02206f50e8e74919c910c0cab06f3a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprUseVisitor::walk_captures (cognitive 22): ExprUseVisitor::walk_captures has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (7 pts), match/switch 2 (7 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c117e8c73b8b74db8eb67d092a296f1ca23cafee3fa737d5b1fffed24f5365c"}},{"ruleId":"D2","level":"warning","message":{"text":"Coerce::coerce_borrowed_pointer (cognitive 22): Coerce::coerce_borrowed_pointer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a386ce715c15271a51f1f5b87b15a9294f09e49c87f8751619f690af702d362f"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::compute_definition_site_hidden_types (cognitive 22): InferenceContext::compute_definition_site_hidden_types has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (7 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/opaques.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47508a1cc0ca56c46632d7b69b00d57e70e4cd5b3be053e572d715254610196"}},{"ruleId":"D2","level":"warning","message":{"text":"FulfillmentCtxt::try_evaluate_obligations (cognitive 22): FulfillmentCtxt::try_evaluate_obligations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (8 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/fulfill.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5995b1e4ed40e5c9d21098b19b4ce5f634100117774280afaabec88b5d24ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::moniker::def_to_kind (cognitive 22): ide::moniker::def_to_kind has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/moniker.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ba02a582895939a85c4faf565db5406de44c8db75f473ade7bed915a55b2be"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_closure_to_fn::handle_call (cognitive 22): ide_assists::handlers::convert_closure_to_fn::handle_call has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31cf3b1b73dec10870a93302db47883d621451ee93924f076c271ee2079d015"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::utils::gen_trait_fn_body::gen_clone_impl (cognitive 22): ide_assists::utils::gen_trait_fn_body::gen_clone_impl has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (16 pts), match/switch 3 (6 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f846b6687726577d44c211455365f9fb0370f14d9d946a5cecf653d5d2b4a3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::utils::gen_trait_fn_body::gen_debug_impl (cognitive 22): ide_assists::utils::gen_trait_fn_body::gen_debug_impl has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (16 pts), match/switch 3 (6 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"54792077c3e3708ba8f36f407db29c16a638d44616d118fadff8642db484f79c"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::pattern::complete_pattern (cognitive 22): ide_completion::completions::pattern::complete_pattern has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 5 (8 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ac48406e0bbe89d2b7391a218aa52a8d363a8cea8d5835dc7b65e742cbab52"}},{"ruleId":"D2","level":"warning","message":{"text":"Query::search_maps (cognitive 22): Query::search_maps has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/symbol_index.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f362d0dc50b617429135d4997f6dee7c99a3787d6486d0499a3fb654239818"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::imports::insert_use::insert_use_with_editor_ (cognitive 22): ide_db::imports::insert_use::insert_use_with_editor_ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"7637e7819ab13f74d8a03dc0eff6609c61164f314f352e2a29ce55fa1ad88b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_diagnostics::handlers::type_mismatch::add_missing_ok_or_some (cognitive 22): ide_diagnostics::handlers::type_mismatch::add_missing_ok_or_some has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae7420d07cb7b02cc5d065ae942621ecea9ce9543113c43236a05c103d12b13"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::parser::parse_metavar_expr (cognitive 22): mbe::parser::parse_metavar_expr has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/parser.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29226d8bb6c8767da92803aa295d3d78e06ee9a73bc5009e48ad7416af0c3ed"}},{"ruleId":"D2","level":"warning","message":{"text":"CargoWorkspace::new (cognitive 22): CargoWorkspace::new has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 6 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdeedd27425a5aaa3d1ac6e0b686e98cacddfc6bb152e60962836b08ef52b98"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyDiagnostic::body_validation_diagnostic (cognitive 21): AnyDiagnostic::body_validation_diagnostic has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (5 pts), boolean chains 4 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06f2e0d7fa29641e2dcf0454a98d9504dd197568794abc04d2f45784013d32b"}},{"ruleId":"D2","level":"warning","message":{"text":"Trait::hir_fmt (cognitive 21): Trait::hir_fmt has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (4 pts), loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d15001fcd2d49bcf190716ac343120d6abe782e213d19f174d3d34dca87e6c1"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltinDeriveImplTrait::get_method (cognitive 21): BuiltinDeriveImplTrait::get_method has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 13 (21 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/builtin_derive.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"230d028a41a9ed940ac667fb61b325a98f825ca175eb13f43b9ce74bb6e460d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::folding_ranges::collapse_expr (cognitive 21): ide::folding_ranges::collapse_expr has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/folding_ranges.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"420d5965c7caf017ac2b9b0a106718f7b4b9e926bdd9319fe667e1f81036cf68"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_tuple_return_type_to_struct::replace_usages (cognitive 21): ide_assists::handlers::convert_tuple_return_type_to_struct::replace_usages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"340ecee4906e45074cffda64cdc1b11ebc549ae40f35ac5e37e28fd20dadcd73"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_tuple_struct_to_named_struct::process_struct_name_reference (cognitive 21): ide_assists::handlers::convert_tuple_struct_to_named_struct::process_struct_name_reference has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0eb9d2a4f9cfa31d931d8c7aba2e014449b9003737331b909bc13f11cba7153"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::remove_unused_imports::module_search_scope (cognitive 21): ide_assists::handlers::remove_unused_imports::module_search_scope has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (7 pts), match/switch 2 (5 pts) (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_unused_imports.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"8674b2fdefd32ad36cf73f49be5775512d335254aeda70d78cbf749fa522c560"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::replace_if_let_with_match::replace_if_let_with_match (cognitive 21): ide_assists::handlers::replace_if_let_with_match::replace_if_let_with_match has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 4 (5 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_if_let_with_match.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9633cc627577f2f7c5db04591aad1598a16a4b3cadee2e0e8b38c96b2a534dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::item_list::trait_impl::get_transformed_fn (cognitive 21): ide_completion::completions::item_list::trait_impl::get_transformed_fn has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list/trait_impl.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e49f80c45384c210fddf6ae806cd532bd9543f0a691c0a9b74e79237959d4b"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::syntax_helpers::node_ext::preorder_expr_with_ctx_checker (cognitive 21): ide_db::syntax_helpers::node_ext::preorder_expr_with_ctx_checker has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"74485c4995dd5e2807fb18538347d681cf0081e4bcfc067fcf5eb2935ccbcb6e"}},{"ruleId":"D2","level":"warning","message":{"text":"BindingsBuilder::build_inner (cognitive 21): BindingsBuilder::build_inner has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 1 (5 pts), match/switch 1 (2 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e90c22cb2132e9e6d59df06b7a368b7468fb4f2765dfa67d47fe3d071cd358"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::expander::transcriber::expand_repeat (cognitive 21): mbe::expander::transcriber::expand_repeat has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca8e2199cdf2b6da2c0caef8453ac5b84b306cdeb70be32afacdc7d36729cab"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::parser::parse_repeat (cognitive 21): mbe::parser::parse_repeat has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 7 (20 pts), loops 1 (nesting depth added 13). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/parser.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f8c9112963ee749eb6f0e02647ccc6dd1a699a7682f6a696280889adc53bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::expressions::lhs (cognitive 21): parser::grammar::expressions::lhs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8ed025ea08b55efc53f53118fbd51817030766e93f8689b695762f19de7d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::items::adt::record_field_list (cognitive 21): parser::grammar::items::adt::record_field_list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, loops 1 (nesting depth added 6). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to one function item inside it that branches (record_field). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items/adt.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e09f03c70de75ba5e2fbbd73f673b1d677fb45abdc56ea8ed92cabb6f8b989"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchMetadata::new (cognitive 21): FetchMetadata::new has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"111482c0bd4793051363916ae14877143fbce9028bcc014229db4e07abc8afe1"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::handle_vfs_msg (cognitive 21): GlobalState::handle_vfs_msg has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e78da5941bb1a6cdd2fcc2195e9b42abac2605291a7a1e0b669572a3dc4c5dd"}},{"ruleId":"D2","level":"warning","message":{"text":"EditPlan::build (cognitive 21): EditPlan::build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 5, match/switch 1 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edit_algo.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec366f0ffc519c7a5d8711730d9b7305ba66ec34f56066982e1f3f10fcdb8b8"}},{"ruleId":"D2","level":"warning","message":{"text":"Converter::next_token (cognitive 21): Converter::next_token has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e3aafea52fd0634a5769611e6ca3a0de09eff17c6f5bfdef280def49889bca"}},{"ruleId":"D2","level":"warning","message":{"text":"InactiveReason::fmt (cognitive 20): InactiveReason::fmt has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cfg/src/lib.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc76e1d0b1b7bd8a583ae4e5f66d99d72b62b5d9fbf15c25563c845322efe2c"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyDiagnostic::inference_diagnostic (cognitive 20): AnyDiagnostic::inference_diagnostic has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 11 (20 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c5beb0805b43d1b3d522def8b3c0600749a202b9ad0efb766c33634a198dca"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::collect_range_expr (cognitive 20): ExprCollector::collect_range_expr has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab3d9061e5515da3a7f2d4ea050607081dc47d48c09dfa15ff52d807b089f12"}},{"ruleId":"D2","level":"warning","message":{"text":"DefCollector::update_recursive (cognitive 20): DefCollector::update_recursive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (8 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97f0d1133bcebb1cd9fc5455a9c0ce2261b82b509c1d8cb89ed0b047cb8da66"}},{"ruleId":"D2","level":"warning","message":{"text":"MacroCallId::expand_speculative (cognitive 20): MacroCallId::expand_speculative has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 3, boolean chains 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1c11ba6bb312b22ec0d0d571567eda3bedf84cba04844a3bb0815fe5ca7820"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::builtin::fn_macro::cfg_select_expand (cognitive 20): hir_expand::builtin::fn_macro::cfg_select_expand has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (5 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e925fcc742333cf1b4ca4a726983ee801fabee6b9a7c2500de3042ab01568d4b"}},{"ruleId":"D2","level":"warning","message":{"text":"TyLoweringContext::lower_ty_ext (cognitive 20): TyLoweringContext::lower_ty_ext has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 3 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"da29c8d9b3a2bcaf908bea9553aab8a0a808c77f81d5cbac16516c574c7c67c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::exec_atomic_intrinsic (cognitive 20): Evaluator::exec_atomic_intrinsic has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ad5028298b7aa9b9938cc2721b1e26524e892910555fd4d8dff11401d8419f"}},{"ruleId":"D2","level":"warning","message":{"text":"MirLowerCtx::lower_params_and_bindings (cognitive 20): MirLowerCtx::lower_params_and_bindings has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a41e5b4269f0906a177dfd16d60ceaf1417c9854be3d0ab3e6607ff304605e9"}},{"ruleId":"D2","level":"warning","message":{"text":"InferCtxt::query_response_instantiation_guess (cognitive 20): InferCtxt::query_response_instantiation_guess has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts), loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/instantiate.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4a3737917853d84753867c43b5a32430358a4a2c3dce01749c5ae50bf46a29"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::next_solver::util::sizedness_fast_path (cognitive 20): hir_ty::next_solver::util::sizedness_fast_path has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c8451a5e7f834516803926909fbe265f470618c62187030b68ec66052546f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::call_hierarchy::incoming_calls (cognitive 20): ide::call_hierarchy::incoming_calls has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 3 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/call_hierarchy.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7161a6a3b09b1ba765d8e366548ecf422624c863b2bfcc2e9b570b04cabf0d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::expand_macro::expand_macro (cognitive 20): ide::expand_macro::expand_macro has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/expand_macro.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa825e18e50aff6a5e731609fb9e448748b49c330f37472f79cd8b2a17f95c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::extend_selection::try_extend_selection (cognitive 20): ide::extend_selection::try_extend_selection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/extend_selection.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5600c11f00e57d0ff6288d883e3d066cbc60ca304ba6e05973f6dacd6494d918"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::goto_type_definition::goto_type_definition (cognitive 20): ide::goto_type_definition::goto_type_definition has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (4 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_type_definition.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b53984ddee1ffd74640a8ba8c2be04781bf7029cc1935994123a0d8099bf229"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::hover::render::try_expr (cognitive 20): ide::hover::render::try_expr has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa6f9f412dc9d426086b9103bfa76d6b04ac056bf089f3f6dfb9297ed7eac24"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::rename::find_definitions (cognitive 20): ide::rename::find_definitions has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 8 (9 pts), boolean chains 1 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd6f09ee1e13ed93663d11d3f7cfb13f016234d11d2589fe99b10c4fcaba5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::inject::doc_comment (cognitive 20): ide::syntax_highlighting::inject::doc_comment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (6 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/inject.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3961c0657f36a0e032d1b414db494781e5d23193f5519ae6bd8728c8e927cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::typing::on_eq_typed (cognitive 20): ide::typing::on_eq_typed has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 3 (nesting depth added 1). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (assign_expr, let_stmt, assign_to_eq). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/typing.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"155c412084dcfa26c0f12f6b4f9d8b5a189bdef4868b2d136ca9687b35fbaf19"}},{"ruleId":"D2","level":"warning","message":{"text":"Anchor::from (cognitive 20): Anchor::from has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc23e4ac4049dee62e28b6a01dfc7b545f071b15619e37d8195fef51f2600896"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_function::fix_param_usages (cognitive 20): ide_assists::handlers::extract_function::fix_param_usages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (5 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"61381670b133c6b428c87ae3c013f82951ee42ecb82bcd763a9f27cf5e728d5b"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::generate_delegate_trait::remove_useless_where_clauses (cognitive 20): ide_assists::handlers::generate_delegate_trait::remove_useless_where_clauses has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf8ff4a11160e903fb5f83ebce08c041c66153dba820347630b1d58cd37edff"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::inline_local_variable::inline_local_variable (cognitive 20): ide_assists::handlers::inline_local_variable::inline_local_variable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_local_variable.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c98f586aebfa13a04188114c7150720acbfd756817863acc5d6dfbf47cb1d79"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::move_guard::move_arm_cond_to_match_guard (cognitive 20): ide_assists::handlers::move_guard::move_arm_cond_to_match_guard has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 4 (7 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/move_guard.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94568427210e38ad203d1305ffc8cf065baf4e79e11e828bad0af92cdfc2beb"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplacementRenderer::render_token (cognitive 20): ReplacementRenderer::render_token has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/replacing.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc003f96f5c28a81282587075145c9a8b740357e4622b222f671d22bf0e5623"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::params::list_ (cognitive 20): parser::grammar::params::list_ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/params.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"595231f2f97c15f1baf3336ca1bb0a9a8638af95c44fc047647f033065b5d340"}},{"ruleId":"D2","level":"warning","message":{"text":"CargoOptions::apply_on_command (cognitive 20): CargoOptions::apply_on_command has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 1 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ff6712ce36e9e7cd70832775a65ae9b68b973c9d1817f2e7c5273160718c0f"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::notification::handle_did_save_text_document (cognitive 20): rust_analyzer::handlers::notification::handle_did_save_text_document has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cc8323b1438f05b02a645c8a7e0c9002c1bd7680e4aecf06c123308853cae3"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr::needs_parens_in_expr (cognitive 20): Expr::needs_parens_in_expr has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 7, match/switch 2 (3 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/prec.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a7e726a373c7f34e7e7314cddf0c8bd57aa73f50f9ed30e8dbca38076407c2"}},{"ruleId":"D2","level":"warning","message":{"text":"xtask::codegen::lints::generate_descriptor_clippy (cognitive 20): xtask::codegen::lints::generate_descriptor_clippy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3, match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe22250614f9e3ced3aa747152777038728ad64413056478b25c0b0eca98372"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::display::write_fields (cognitive 19): hir::display::write_fields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdd23545694c0054a3252d112290211c5bb1b8088d6d97a2afc1dcfef74af75"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::lower_generic_args (cognitive 19): ExprCollector::lower_generic_args has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a42c078c15ec77ab1b4d8877761519b38a741b4640032faf80d6fa53b73d983"}},{"ruleId":"D2","level":"warning","message":{"text":"Printer::print_type_bounds (cognitive 19): Printer::print_type_bounds has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 2 (6 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f0899f3e7ce445062b3e7c8a5a4603b3feda9b6366d0477e3bdce421fcf90f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModCollector::collect_macro_def (cognitive 19): ModCollector::collect_macro_def has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2599}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33c95a7b44f2a61684e6f3373fc33a2f4ebcde80bcf606058d24447da9e6aea"}},{"ruleId":"D2","level":"warning","message":{"text":"MirPrettyCtx::blocks (cognitive 19): MirPrettyCtx::blocks has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (12 pts), loops 3 (7 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/mir_pretty.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3576575e09d117ccc2d4783d4774d6eafcb38229b8d2cb3029c7876161ca4424"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprUseVisitor::walk_pat (cognitive 19): ExprUseVisitor::walk_pat has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"41041c6cb1e979bb830a344642d64f27bc223b12fdde7ddbacc241ea7a26686d"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::calculate_diverging_fallback (cognitive 19): InferenceContext::calculate_diverging_fallback has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5 (8 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"888c5e83034c880ef68c109cf030fbfb1838847efd4d5870e9c741d6bf7c75c0"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::check_record_pat_fields (cognitive 19): InferenceContext::check_record_pat_fields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cff332eebdd63e7e8060adde47428842721aa112870269b3297131c8ba7e9c"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::struct_tail_with_normalize (cognitive 19): InferenceContext::struct_tail_with_normalize has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 3 (6 pts), loops 1 (nesting depth added 11). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05cb306b1f3f226fb0caa8031fd4fe4e0e4cb1d82fed8f8b4636eeb190fdf8a"}},{"ruleId":"D2","level":"warning","message":{"text":"Canonicalizer::fold_ty (cognitive 19): Canonicalizer::fold_ty has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"90582a277471b208288e0af2d552a349ed066c5dbd6cef175f71d303c07820dd"}},{"ruleId":"D2","level":"warning","message":{"text":"SolverContext::fetch_eligible_assoc_item (cognitive 19): SolverContext::fetch_eligible_assoc_item has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bcae2f3bd0c5e7c9c893bd8831f7a95a7ff77024e1c78f2dcecdb71d2d26c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::hover::render::definition_owner_name (cognitive 19): ide::hover::render::definition_owner_name has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 8 (16 pts), if/else 2 (3 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"80891ceb4c7ca20baf1fce5da04e1d575a5d4b042116ca1f69dfb1a5c5cfac23"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::navigation_target::orig_range_with_focus_r (cognitive 19): ide::navigation_target::orig_range_with_focus_r has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, match/switch 3 (5 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"df52015df04ab2c2e21e70f6853166f8b02d1932646b43fbe17a7fa8b0422cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::syntax_highlighting::string_injections (cognitive 19): ide::syntax_highlighting::string_injections has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e204a49a73cc5ebcfd33be24eaa0de4aadf7e261975661b0c57790ab1c07af71"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::add_missing_impl_members::add_missing_impl_members_inner (cognitive 19): ide_assists::handlers::add_missing_impl_members::add_missing_impl_members_inner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_impl_members.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a25154467a55c612a4e1f7bf6918f48b803fa83d0b2acd815024ac2cee666f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_struct_from_enum_variant::tag_generics_in_variant (cognitive 19): ide_assists::handlers::extract_struct_from_enum_variant::tag_generics_in_variant has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (8 pts), match/switch 2 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c873ef1d3853ebf1c0846ed232b7d653f54c42838ebbf4117dd29df671b851"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::wrap_unwrap_cfg_attr::wrap_unwrap_cfg_attr (cognitive 19): ide_assists::handlers::wrap_unwrap_cfg_attr::wrap_unwrap_cfg_attr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57b65b9161993c22d66348a6e38b927be567430d1fb512a902f4f6377e2c66d"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionContext::new (cognitive 19): CompletionContext::new has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 5 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"305388132e0ecafa64642126d7fddccebddc4e09d9684512c21fabb6eee6471a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::mod_::complete_mod (cognitive 19): ide_completion::completions::mod_::complete_mod has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/mod_.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c0cebc941f1cd712442715eaa124e6c9f3e3fda94221bd26e5b5f1a3198eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::render::function::render (cognitive 19): ide_completion::render::function::render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/function.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3cf559ecbdd7096181d5d3ab23942f1caad4e0f9490f2872dccab02de45772"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::imports::insert_use::insert_use_with_alias_option_with_editor (cognitive 19): ide_db::imports::insert_use::insert_use_with_alias_option_with_editor has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 4 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dc70884df8f8f1f15f4d4e8bd0fdc9f80dc50913692e32a588b9417a7a4483"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::rust_doc::format_docs_ (cognitive 19): ide_db::rust_doc::format_docs_ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rust_doc.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ea3d07c7f3ff4d5837078455063b56929496525c26a670db8e5c15ccdfb994"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclarativeMacro::parse_macro2 (cognitive 19): DeclarativeMacro::parse_macro2 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/lib.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd62cfdf11fc79d3551450f5537b1ba267f507aaea6c9c09e7451dd14129f2d"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::parser::next_op (cognitive 19): mbe::parser::next_op has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 7 (19 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/parser.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c028d55ff9bdbd3047f56e528d31fe28a32c9ef611b83012c2f86f8b34b0559"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::group (cognitive 19): Writer::group has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda2eaf280d7b4ffd7af4661724fe5abe27d0b03d1524dc306653ed4eb7703bb"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::request::handle_run_test (cognitive 19): rust_analyzer::handlers::request::handle_run_test has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (7 pts), loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f329938019b4f8dbea7e3ed388b4439399c90e8667edd34a531320a334622d97"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::request::handle_workspace_symbol (cognitive 19): rust_analyzer::handlers::request::handle_workspace_symbol has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 6, boolean chains 2, loops 1 (nesting depth added 5). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 2 function items inside it that branch (decide_search_kind_and_scope, exec_query). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4dc78ede73f344e14cbcb28999ea0d438a2d0ca94a17525a759d171db3d927"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::request::handle_code_action (cognitive 19): rust_analyzer::handlers::request::handle_code_action has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b3e326bd52de37fc29da804477d80b09836418316f57fe7e28cc7edd44936f"}},{"ruleId":"D2","level":"warning","message":{"text":"xtask::codegen::lints::generate_lint_descriptor (cognitive 19): xtask::codegen::lints::generate_lint_descriptor has cognitive complexity 19 (threshold 15). Drivers by points: loops 9, if/else 3 (6 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (insert_lints). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78baf55bddd53c99753204f3a9b5812751b717c217fceef32299d00f6383f21"}},{"ruleId":"D2","level":"warning","message":{"text":"CfgExpr::parse_from_ast (cognitive 18): CfgExpr::parse_from_ast has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 4 (8 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cfg/src/cfg_expr.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a781bbadfd25c348cbefd9f957b6b48016d0b98fcc03b9efbdffaa3f0a8d377"}},{"ruleId":"D2","level":"warning","message":{"text":"hir::term_search::tactics::free_function (cognitive 18): hir::term_search::tactics::free_function has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"318afdc488d6845e07f0073b2b6ea20b809547f55dd4938c48d4984ee4fdb0ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::lower_coroutine_body_with_moved_arguments (cognitive 18): ExprCollector::lower_coroutine_body_with_moved_arguments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f84cec96c60cfa455822c8b35a6adf7940638c9d6cf2401c59a30630dd064d"}},{"ruleId":"D2","level":"warning","message":{"text":"UseTree::expand_impl (cognitive 18): UseTree::expand_impl has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 3 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). Of this number, 14 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1c89f9fc88700674034ba933a2bcc4f9fd93e24e8e04b9e040834f33bc2709"}},{"ruleId":"D2","level":"warning","message":{"text":"DefCollector::resolution_loop (cognitive 18): DefCollector::resolution_loop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"745bd85c2a6fe1beb470d030287c8a7200189a67c4d743237371666bbb9eb81b"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::attrs::docs::extend_with_attrs (cognitive 18): hir_def::attrs::docs::extend_with_attrs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs/docs.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"73702a06c00c785766aec2d9990601bf4829b9a3716d4fdeb6beb6246dc1eb73"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_expand::mod_path::convert_path (cognitive 18): hir_expand::mod_path::convert_path has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 4 (6 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/mod_path.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0966049d0e12a41046a317b9a17df7061936ca4816f0b76661347c42eae653"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclValidator::validate_struct_fields (cognitive 18): DeclValidator::validate_struct_fields has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DeclValidator::validate_enum_variant_fields) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cf6c7b78b1f57432c690ce1174d2bd39d93ae034e1d5839b343ec6d88a5702"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclValidator::validate_enum_variants (cognitive 18): DeclValidator::validate_enum_variants has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"011838438a2a401d3317f0ca64ba14c9c554e333cadb4d6f7bfdc20c34aa7918"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclValidator::validate_enum_variant_fields (cognitive 18): DeclValidator::validate_enum_variant_fields has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DeclValidator::validate_struct_fields) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d4c333c3e22e40a26544d0519686d0ac746ea9bb2f7001245ce4ac28e344e9"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchCheckCtx::ctors_for_ty (cognitive 18): MatchCheckCtx::ctors_for_ty has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 1 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check/pat_analysis.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bad970482b8f65724cc00c6bb7cfbc60405febb8fd2a262449d18faf21a6fc"}},{"ruleId":"D2","level":"warning","message":{"text":"CastCheck::do_check (cognitive 18): CastCheck::do_check has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (14 pts), if/else 1 (4 pts) (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/cast.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff1c45e23cc58f2621c64cc1f46736114d8ad67e8c6e9df41fece52b187d85a"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::run_drop_glue_deep (cognitive 18): Evaluator::run_drop_glue_deep has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 3 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"635ebd417a2b89192a2db919d63906e53a8520b254f4f78dd76158c673d91759"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::lower::generic_predicates (cognitive 18): hir_ty::lower::generic_predicates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2778}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc09eaee405160b74fd6138e1568106298a4055b43ae759eb3a0d6b6e1adbeec"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::binding_mode::hints (cognitive 18): ide::inlay_hints::binding_mode::hints has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (8 pts), if/else 5 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/binding_mode.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6b84a69a9acbca8091838a4fefcff63c160c4ee77bc400c861cd0ba6942ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::chaining::hints (cognitive 18): ide::inlay_hints::chaining::hints has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/chaining.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f691e464a01dfa10406934218978a0702e59c9a0c82c027562651aa1f6412616"}},{"ruleId":"D2","level":"warning","message":{"text":"Module::expand_and_group_usages_file_wise (cognitive 18): Module::expand_and_group_usages_file_wise has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0151a38f5a641a85c0e3eead4dbc250759ab62c9c1ff2714dad78c13282e309"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::auto_import::relevance_score (cognitive 18): ide_assists::handlers::auto_import::relevance_score has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 4 (7 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/auto_import.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdf803e495599df347a1f935bcae20efa63fc0dd258bae7d2bd7066e768cb4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::unnecessary_async::unnecessary_async (cognitive 18): ide_assists::handlers::unnecessary_async::unnecessary_async has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unnecessary_async.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8934d1973e9b8fa9edce05f02ffadb9279a155a9664c4872f06a367cc1285b0f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::attribute::cfg::complete_cfg (cognitive 18): ide_completion::completions::attribute::cfg::complete_cfg has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 4 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/cfg.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"941f4eca99d33b4e104b47d60f6e70cfc25f5eeda3f10e08308fc48e5af4470a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::render::render_resolution_path (cognitive 18): ide_completion::render::render_resolution_path has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, match/switch 4 (5 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bef711aba430f35c5e757f2020a8e32ffab496e52a750cfaad1177f902f313"}},{"ruleId":"D2","level":"warning","message":{"text":"Definition::range_for_rename (cognitive 18): Definition::range_for_rename has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (15 pts), if/else 2 (3 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"739576d3d0fa43cf6bf1ba534cf5b01bd3a54eea966057eef7d9e50ef10d4e56"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcMacroServerProcess::run (cognitive 18): ProcMacroServerProcess::run has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 5 (7 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/process.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca21c729e4c789c32514e8b8ca996db4dbe6f1b7da66df857b5081fdf5be273"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::handlers::request::handle_parent_module (cognitive 18): rust_analyzer::handlers::request::handle_parent_module has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (13 pts), if/else 3 (5 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fba9330efe862441dc11df67d5596c2f3832703b1364d8cb885821664ff0209"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::lsp::to_proto::semantic_tokens (cognitive 18): rust_analyzer::lsp::to_proto::semantic_tokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (6 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a6a3bc9b6f9a6f8c5f95d1f0bd2cc52f378d21887665acbca29b4f5094d87d"}},{"ruleId":"D2","level":"warning","message":{"text":"stdx::process::imp::read2 (cognitive 18): stdx::process::imp::read2 has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/process.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b0f1cddc22a6a378c09411ea03328cf1e6b30c5e1e7d6d26d4c44c187c373a"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax::validation::validate_path_keywords (cognitive 18): syntax::validation::validate_path_keywords has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 7). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (use_prefix). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b09f98d92107bb2510dd4dc777bb1459a6e0cf03917522e6e976cd23c303d6"}},{"ruleId":"D2","level":"warning","message":{"text":"xtask::publish::notes::process_inline_macros (cognitive 18): xtask::publish::notes::process_inline_macros has cognitive complexity 18 (threshold 15). Drivers by points: loops 7 (15 pts), match/switch 2 (3 pts) (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/publish/notes.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d04d85f225b39401a551731765cb148037cbb252960bde2b1b054452d3a4abe"}},{"ruleId":"D2","level":"warning","message":{"text":"SyntaxTreeProvider.getElementByRange (cognitive 18): SyntaxTreeProvider.getElementByRange has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/syntax_tree_provider.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9716f3ab0235e7f0d46e04b03ed2976b543bd19d5bd217a5a51dff44e00270dd"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.asWorkspaceSnippetEdit (cognitive 18): commands.asWorkspaceSnippetEdit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f21ca3e3b12cbe0146fea0e8881c9814ecaead19e6722b7810cb71d3920e85f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprCollector::collect_stmt (cognitive 17): ExprCollector::collect_stmt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2725}}}],"partialFingerprints":{"codehealthFindingId/v1":"03108f88e0f2610f8d155bbc8c76b2922a986d14d1fe236758d1d1df7a44436f"}},{"ruleId":"D2","level":"warning","message":{"text":"UseTreeLowering::lower_use_tree (cognitive 17): UseTreeLowering::lower_use_tree has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4619fce743d42b808e8f07373e75f628ae5592f34ac8f6eb02d532b70537557b"}},{"ruleId":"D2","level":"warning","message":{"text":"Scope::process_names (cognitive 17): Scope::process_names has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 pts), loops 2 (4 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc466badfb7003afbe369ff52bd42c488f82c2855853961e79a4b97ecd9aba1"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionSignature::with_source_map (cognitive 17): FunctionSignature::with_source_map has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/signatures.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f84ce9731beb5def6b8baa850d7337b4191a1f4cc929ec17e5032e2fc1334f"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclValidator::validate_union_fields (cognitive 17): DeclValidator::validate_union_fields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f3b9ad26eea090062bba73c4da66090e3caa17778ca9db896a74ebf1a9aa3d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoerceMany::coerce_inner (cognitive 17): CoerceMany::coerce_inner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a253309c18234d5ac39a6a0a721606dfa6127e3a941a5fd49418daa973759f"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_method_call (cognitive 17): InferenceContext::infer_method_call has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 3 (5 pts), loops 1 (3 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"a369a2e0d73f2a5a7cea5187e99d7eebb18860c5cdcc489baf2d7533ae60e4f9"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::infer_tuple_struct_pat (cognitive 17): InferenceContext::infer_tuple_struct_pat has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 4 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a04e8241565c56b7aa48a28f7ef97acbc9f3df43f01ca69557d6c3091453b47"}},{"ruleId":"D2","level":"warning","message":{"text":"PathLoweringContext::substs_from_args_and_bindings (cognitive 17): PathLoweringContext::substs_from_args_and_bindings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"236124508078e7a886654fb023d1f35e0c6b679cd55335da079f7a7492e82bb1"}},{"ruleId":"D2","level":"warning","message":{"text":"Evaluator::unsizing_ptr_from_addr (cognitive 17): Evaluator::unsizing_ptr_from_addr has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 2 (6 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"850ad3a9fb1d971fbe7d7dad15b0d3c05c126be5dcd81d0621a3cfccf259fed5"}},{"ruleId":"D2","level":"warning","message":{"text":"Generalizer::consts (cognitive 17): Generalizer::consts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"33aac26b11825a14b49018223c0c3103626c6979e688d921c9e5182578b0b0a0"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceFudger::fold_ty (cognitive 17): InferenceFudger::fold_ty has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/snapshot/fudge.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e058c47a0bb93a6ed2f7e1d329264b71055f88c08863694006686d42e948d6b9"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::drop::has_drop_glue_impl (cognitive 17): hir_ty::drop::has_drop_glue_impl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/drop.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3e9b53eb6d3472a7acf0b4b75bb9feeba6b3e5cab13af75afc89fded16d1db"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::dyn_compatibility::virtual_call_violations_for_method (cognitive 17): hir_ty::dyn_compatibility::virtual_call_violations_for_method has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/dyn_compatibility.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce24bf3195a38f9d7e6a9856d560fcdfd0f4208859f638960577494b0e8f5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::lower::path::check_generic_args_len (cognitive 17): hir_ty::lower::path::check_generic_args_len has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, match/switch 3 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"9016ad6fb48fc1e4f36aa47dff1a5a5e3aba96991a0fea1dae31fc87aa801fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::traits::check_orphan_rules (cognitive 17): hir_ty::traits::check_orphan_rules has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (7 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/traits.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94e4a198cdca18258d51da6a11199f32626a44aadc26e69ab2abc5226c292c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::goto_definition::nav_for_exit_points (cognitive 17): ide::goto_definition::nav_for_exit_points has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_definition.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cd9c727668746389389eb8b183a0b77cc9e5cb5c9244b8a9bffdcfb1e32609"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::signature_help::signature_help_for_generics (cognitive 17): ide::signature_help::signature_help_for_generics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0a45d5066ced922d8824469d3b6b447176ba4260fd9c046edcd1c7c6789553"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneratedFunctionTarget::insert_fn_at (cognitive 17): GeneratedFunctionTarget::insert_fn_at has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3 (4 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"973f0d3235aa0af0cf508b02cfe1709f36e29409851c278052f4714e7e0f809f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_closure_to_fn::handle_calls (cognitive 17): ide_assists::handlers::convert_closure_to_fn::handle_calls has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 2 (5 pts), match/switch 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1179ef08f4d6efca8fceef38cbdb1d6eeebb92199a80bc3eb7d52443707056"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_into_to_from::convert_into_to_from (cognitive 17): ide_assists::handlers::convert_into_to_from::convert_into_to_from has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (4 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_into_to_from.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"328b0d6152be7d4a0b7d93fbbb17e9e33f0b353bff8ec90faf677cc0ab3f88c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_let_else_to_match::remove_mut_and_collect_idents (cognitive 17): ide_assists::handlers::convert_let_else_to_match::remove_mut_and_collect_idents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_let_else_to_match.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3529f5bd260321a5abf09f5d3e784caa49ff8520f84399d4cd0df469d90149a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_named_struct_to_tuple_struct::edit_field_references (cognitive 17): ide_assists::handlers::convert_named_struct_to_tuple_struct::edit_field_references has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (9 pts), loops 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d8de851c4eef0cb82c5bf0e280a80e249914d889fb1f3548fe09274b5f8c6e"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::extract_struct_from_enum_variant::create_struct_def (cognitive 17): ide_assists::handlers::extract_struct_from_enum_variant::create_struct_def has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"403efb64965e2d19f2f5da7dbcf7fe3ac41571df5f168e451e9dd4be051abd4d"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::attribute::derive::complete_derive_path (cognitive 17): ide_completion::completions::attribute::derive::complete_derive_path has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/derive.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01a9d4d51d7539a166a4e5f2dbd271d63866f4385a38aff3d8b3a592e2e3ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::postfix::format_like::add_format_like_completions (cognitive 17): ide_completion::completions::postfix::format_like::add_format_like_completions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix/format_like.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b2005411adfb99862abef90ee2adcb1f1e639440c0f9ac896d9c063014abf1"}},{"ruleId":"D2","level":"warning","message":{"text":"ScriptSource::parse (cognitive 17): ScriptSource::parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 4). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/frontmatter.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ff8f0016ef0db8da216ac11f7678aa3f6f3d1cf9cf2e0db3d6c9c55e7b5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"LexedStr::to_input (cognitive 17): LexedStr::to_input has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/shortcuts.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"21828fc6a4e4153b8eab1c2a7df3ce8137885acc03e5b17f9dee935096a2114d"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::event::process (cognitive 17): parser::event::process has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (7 pts), match/switch 2 (6 pts), if/else 1 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/event.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6edc4bf57a8b24c794c820cb5f06682378699dbdb55ef1d4d6137a2f6edf775"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::expressions::record_expr_field_list (cognitive 17): parser::grammar::expressions::record_expr_field_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaf9e47eb2bb8725effdd92199ac5c3250de6bc8008f28678c3541a42dbb1e5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceBuildScripts::run_once (cognitive 17): WorkspaceBuildScripts::run_once has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62053eaedf55b0b36554ca8ef1d67c6307b3913e152bc7c13e8cd08ce68e58b"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalState::handle_deferred_task (cognitive 17): GlobalState::handle_deferred_task has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada6e611458cc84312f42ef852c36fc3725ea53f365ce9e026e0c35a4c003113"}},{"ruleId":"D2","level":"warning","message":{"text":"Function::hir_fmt (cognitive 16): Function::hir_fmt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f43b41c7a6a72b83ebb2ccbd005e90c9ab1ce30a0df487e3361f2759b5baa3"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticsImpl::analyze_impl (cognitive 16): SemanticsImpl::analyze_impl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"86358a65f7bfc1dfc286a717bac6a112722ca9303d890acb231fd8f676bb241b"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticsImpl::locals_used (cognitive 16): SemanticsImpl::locals_used has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54be8f0f54e47ffff886ba4d3d7d93338f2d2e5c116db16787dcfa5a6d2aea8"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceAnalyzer::resolve_offset_of_field (cognitive 16): SourceAnalyzer::resolve_offset_of_field has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 2 (4 pts), loops 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b33a514830b5784c5a5fbf1ed69a5a094c841980303968257265a3d40246cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Docs::push_doc_lines (cognitive 16): Docs::push_doc_lines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), boolean chains 2, match/switch 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs/docs.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c576ca53d67de213c2d1441751cc244ab0a272edbf22ec5898c426f9363b39d"}},{"ruleId":"D2","level":"warning","message":{"text":"Docs::remove_indent (cognitive 16): Docs::remove_indent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs/docs.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ddb8e0bc9a2822493a75961d3b953068d097e476ddf3052ccb07942a1188e9"}},{"ruleId":"D2","level":"warning","message":{"text":"AssocItemCollector::record_item (cognitive 16): AssocItemCollector::record_item has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (6 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/assoc.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"110dafc76e78279f098598bbebeabbb07759cb43941beb2709fa41e9b6ea38eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ModCollector::collect_macro_rules (cognitive 16): ModCollector::collect_macro_rules has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 4 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2517}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ccb49c10c19f207bc74f23e9661c07b11e1788064446aa4b6b07aeb617bc73"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_def::find_path::find_in_sysroot (cognitive 16): hir_def::find_path::find_in_sysroot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e82da5a01cd7f52d9e2d74760a347f129646d8e529778eb45eee7ba8e51494a"}},{"ruleId":"D2","level":"warning","message":{"text":"DeclValidator::validate_func_body (cognitive 16): DeclValidator::validate_func_body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45356d759d8c348d5c03ba810bdd8817bb46b55c2dfe625b3fc8ceace244003"}},{"ruleId":"D2","level":"warning","message":{"text":"HirFormatter::format_bounds_with (cognitive 16): HirFormatter::format_bounds_with has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5709914b7145110c95d1e57aca3dbc1c77290a8e748e2d797a6e9591156db4d9"}},{"ruleId":"D2","level":"warning","message":{"text":"InferenceContext::try_index_step (cognitive 16): InferenceContext::try_index_step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c0ce242f2acce0f390d3f20e328e3ca3297c6ba52a35cb193897d550d052c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProbeContext::collapse_candidates_to_subtrait_pick (cognitive 16): ProbeContext::collapse_candidates_to_subtrait_pick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9273f1a2f250e9e4a1b5910a3dcb39fa82993a4c0e03f2fa49598c9b7b402a3"}},{"ruleId":"D2","level":"warning","message":{"text":"DbInterner::unsizing_params_for_adt (cognitive 16): DbInterner::unsizing_params_for_adt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), match/switch 4 (6 pts), loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9306595fbf13ebd70df79f4072c208b840ac885a0fd27d6edf9348d0636d492"}},{"ruleId":"D2","level":"warning","message":{"text":"hir_ty::consteval::literal_ty (cognitive 16): hir_ty::consteval::literal_ty has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 7 (16 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fadda64435023ea54474a39e63da260b0b31b9ac14a759796e71cd40e37df9"}},{"ruleId":"D2","level":"warning","message":{"text":"ide::inlay_hints::hints (cognitive 16): ide::inlay_hints::hints has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 3 (7 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5153b57229b584df640a2609e951da5c3abf962f42cc2b36fcdd97a0a19f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::convert_bool_to_enum::find_bool_node (cognitive 16): ide_assists::handlers::convert_bool_to_enum::find_bool_node has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b72786ad19ecc08f604d61a8332c63a4cbee1fff5d912241ed443188ca8c43"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::generate_documentation_template::make_example_for_fn (cognitive 16): ide_assists::handlers::generate_documentation_template::make_example_for_fn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_documentation_template.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c104050a4434dc14728f2245fb8ec008dff4dccb468912a1fdea47e6d07566d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::generate_fn_type_alias::generate_fn_type_alias (cognitive 16): ide_assists::handlers::generate_fn_type_alias::generate_fn_type_alias has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_fn_type_alias.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbbc583a150cd2e3240fce276d7b0b36b03acd66ad824c74cd83faf9fae35a9"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::promote_local_to_const::promote_local_to_const (cognitive 16): ide_assists::handlers::promote_local_to_const::promote_local_to_const has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/promote_local_to_const.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18cd06ace180a944b5a8f651d0ca682cf2b3adc8b4a2d716ce13ab72e024dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_assists::handlers::wrap_unwrap_cfg_attr::wrap_derive (cognitive 16): ide_assists::handlers::wrap_unwrap_cfg_attr::wrap_derive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5084beeb1c9c521ce3211d0494432c8acf013909d42ce4bfadadb12ebcf621c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::expr::complete_expr (cognitive 16): ide_completion::completions::expr::complete_expr has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), loops 2 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01ca308251b4d4018e1c93468d4a03c9f443647685ecf1d0c3e180767aa9506"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::fn_param::fill_fn_params (cognitive 16): ide_completion::completions::fn_param::fill_fn_params has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 4 (5 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/fn_param.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0328e85a11fc70d13d6c6be3fe6db5590422514437f107891dd490a97084fedf"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_completion::completions::item_list::trait_impl::add_type_alias_impl (cognitive 16): ide_completion::completions::item_list::trait_impl::add_type_alias_impl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 2 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list/trait_impl.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"db14e55e8cec9a6507886e40302d12519f39a3d77e1f32e15c686ba235e5ef4a"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::rename::rename_field_constructors (cognitive 16): ide_db::rename::rename_field_constructors has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 5 (7 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c003c4755303593294c5ad69b1258f1a6a56ad35c7823eef781ac0eecab1d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ide_db::syntax_helpers::node_ext::for_each_tail_expr (cognitive 16): ide_db::syntax_helpers::node_ext::for_each_tail_expr has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 3 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc905080f01d9dde3720e9b46d2bf63dc782f091de703b12b9959f872a9d6cb9"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchFinder::output_debug_for_nodes_at_range (cognitive 16): MatchFinder::output_debug_for_nodes_at_range has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/lib.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"792700f2d420883c51b72d9fd379f1e4acb76a17423ee484c3e69e5680e87312"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceRootConfig::source_root_parent_map (cognitive 16): SourceRootConfig::source_root_parent_map has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd399aa69fdce05bca98f5d0647c7041ffbe76817d8b63837dbd167341a7006"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::expander::expand_rules (cognitive 16): mbe::expander::expand_rules has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe83c7b085bf4f2be7714728718dd4a6c214b68fd932c242435065995042356"}},{"ruleId":"D2","level":"warning","message":{"text":"mbe::expander::matcher::match_meta_var (cognitive 16): mbe::expander::matcher::match_meta_var has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"a840877ccdf16c466ad94d6e1b38a3214989f7c2a9963ae847b039385eed5b43"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::expressions::stmt (cognitive 16): parser::grammar::expressions::stmt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8717f0e238d9b4b7f54e93adfb0023b6512a3085402d5b407817739279af6e08"}},{"ruleId":"D2","level":"warning","message":{"text":"parser::grammar::patterns::pattern_single_r (cognitive 16): parser::grammar::patterns::pattern_single_r has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/patterns.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d4aac472ae3ad4374261ed5f96bdb37a0601ceb10825495793b37d11cec55a"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchMetadata::exec (cognitive 16): FetchMetadata::exec has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b66afaa37e66a85438c90f356ae5259fe94fc1231392bcfabd355cb649938e"}},{"ruleId":"D2","level":"warning","message":{"text":"LsifManager::add_token (cognitive 16): LsifManager::add_token has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/lsif.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd19ec899441b49897373a6a4a5c7f70480361574f9cc4056c1e657d13ac4ac"}},{"ruleId":"D2","level":"warning","message":{"text":"rust_analyzer::session::run_session (cognitive 16): rust_analyzer::session::run_session has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4, boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/session.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d0f5008fc04693d25a61c8a3fe8b501cd4bb448f77c7202eb7730ebbb94417"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax::ast::prec::precedence (cognitive 16): syntax::ast::prec::precedence has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (16 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/prec.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"960e5b118e967b5a10b20b936614d86266727a21509f90733436d72bc5f02c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax::parsing::reparsing::reparse_token (cognitive 16): syntax::parsing::reparsing::reparse_token has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/parsing/reparsing.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f141e9d1960bea37bc392c1973358d4968d0b1b34266e5d861e11dc25447a4d5"}},{"ruleId":"D2","level":"warning","message":{"text":"line_index::analyze_source_file_sse2 (cognitive 16): line_index::analyze_source_file_sse2 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/line-index/src/lib.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f86f95bd4e28f7603241ad2f49be086368e7bda5e8ba6a425e76cca938f48c0"}},{"ruleId":"D2","level":"warning","message":{"text":"xtask::tidy::check_cargo_toml (cognitive 16): xtask::tidy::check_cargo_toml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/tidy.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e492676227878d104ee5a29d7eebd450c9ee31485fd0137c17948ae2f268b90"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InferenceContext: TooManyMethods \u2014 208 methods, declared across 15 files: src/infer.rs (56), infer/pat.rs (36), infer/expr.rs (33), infer/closure.rs (19), \u002B11 more file(s). The bar is 30 methods; this is 178 over it, 6.93\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"11726b38aab50c9504e596913b2547f558fc3ca58adaefa1167dec4532cce5ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MirLowerCtx.lower_expr_to_place_without_adjust: MethodTooLong \u2014 lower_expr_to_place_without_adjust runs 681 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 581 over it, 6.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"3614a902460d6602cd692e4c06e76d15a5170f3552e2e47556d7306ceb6ffeb3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.exec_intrinsic: MethodTooLong \u2014 exec_intrinsic runs 654 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 554 over it, 6.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d21772095bb2074232b886807da11750890d3e5a1ca9dfb1ade63902aa7afb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_completion::context::analysis::classify_name_ref: FunctionTooLong \u2014 ide_completion::context::analysis::classify_name_ref runs 567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 467 over it, 5.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"99490e94cf3e75f850764a2ceaa00b1999b355896b3b760afd431f4d4bfa9b56"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExprCollector: ClassTooLong \u2014 2147 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 113 methods, 3 blocks, lines 508-3766. The bar is 400 significant lines; this is 1747 over it, 5.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"d662d365b608b572c82140b9fe8ff8ff0ac10ffb855b88bd32ecfc59e9a304a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: expr_store/lower.rs: FileTooLong \u2014 2645 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 81% of them inside a single declaration: ExprCollector (3 blocks, 508-3766). The bar is 500 significant lines; this is 2145 over it, 5.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00788f16372d72b46ea5c1cd63a57d151401702fadddf8501ec0e384c639574"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyntaxFactory: TooManyMethods \u2014 157 methods, declared across 2 files: syntax_factory/constructors.rs (153), ast/syntax_factory.rs (4). The bar is 30 methods; this is 127 over it, 5.23\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa02d54eb3f41b6f79ebad251aa820c8c35ad146c65c48bbf9f7b97a5fd2f09"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Evaluator: ClassTooLong \u2014 2036 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 69 methods, 2 blocks, lines 166-3070. The bar is 400 significant lines; this is 1636 over it, 5.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"923de8e88b33ce7a320e35049de76b3d5327e96f8ea5b47bcf1fb0adfe4ccff5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mir/eval.rs: FileTooLong \u2014 2498 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 82% of them inside a single declaration: Evaluator (2 blocks, 166-3070). The bar is 500 significant lines; this is 1998 over it, 5.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e4d0f9535aceb84cacaed3b6c471b888a78c71e40a42f0a4b8dea7886f2ab1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 2416 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1916 over it, 4.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65801c80b07ef27b7bd0a2f6793b09c2aea12cc6c7aa8ebe79359d43d072cf58"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SemanticsImpl: TooManyMethods \u2014 139 methods. The bar is 30 methods; this is 109 over it, 4.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bf4c0d46f3f1b02e10b0ae491159d4beb589ffa3985b360a713a4730ce4113"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Ty.hir_fmt: MethodTooLong \u2014 hir_fmt runs 439 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 339 over it, 4.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"213ebd15123d754101bb7c1892dcfdd09d47bc94cfcc3ec0f5ea8c59ae06f920"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lower.rs: FileTooLong \u2014 2096 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 46 free functions. The bar is 500 significant lines; this is 1596 over it, 4.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cd760bfe83aeac340ecd28f901ed10173237446dcc1a4264fc0726685026cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/display.rs: FileTooLong \u2014 2039 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1539 over it, 4.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27144b5eaa675eccee6d2b37a9f71711c69d60c492b87e74d7ecccdbdcd776ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.infer_expr_inner: MethodTooLong \u2014 infer_expr_inner runs 393 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 293 over it, 3.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9847b0fdec575c553485673bbcac876b1c095a63463756cdc6a342079d2da439"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.eval_rvalue: MethodTooLong \u2014 eval_rvalue runs 390 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 290 over it, 3.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"091088acc8387579c3eba16a7c62b6bf21f022e6e8e1638d88d684d7fa69808d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/request.rs: FileTooLong \u2014 1948 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 80 free functions. The bar is 500 significant lines; this is 1448 over it, 3.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bea9c0ac7710637c0c629bfbc3482308457f524a81e5df5be7f439bc446e6a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprCollector.maybe_collect_expr: MethodTooLong \u2014 maybe_collect_expr runs 382 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 282 over it, 3.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdc0aef975295f8141bf83a6e9575d7e25e78a1b606b875f800bc988a04949f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/semantics.rs: FileTooLong \u2014 1903 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1403 over it, 3.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b589b81f0799a4760197f8f1b229aeec4bbf5229655ec704b434e81ea8365e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExprCollector: TooManyMethods \u2014 113 methods, declared across 3 files: expr_store/lower.rs (107), lower/format_args.rs (5), lower/asm.rs (1). The bar is 30 methods; this is 83 over it, 3.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6db55f603c694683ce35c43bc4ff83510025d55f316fb7525516ca9369633a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InferCtxt: TooManyMethods \u2014 111 methods, declared across 13 files: infer/mod.rs (71), snapshot/mod.rs (10), canonical/instantiate.rs (6), outlives/obligations.rs (5), \u002B9 more file(s). The bar is 30 methods; this is 81 over it, 3.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/mod.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"713d7c7899b87a64a5b1b19f5c46bded39247d79201b9da3dad28f5ca182594e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nameres/collector.rs: FileTooLong \u2014 1813 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1313 over it, 3.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"805f590bc1fc0d562a2d92421faed7f8a6570c1e992d84b61da63ff40afbd54f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mir/lower.rs: FileTooLong \u2014 1698 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 79% of them inside a single declaration: MirLowerCtx (2 blocks, 78-1941). The bar is 500 significant lines; this is 1198 over it, 3.40\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"772e35bf5e915a3de40cd2c371a5c4e9ccf1754d881b6b0c0cfe31f9d173161a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/infer.rs: FileTooLong \u2014 1695 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1195 over it, 3.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed49fad9326a390e6132791b296600b9d489dffb0a9947170d6fab5c7c341150"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MirLowerCtx: ClassTooLong \u2014 1335 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 66 methods, 2 blocks, lines 78-1941. The bar is 400 significant lines; this is 935 over it, 3.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6637cbc42103f2fa4099cead9f7d896e0faadc96e2fca588c2b52f51bf4709c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: next_solver/interner.rs: FileTooLong \u2014 1640 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1140 over it, 3.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab9e31fd37c99da687bbb7848f616899bbe0c3d433a4c02c1bf07cabecf79f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_expand::builtin::derive_macro::coerce_pointee_expand: FunctionTooLong \u2014 hir_expand::builtin::derive_macro::coerce_pointee_expand runs 328 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef06c42997a07ce49c31ee9019a946eb759bcec20687d40f17fdbd0e45521ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/source_analyzer.rs: FileTooLong \u2014 1616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 74% of them inside a single declaration: SourceAnalyzer (2 blocks, 77-1752). The bar is 500 significant lines; this is 1116 over it, 3.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b0f4b6eacaf8a6c2ec3c2b8c9cfd2792ab630aa54b8fe16ac31f26596e7b9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: syntax_factory/constructors.rs: FileTooLong \u2014 1578 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 99% of them inside a single declaration: SyntaxFactory (2 blocks, 15-2414). The bar is 500 significant lines; this is 1078 over it, 3.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24fe03278b73d63d4f6d3eff6e62f506e91b6ea8781ba27941d8ca312a9ad94"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MirLowerCtx.pattern_match_inner: MethodTooLong \u2014 pattern_match_inner runs 313 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 213 over it, 3.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d80abba20260c6e0d0e09d2a2aae312c0b4222297fb0f5fc942c3c1502afa50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/diagnostics.rs: FileTooLong \u2014 1551 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1051 over it, 3.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe7ed460880109e88472fb54bf58c3508d912d03537f6bf2df138326e12b33e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lsp/to_proto.rs: FileTooLong \u2014 1541 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 52 free functions. The bar is 500 significant lines; this is 1041 over it, 3.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddc217f5783a7c3489e8bf1c02a7538e7f7ac363d741e5aca9b9de51fcb139a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnyDiagnostic.inference_diagnostic: MethodTooLong \u2014 inference_diagnostic runs 306 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 206 over it, 3.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce249c2919d371ad29e73af30de508528dba6859aeabbccaf8fdee1c2cce9af5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: context/analysis.rs: FileTooLong \u2014 1511 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1011 over it, 3.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f658a66299d6aaba4ce887d5c94336c5775600e504f350ba35b9e9780dd6b1ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TokenStream.from_str: MethodTooLong \u2014 from_str runs 302 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 202 over it, 3.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ef96723f28cb11100b324c8f7249b64bc4d6057adf1e074911097604901b6c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SourceAnalyzer: ClassTooLong \u2014 1203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 70 methods, 2 blocks, lines 77-1752. The bar is 400 significant lines; this is 803 over it, 3.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"76694f0b06fff449edb71a37abf9e944ad253787644748555b36780c58a47847"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/extract_function.rs: FileTooLong \u2014 1452 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 952 over it, 2.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"795b89623be1d42c94adcc4a1af72b02866e85de9e1e6e3f607a1fba489f64ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::hover::render::definition: FunctionTooLong \u2014 ide::hover::render::definition runs 288 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 188 over it, 2.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"965812da8892af8e0278dd8d87f7241d67a22f4f7fa1f5eca43415d6163b97f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisStats.run_inference: MethodTooLong \u2014 run_inference runs 288 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 188 over it, 2.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1ae059d9e1d543b19479f685db4db0a454bcb54af1381fb58d7f23383dac64"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 84 methods. The bar is 30 methods; this is 54 over it, 2.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"019643bfced13e192c56f646cb39a1ebc275f7487f4dc4d514d1c65e622360d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefCollector.resolve_macros: MethodTooLong \u2014 resolve_macros runs 280 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 180 over it, 2.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bca00f4e24f7a88f0b8af2ba16a63393b7e953947b4ba0ca75b4d2631b7738"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/workspace.rs: FileTooLong \u2014 1398 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 898 over it, 2.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ff826a72e5b0347034225ea15db1b361f559a4dbaec535473f6b967472f92c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: infer/expr.rs: FileTooLong \u2014 1372 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: InferenceContext (55-2170). The bar is 500 significant lines; this is 872 over it, 2.74\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ebc0460d8c5ecd246ced742ec99b90bd675a608db95948b49147f442dcdb7a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModCollector.collect: MethodTooLong \u2014 collect runs 271 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 171 over it, 2.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a831408d70d67686e8488ad1bddcfc9250b896001c5f7914c81767164153bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Analysis: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/lib.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5147c5cbd83596e1d16aafe13ddfa5b560ec72053f209bf0f1c0c15ba7cd2591"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefCollector: ClassTooLong \u2014 1005 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 2 blocks, lines 232-1881. The bar is 400 significant lines; this is 605 over it, 2.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5816b61e343a9f9e8e2f31b4ebf4c3ad08dac2077f867b8cc6cd15ac4cf0144f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Printer.print_expr_in: MethodTooLong \u2014 print_expr_in runs 248 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e7e8fa0eb46704742b0bc50698a07aa6c1182b3fc259030ef42a7f4ffeb4f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: method_resolution/probe.rs: FileTooLong \u2014 1220 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 720 over it, 2.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82030550a5e16ed945a0f6b2de9f3fb3f176f0b9517562c8b0bad1e071ac30a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/analysis_stats.rs: FileTooLong \u2014 1213 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: AnalysisStats (51-1481). The bar is 500 significant lines; this is 713 over it, 2.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e15047ef897d2250cdd1a2e168f3514771d02bcf5c3b862f0e684b7560c096"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eval/shim.rs: FileTooLong \u2014 1196 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 98% of them inside a single declaration: Evaluator (30-1627). The bar is 500 significant lines; this is 696 over it, 2.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd4b19ac9bb3ffd9ec07e104e5e96c5829384c0443f6e686a2198d252000b7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_completion::context::analysis::expected_type_and_name: FunctionTooLong \u2014 ide_completion::context::analysis::expected_type_and_name runs 239 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba7493be33be7d3949f9f91698f1b75cffcfe9d2be015db0b9076a045cff8e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisStats.run: MethodTooLong \u2014 run runs 237 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"acab2e9af4c01dd985c5af92b2d7b588ef0ff71734d9e4221a7378d9220b0fd9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Ty: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. Most of these members implement ty.Ty (70 of 70 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d821a74afe2a318e573d365a6d68e665a9aa17972a22b93dcc1071f198e46962"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SourceAnalyzer: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca288a532a724b66f9b12e5b0b395dd82156cd1317850ab562fe548d9db83f06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Evaluator: TooManyMethods \u2014 69 methods, declared across 3 files: mir/eval.rs (55), eval/shim.rs (12), shim/simd.rs (2). The bar is 30 methods; this is 39 over it, 2.30\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c238b3b0b9f7f05a3c657ba120c52fef530c99514204614e1ec37334bbf3860c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_completion::completions::postfix::complete_postfix: FunctionTooLong \u2014 ide_completion::completions::postfix::complete_postfix runs 228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ed2ee316eb7d64cd5a888aadca0f014d2e3956a30b69b08432e643a0243456"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::layout::layout_of_ty_query: FunctionTooLong \u2014 hir_ty::layout::layout_of_ty_query runs 225 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae365a77aa0c5537bbc122e249a1e677fa0b81a607e6993aab99a242e9d7a6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builtin/derive_macro.rs: FileTooLong \u2014 1111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 611 over it, 2.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f2b94f209484f0f0d986b5e12d145f7dd5950b4006ef9e21e7ead26f0ac422"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MirLowerCtx: TooManyMethods \u2014 66 methods, declared across 3 files: mir/lower.rs (48), lower/pattern_matching.rs (11), lower/as_place.rs (7). The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adbdfe84ded30d72c5d2cefceb2eba3ff622aadd70ea57180e8d3cda954b71c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FindUsages.short_associated_function_fast_search: MethodTooLong \u2014 short_associated_function_fast_search runs 219 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"292c14ec006057ddb818c6345e74160df22ac5f5c89828e9733c500c1e0834d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GlobalState.handle_event: MethodTooLong \u2014 handle_event runs 219 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6f731a5672a79b21c21b3adb2c87ff9d3cb0e5516f39500fb201d0e1bc96e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SourceAnalyzer.resolve_path: MethodTooLong \u2014 resolve_path runs 217 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"791d26355f54e0b14068869795a8c6f8ad0e23437524d5ba324122958a4e2bbc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::convert_closure_to_fn::convert_closure_to_fn: FunctionTooLong \u2014 ide_assists::handlers::convert_closure_to_fn::convert_closure_to_fn runs 216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c35e632daae0e23233a84139b0d5412078dd89e48f812834fbfedfebf66ffdd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 572 over it, 2.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05ac88876461f64f725d47f956002f1785294ce726194d805fcd82c430a8d9d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DbInterner: ClassTooLong \u2014 849 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 4 blocks, lines 352-2117. The bar is 400 significant lines; this is 449 over it, 2.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ecb45e4d9a44533bd3ad343645e21619fa6566749a436b2d122a49fe1d4b08"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Ty: ClassTooLong \u2014 844 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 70 methods, 12 blocks, lines 55-1416. The bar is 400 significant lines; this is 444 over it, 2.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28e376e88ec83b00ad7691e28e4bc18981c0fbc050e3a92efb713ad44dbb9df"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InferenceContext: ClassTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 208 methods, 2 blocks, lines 1340-2623. The bar is 400 significant lines; this is 428 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"646394265cd108843d65f37614c1b0747dc45abe89bc909ca9219703f9021c53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hover/render.rs: FileTooLong \u2014 1035 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 535 over it, 2.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3975392689027dc384ca1a4be76e40c37cfbac0a9ac6f02c311893493aa6376b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.resolve_variant: MethodTooLong \u2014 resolve_variant runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e909c84d0f8b20b988075aa87f674abbd9e20114732efe52211a1cd81fa4f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/commands.ts: FileTooLong \u2014 1028 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 528 over it, 2.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd318b49f444b7949cfc2a588ef16059de433b18315a692cfe7048d46a63bc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: expr_store/pretty.rs: FileTooLong \u2014 1012 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 67% of them inside a single declaration: Printer (3 blocks, 450-1411). The bar is 500 significant lines; this is 512 over it, 2.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b780d94f2d0033efbc48f0db2f9409cc006c68c365f90ce1480c2bc548ff0e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProjectWorkspace.load_cargo: MethodTooLong \u2014 load_cargo runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"003469470773ef89acc9ccc83ac4bac2c497e02a1bf62928bf7da552534fa190"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ide::display::render_const_scalar_inner: FunctionTooLong \u2014 hir_ide::display::render_const_scalar_inner runs 201 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3528234120419220a55b5c2ff3e77144372813a964298909a41a95fd77fa9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: client.createClient: FunctionTooLong \u2014 createClient runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d63dab19872c997a00931d952e9f4ca069d5a638e0fa08fb8e0950f1f37b1c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/attrs.rs: FileTooLong \u2014 998 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 498 over it, 2.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f4addb7cd340f8893825e5b9935726468696ac6a55bbc9e91976189d7254bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main_loop.rs: FileTooLong \u2014 997 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: GlobalState (176-1482). The bar is 500 significant lines; this is 497 over it, 1.99\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a755c0de948b4c2e8f496d2153795e2bd355afadedbe14328619d298a2d38cbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/resolver.rs: FileTooLong \u2014 989 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 489 over it, 1.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"515b9701c460d572add2e72e0fd64035854fa357922033c50b6e14af0e705ab3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprCollector.lower_inline_asm: MethodTooLong \u2014 lower_inline_asm runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/asm.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17987208aa08661ac313bd2b5668bf4ff34564a90f8ec82c869cb1c57b80a31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/storage.rs: FileTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 472 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f955150b55c8c71b1f683c9d82a75bf7f88b373863cec80a46a2d5b1b0e663"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: next_solver/ty.rs: FileTooLong \u2014 971 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 87% of them inside a single declaration: Ty (12 blocks, 55-1416). The bar is 500 significant lines; this is 471 over it, 1.94\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa08ca7a09d538c5289854a09e8ba77fc33055be033f761b1a31bc190d248ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 970 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 470 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ff169514055ead7f8d4e1e3044c63d52ff5394fdcfeb573f024f56762cf607"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands.viewMemoryLayout: FunctionTooLong \u2014 viewMemoryLayout runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b530c7e3bdfb8b413e5761535e19907f99ad7b602b8a1e7e1ccb5704427f4e7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_def::hir::format_args::parse: FunctionTooLong \u2014 hir_def::hir::format_args::parse runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"608f5fdf7a5f46c67b7cde871e50a987d5f8569c2e26001ba38d0cd4920af9ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands.viewMemoryLayout.\u003Creturned closure\u003E: FunctionTooLong \u2014 viewMemoryLayout.\u003Creturned closure\u003E runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"353e71dba7df2b9a996ead6207572fa010c5f66587bd372b9ff91670e7e49839"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ast/make.rs: FileTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 149 free functions. The bar is 500 significant lines; this is 453 over it, 1.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8554b2c51e2f384b8b5609f65f2a9ca532205179ce0f96a77fbf9a130cbdca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/generate_function.rs: FileTooLong \u2014 948 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 31 free functions. The bar is 500 significant lines; this is 448 over it, 1.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b2ffc2a004591f7b78e4dd8af9c397ca580788bbd7618d2ca7a4baebd216e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_expand::fixup::fixup_syntax: FunctionTooLong \u2014 hir_expand::fixup::fixup_syntax runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/fixup.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a9fcd72e413064c31231e640a28977674875cd6065bc5c9f4e7cb8bbf14284"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lower/path.rs: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 68% of them inside a single declaration: PathLoweringContext (2 blocks, 58-1005). The bar is 500 significant lines; this is 431 over it, 1.86\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d235a870bba9aabbb87f9912c8e73eeafa536e0e32812b2c320b1b7dcea136a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/search.rs: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: FindUsages (2 blocks, 441-1376). The bar is 500 significant lines; this is 431 over it, 1.86\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4974177200872fef3701af581d1718e9ec22931123e15c03b994e6fd13dc98e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_db::prime_caches::parallel_prime_caches: FunctionTooLong \u2014 ide_db::prime_caches::parallel_prime_caches runs 184 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/prime_caches.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa1a0f9c0a8b652e393ceb852fa1c6d57ea4e442a8ca2c449ff90daa2514a6e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TyLoweringContext: ClassTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 44 methods, 3 blocks, lines 226-1398. The bar is 400 significant lines; this is 335 over it, 1.84\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a4ca0939c09d01e77995f0f58380c06f803bf4b050be369becb412a816ee55"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ItemScope: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"befdc4ff6c8dd3f02e052a70792809e58a384ce35ff38c7729969d6cdf4b259e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProjectWorkspace: ClassTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 19 methods, 3 blocks, lines 57-1104. The bar is 400 significant lines; this is 328 over it, 1.82\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6574fa39e7e4546dc4262e3cbc3a94d5ba38586478a855e81d262a96c5510c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::add_missing_match_arms::add_missing_match_arms: FunctionTooLong \u2014 ide_assists::handlers::add_missing_match_arms::add_missing_match_arms runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfab549e32f6e711158ac7ec4d2c42955334c884885378357e071680356e25f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_completion::context::analysis::expand: FunctionTooLong \u2014 ide_completion::context::analysis::expand runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28489b289ecba57fb720c9d67e20bbce1bc8dfd905e4472bcb5dc301ab0496d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::inlay_hints::adjustment::hints: FunctionTooLong \u2014 ide::inlay_hints::adjustment::hints runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/adjustment.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab882652c70bd105752d4ed9859bf7d05d6027d42f53c8695422d3eb3dfaf8f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GlobalState.switch_workspaces: MethodTooLong \u2014 switch_workspaces runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ae7a3f5461c498a0fcc06f343a00e43b74d38319fecbebc959b5bbb74d6ec8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: infer/pat.rs: FileTooLong \u2014 898 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: InferenceContext (240-1732). The bar is 500 significant lines; this is 398 over it, 1.80\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"546de202578d0b87e611588bc92c678f5db143dc25c53e93a1f68859489b6b19"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Scip.run: MethodTooLong \u2014 run runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"84435a4295cd102816a5fe60a76bd1f9eb29b66ca230ed7fba6de822ddf0fa49"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExprUseVisitor: ClassTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 43 methods, 3 blocks, lines 407-1762. The bar is 400 significant lines; this is 313 over it, 1.78\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"072d950b6b7bacba1c74be743829b73ccf8563fbdd4f89e434da77a412ba47b8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProbeContext: ClassTooLong \u2014 709 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 39 methods, 4 blocks, lines 48-2082. The bar is 400 significant lines; this is 309 over it, 1.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4854afcdcae3e00cd3804b851badc51b8401b6cf1fd4b344c88f45e6430112de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: infer/coerce.rs: FileTooLong \u2014 876 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 376 over it, 1.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f87b3eca81d2e2b49212503b946fe9979c30fd8e970641707d7116ef7db2da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mbe::expander::matcher::match_loop_inner: FunctionTooLong \u2014 mbe::expander::matcher::match_loop_inner runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b452f09decd915c4f45b28fd83d270325fc059c9ee7980e9a4db2aaec4bf73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analysis/expr_use_visitor.rs: FileTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: ExprUseVisitor (3 blocks, 407-1762). The bar is 500 significant lines; this is 360 over it, 1.72\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74297f27648338f761ab3f3c64542efcd29f5c9b0e406bb4f09933f698de989f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Printer: ClassTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 18 methods, 3 blocks, lines 450-1411. The bar is 400 significant lines; this is 281 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1e3cbd03eaadff592d5a22afd12cb4632d0dd6e41f612c539104fc050a2336"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GlobalState: TooManyMethods \u2014 51 methods, declared across 4 files: src/main_loop.rs (18), src/global_state.rs (16), src/reload.rs (13), lsp/utils.rs (4). The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca504b7cb2d2e85d4f2d403923bdf55ed950a1e2019d52fb655466b137ff8d75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::extract_variable::extract_variable: FunctionTooLong \u2014 ide_assists::handlers::extract_variable::extract_variable runs 169 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c355d20350c1888f1d0c9b2e6cf9e8457668133062e1531a9f3abe03698899"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_diagnostics::semantic_diagnostics: FunctionTooLong \u2014 ide_diagnostics::semantic_diagnostics runs 169 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cbeb42af183b14774fd3c758c3c27a23c853953cf657ea9f5d59a2a1a1c518"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprCollector.collect_pat: MethodTooLong \u2014 collect_pat runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"478176432c58fbbe759b7c982212e4de7983272b8f254eb5b0461c240f79f591"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: GlobalState: TooManyFields \u2014 49 stored fields beside 51 methods. The bar is 30 stored fields; this is 19 over it, 1.63\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c162b0cb853d70994cdfb86d55d4336b1e17841764e6f45015a372bd1df1726"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/expr_store.rs: FileTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 311 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ef7d05cee098c5b4f1bcc6f633e76169cbcab7dc27fc54d99b1cd40d3bd07a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.infer_closure: MethodTooLong \u2014 infer_closure runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"579f562dea50770702b7c4af05aaf2478dce5529cc99de29e588d2171c89b7c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/utils.rs: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 56 free functions. The bar is 500 significant lines; this is 301 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b21265208afb0917e21e47c4b7a8328e5c3fe9118db1f1987a96693dc86630"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_expand::cfg_process::macro_input_callback: FunctionTooLong \u2014 hir_expand::cfg_process::macro_input_callback runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/cfg_process.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"31711de7b712af0b9497725bb4c283fa7b5c19d1636dc48dd73fbc7fc5792acf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PathLoweringContext: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 25 methods, 2 blocks, lines 58-1005. The bar is 400 significant lines; this is 236 over it, 1.59\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"172591e6bb41865e23b3271dd1c94075bddf68f0cf275aa32184b3d82c1eb23d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModCollector: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 2 blocks, lines 1884-2782. The bar is 400 significant lines; this is 236 over it, 1.59\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"338d1fca59917cba8788a63ca9dc8d4737afd7d90028c40b985e0520aba2de9b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Expr.gen_source_code: MethodTooLong \u2014 gen_source_code runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/expr.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d639629d806b5719cfc1d286605a2dfcf63102bdb3900556c8c9a9a3f350a5e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_def::expr_store::lower::path::lower_path: FunctionTooLong \u2014 hir_def::expr_store::lower::path::lower_path runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc065ffc22b0d0b10e921d956b3ec91ea69ce045b8953f919f423ca937a5f66"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisStats.run_term_search: MethodTooLong \u2014 run_term_search runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"561ed647463a5ea2767bd93133813308d26c5d8dfe691cb9cb8583231e8f50e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/signatures.rs: FileTooLong \u2014 786 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 286 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/signatures.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ef8310c9c0a6662ff2540f8492c97a115a8f9ffc27e6d8d950b0c4ca00e8d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rust_analyzer::lsp::to_proto::completion_item: FunctionTooLong \u2014 rust_analyzer::lsp::to_proto::completion_item runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e108d95dea55d4387efb5d0298a6505489095575507aaba798780ac4637fd77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.analyze_closure: MethodTooLong \u2014 analyze_closure runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1ecaa8552ce03173a9d868072ec4cffa8b56f26327a2bcfb435a647488e6cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/defs.rs: FileTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 272 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1459712e55881fed1cfe7f231229e7470b1a0479f82bf059061055e72e371d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ast/node_ext.rs: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 271 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"707511240e5f36844460f4f1d931924eac7839969c97f828162237874ddd447c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FindUsages: ClassTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 20 methods, 2 blocks, lines 441-1376. The bar is 400 significant lines; this is 206 over it, 1.52\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"376dfa9fef6bf8adc6f9f8337a27a6d97692d375ddda9e3554810b418d5c728e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientCapabilities: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/capabilities.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7071f1ee9771bbaac34c096cd4314a25d8e1e5e9ebf1dd255de77f584b8b2a69"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.create_memory_map: MethodTooLong \u2014 create_memory_map runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfeaf985ab19934f196097ee04fb52f979346b82b655e44ac061903f63b0cf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::inlay_hints::lifetime::hints_: FunctionTooLong \u2014 ide::inlay_hints::lifetime::hints_ runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3713ffa45a95e8797cf7d33260dee0a517879b55f6139674bf78b9c7d81f31da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::syntax_highlighting::highlight::highlight_def: FunctionTooLong \u2014 ide::syntax_highlighting::highlight::highlight_def runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fa4ce5d633ede0f719994a676ae20914ca6bf7b1018271f4556600bf2bd769"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lang_item.rs: FileTooLong \u2014 742 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 242 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ca96fd585632c5b512c3dbe4c837d4c38f2e0c69ca895b8336284f75b9690c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::next_solver::consts::valtree::allocation_to_const: FunctionTooLong \u2014 hir_ty::next_solver::consts::valtree::allocation_to_const runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa9d1f495d38a6a8a84c2a9ade81704b032cc50b60b93e71bc9329e856ee1fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TyLoweringContext: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"274fe2c0796434c04170a4676e835bf49eee385d7bbb8a181e4bce268d6f92d7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Resolver: ClassTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 43 methods, 4 blocks, lines 44-1183. The bar is 400 significant lines; this is 182 over it, 1.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ffa26706cd20b6a27621af584cf72e9959c1ed349b0f3bde292edcc3de96ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::lower::path::substs_from_args_and_bindings: FunctionTooLong \u2014 hir_ty::lower::path::substs_from_args_and_bindings runs 144 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4440379022abff5c9afca236a3f17282e322b4a72b949d7392d7f3cd6fe4e199"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Resolver: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddf75922a1687d2daab244691d24fc95bce48560c11de0f2724cd9ba86866f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExprUseVisitor: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"a820134634b3f1e6d51c4a0c15afe2650993cf7445a016a036e11a20b0adcc00"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SourceToDefCtx: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4260e680efc32ef3d5355442ba92665a45775d9db3ecf21829ed2164928736"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FamousDefs: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/famous_defs.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0adddcc9decaee05faacc9f4efbf3715f902468250ac4398b5414df41c1b2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: closure/analysis.rs: FileTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 215 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69663eca5ca1ea32e93353a06f4ab123d5d8b95285de1aa62a806662c348a1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SymbolCollector.collect_from_module: MethodTooLong \u2014 collect_from_module runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/symbols.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d704c9b1c28dab6df6f392a50e7a7dd2f4074b6f93c8152c0c8ef853e25a9a0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CargoWorkspace.new: MethodTooLong \u2014 new runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"775f38508c153a033e234eed86e5aa1f2834921ceb57998f5249debb08ff65d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: msg/flat.rs: FileTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 213 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d806d1a4ad3dbf66bf146c7ec489814db0607d2dc41af9c15b126bb93c8edf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: imports/import_assets.rs: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 211 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5337d9b0999f6f157055eaf794154ab97bcbc245d47a928cffe7d61ee739ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::generate_new::generate_new: FunctionTooLong \u2014 ide_assists::handlers::generate_new::generate_new runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_new.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8017ac59156fe18d8b64ead75328949a2495d31dd32c7b5c52e9fa330418c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/reload.rs: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 87% of them inside a single declaration: GlobalState (68-979). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba17f11d8fc77fd2240e5203248c46316934694f51ced960fbccec6a12f8c4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/navigation_target.rs: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 203 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64841eafffdcc4c7eed98230e3de5483e7025723abfa03481e3bd1ab188f677e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/display.rs: FileTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 202 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3287873a1d1590af8cb86a618170347a154b934f71ec3af0ab73d2425dc4c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefMap: TooManyMethods \u2014 42 methods, declared across 3 files: src/nameres.rs (28), nameres/path_resolution.rs (12), nameres/attr_resolution.rs (2). The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afeaec5f79b491f63e1416e64519b0732e2ed79b67d242768db7bc49a78e0e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/context.rs: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 198 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde49852bd12d69c36fbaeb6c8387a33d476ce0e138c43abfa55c5ce3d65ebde"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TyLoweringContext.lower_dyn_trait: MethodTooLong \u2014 lower_dyn_trait runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c012af12c65e2e7941be851bbb6fee3b689e3d905e445ab1ed21ca6140a2ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builtin/fn_macro.rs: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 190 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8e683a31efa4183f15b7a15f5fb99f855b59ef9c98f0bdacf635910cc396ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefCollector.record_resolved_import: MethodTooLong \u2014 record_resolved_import runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f71fc55ddb834f8fa83a5d7b4c79fe7e93020e6137be07da12cf2a530d85f69"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnyDiagnostic: ClassTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods. The bar is 400 significant lines; this is 151 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc12b25292ea0c2b7bdb9728c9753e90e35d4bf17547a0b2501a1843e26ad75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::generate_delegate_methods::generate_delegate_methods: FunctionTooLong \u2014 ide_assists::handlers::generate_delegate_methods::generate_delegate_methods runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_methods.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89e1cf20d033c159818080d1ec206f473b5f42c9d9ea66570707697ddfa8152"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GlobalState.process_changes: MethodTooLong \u2014 process_changes runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a5ab7209246dfcd1eaaf1728eaba2803ae09efd17def3af75ab5e6fbce5367"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InferenceTable: TooManyMethods \u2014 41 methods, declared across 3 files: infer/unify.rs (38), infer/autoderef.rs (2), src/method_resolution.rs (1). The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/unify.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c8e97be38732e2d504da94dabda1d579c73617ca81ea78cf1c18d99307913a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 179 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"373fad2807e5e2bae7a1ba606cbaacd2fbd7f535466c9ae6bf395ee6f48119be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: infer/mod.rs: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 67% of them inside a single declaration: InferCtxt (2 blocks, 231-1279). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7eaab178475fad55fb12b1afc850af06c8c4255422758a2c6348cb5e92e4b7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprCollector.maybe_collect_expr_as_pat: MethodTooLong \u2014 maybe_collect_expr_as_pat runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b26f8aae6bec9cc9df6fee4796bb1e961f32ad5e577d5ed0dc72e2361891d2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rust_analyzer::handlers::notification::run_flycheck: FunctionTooLong \u2014 rust_analyzer::handlers::notification::run_flycheck runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"47847cb99a09cdb3c2f9e3c77bb4a1d314f44862be6eb994d08ec4cfbc5b9755"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProjectWorkspace.to_roots: MethodTooLong \u2014 to_roots runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3ff3e8a246cbedde0810e248afa7c631c7d9a1f4efff7856b81d1696983787"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rust_analyzer::lsp::capabilities::server_capabilities: FunctionTooLong \u2014 rust_analyzer::lsp::capabilities::server_capabilities runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/capabilities.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1301b3204b5a3c13e07ebfb9f32c7bdec55fbb9598cabd8bb76a5a2455a8b547"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lsp/ext.rs: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 169 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/ext.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7501bed416d07fe840e4dea2b2236e2af2a01bc1252e2a541f2d1df22e02077"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/flycheck.rs: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 166 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bd6216ff93a5afa0c576cfc0411570a8a3c26d16c2ec6d34ecec89016da1cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PathLoweringContext.substs_from_args_and_bindings: MethodTooLong \u2014 substs_from_args_and_bindings runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"42045a71538a572a44646c9adc7faa7e1597225f6cb7d81d9183e5b56a246be6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: imports/merge_imports.rs: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0b8f1323de3e35331006de692e6d6571988dafb3ffbc6f63862720e5e19030"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/thin_map.rs: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 159 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/thin_map.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0320dfcd38609245cce2906961bcd6065b8ec79a287f190c31aa11a888ef755"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::next_solver::default_types: FunctionTooLong \u2014 hir_ty::next_solver::default_types runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"01495a560c34169db21ab033ba88aa1c45337b71b742acfdf3eba3e71189d1b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tt::storage::encode: FunctionTooLong \u2014 tt::storage::encode runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"420c178b4740a7d860a09941c6906653cd4a899d67677d82ebb9c705c89dbe31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InferenceResult: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34f82fc3c4ef89d01726244a48733f457246027a5e0e219ea36b5b66150bc9f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProbeContext: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"10540b8b8382d8c8a296de68fb54eb06cc6589c164e0525aca3656a8b318c698"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.try_find_coercion_lub: MethodTooLong \u2014 try_find_coercion_lub runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"8835b8713f940c679ba3bbbf005f717ed42e35555ff83bc0b58664b76db5f64d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.interpret_mir: MethodTooLong \u2014 interpret_mir runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"211705da5a97627eb461d7c96a3326a4ddea1359d4a8046758a99977d7dcc1d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::utils::gen_trait_fn_body::gen_partial_eq: FunctionTooLong \u2014 ide_assists::utils::gen_trait_fn_body::gen_partial_eq runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ca4c4b7dddc1b522410987556d7548122430a71e4d761df8b7a4b9e24d98b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProbeContext.consider_probe: MethodTooLong \u2014 consider_probe runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5976d7e1f3772f1dda3b8b3a2b9d09415f6b7f0f9ca486147751ee5753970c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: project_model::workspace::cargo_to_crate_graph: FunctionTooLong \u2014 project_model::workspace::cargo_to_crate_graph runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63e408bfbe05a97016045bd7503c550ecba811f8e643aac50e2607a88ff44a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.patch_addresses: MethodTooLong \u2014 patch_addresses runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1f8dccfd8a67a3923c31b1dd9fe2cab63746b8ac7142b52c703f34e69c9a21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: infer/closure.rs: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: InferenceContext (51-1169). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1142437f2f8c0a06a252cfd7452e3af29b184d92e884711a0d8892e4162ee44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MacroCallId.expand_speculative: MethodTooLong \u2014 expand_speculative runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"72deb279144860f0abc618546138e29a1039d52a94de47e80f6ad5c2bc88e9ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tt::storage::decode: FunctionTooLong \u2014 tt::storage::decode runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca93fa36bed32c5e49400ac3f3be2e8221922f2043fddb154b99f7bb895d6529"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: syntax_highlighting/highlight.rs: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 127 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b485814c9861af19dc802e9101fb3d155e46c6baaf439f59dfec022d4adfa1b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiagnosticsCollector.collect_impl: MethodTooLong \u2014 collect_impl runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80da457d7176cbe99dd8aab71041a5c6f2240586d25b1045b4a60d8fd22845e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/inlay_hints.rs: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 124 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1233a8b7e162854ff272f786b1c121fb975992ff87177a3e1a2fcbe47a404f2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/item_scope.rs: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: ItemScope (4 blocks, 125-904). The bar is 500 significant lines; this is 123 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaaa3aa4ca6e39b7b3ddeb49ef237fc8548eb48be57aa7b5992bb73544427ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 122 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4972156f24934dc71a16f61274e7e53edb0264466d5a553d906ead41745afa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScriptSource.parse: MethodTooLong \u2014 parse runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/frontmatter.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee96e69460a214aef7e25847ade33d392e09ddfe6a03108455b4ab5fb9dfb225"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 119 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/smol_str/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"290d8fa44b321b534c11cd8bdafc6fdd3511663910ed3c33d1726ed562c486cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/input.rs: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/input.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae5c5210ec26157c78023a5e6419f3849ab6a050c77b7282abeda726f730ffe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_expand::eager::eager_macro_recur: FunctionTooLong \u2014 hir_expand::eager::eager_macro_recur runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/eager.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cada7a3fe16e098cb93eded85ea236af5d707aa133ec5be009c9dce330e2e7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Expander.expand: MethodTooLong \u2014 expand runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbf3730827d51acbdc0efd9dc1e7bb804ab21826c88b79d35572e3c9ff377f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: expander/matcher.rs: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18155d25864be7b61e24dea86e5f43c267cef783a27cd7346bcc86b1c7e40a58"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Ctx.transform_path_: MethodTooLong \u2014 transform_path_ runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/path_transform.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"714c55103591e160458b5924aec8a34df365a5d8ed4536cd6e7d989ce82fd76b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rust_analyzer::handlers::request::run_rustfmt: FunctionTooLong \u2014 rust_analyzer::handlers::request::run_rustfmt runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2ab38d1c62842e805ce09fc04c7a05a0f69e5ddb816aeeef480405adc1ab15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: Analysis (2 blocks, 244-978). The bar is 500 significant lines; this is 101 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c0b8cef94b628a58033089b028b0fc8cc534033d5f00c135c08d161e843bad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Completions: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9346f92b81f51a3e273753fb1a1f10f8c8acfd7f8d89994d3376b284789148c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/global_state.rs: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: GlobalState (3 blocks, 84-821). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc01d3c8d756783452901927ed243807c4136b081c46e95453da71bfa17d8172"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.allocate_valtree_in_heap: MethodTooLong \u2014 allocate_valtree_in_heap runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b94ee615c5801b67eab80abe8d50974863843a1f295aceb5ad2d9f05ce9f12"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mir.rs: FileTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 93 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71ab442290802d6286d6e94c3d2a385487fecd13c3a2e2b2f793f8a688da839"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ItemScope: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 55 methods, 4 blocks, lines 125-904. The bar is 400 significant lines; this is 74 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8ebb5f6138a423d123da0fa8e3f758faf03c5fe7fac4b3d25707eca6c49b8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: next_solver/predicate.rs: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/predicate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e0c1d8fbb017901748b0eae58c8f301591df6a073b9b3ec217000de63dce13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: project_model::workspace::project_json_to_crate_graph: FunctionTooLong \u2014 project_model::workspace::project_json_to_crate_graph runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3929074b87afd2c4d6379eea8e107ab4ecb0f9b9aefcb1aeeb7164ebd747a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/method_resolution.rs: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 86 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e9bbbd63ad02b20a426f83cc59fcab24b65d0a207e5edb610c020ab20a149f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_def::attrs::match_attr_flags: FunctionTooLong \u2014 hir_def::attrs::match_attr_flags runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b359af5c3468a8f3b3fe7e7e9310e1ba8282cb15cee2a374312f6daa03cdcd54"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.check_call_arguments: MethodTooLong \u2014 check_call_arguments runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"5260d6c132e50458754d09d19fcd23045907d8a99ebd44cb66c77ca6f4a8a0da"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FindUsages.search: MethodTooLong \u2014 search runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f6b54f2a2a7d48c6faa060908a9518047159eae1c27eb289639e21f68bcc13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::file_structure::structure_node: FunctionTooLong \u2014 ide::file_structure::structure_node runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/file_structure.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"479677ceb632735aea56c0e3205a7ed977e336efd016c49ce2fce2a73db3baed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Semantics: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"038852d100de3d449078bbf0eb11011a25945dca5e8349b5aaf1691036ab16d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Resolver.resolve_path_in_value_ns_with_prefix_info: MethodTooLong \u2014 resolve_path_in_value_ns_with_prefix_info runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04239ba05369640a116e3efb1af5b620191cf025a043fa1e517e63a3fe81132"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.check_record_expr_fields: MethodTooLong \u2014 check_record_expr_fields runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"3335f409796cdac83ba26acd7a64739fa2e70b62117e1e06eccdc84c11a21b01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluator.exec_extern_c: MethodTooLong \u2014 exec_extern_c runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc645254f0aeb3b21ccd1e1c61959cf1ce06e049949fd108276f64b5e9caed5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::extract_function::extract_function: FunctionTooLong \u2014 ide_assists::handlers::extract_function::extract_function runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d08a20af8f432b9b5bd92288f68fb9a5934962fa4e4189531fee013ae3ed0da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/completions.rs: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: Completions (2 blocks, 57-636). The bar is 500 significant lines; this is 72 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f5d1337df2a30bc68b9734d8cf65a58c1d91214a997df9b21b06940f160b46"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InferCtxt: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 111 methods, 2 blocks, lines 231-1279. The bar is 400 significant lines; this is 56 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/mod.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f175eb60f58516571248f61a15911e1d12e607bb026df86cf6b7c50466a145"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::mir::lower::mir_body_for_closure_query: FunctionTooLong \u2014 hir_ty::mir::lower::mir_body_for_closure_query runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be417f98d2a14707019ed767425262d9d03d621d9d630e731bb1026788ca47b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir::source_analyzer::resolve_hir_path_: FunctionTooLong \u2014 hir::source_analyzer::resolve_hir_path_ runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f158fd3dded0c354eec20f213f98eda285757c655a5e6b46b967bc2b50758a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ast_id.rs: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bafb3dfe65743afdc194b2345796622df25be0920ba7df67aa2f6cb7d84585"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lower/pattern_matching.rs: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 96% of them inside a single declaration: MirLowerCtx (56-744). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1d566fd8280b10ad61365a4a80dfe6d5cdc65bfa20928095ea5917559896fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotifyActor.run: MethodTooLong \u2014 run runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs-notify/src/lib.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e43e57ae064b0e58bcaf5c2e268f736aaccceec4beb4e167054f351bb4b1ec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AttrFlags: ClassTooLong \u2014 448 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 24 methods. The bar is 400 significant lines; this is 48 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"249ed9b6877582e56eddbde68d093124aeea4a58c04b8e02aa14dc0fdf2e338e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Printer.print_mod_item: MethodTooLong \u2014 print_mod_item runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/pretty.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dd169f5e2649fc990f1052653b331578eb6fa1b6b257bac2cfadc83f34ce1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::generate_delegate_trait::generate_impl: FunctionTooLong \u2014 ide_assists::handlers::generate_delegate_trait::generate_impl runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"166c1ee735f8cefc4fd16d58d179aba4a1b91813341ca1cb8a3fcb42efad8c5c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisStats.run_body_lowering: MethodTooLong \u2014 run_body_lowering runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2583abb39fd2536eae125bd3ab9d42e2f6bc4a3b80e7ebcdba5b30ace70b13d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rust_analyzer::lsp::to_proto::code_lens: FunctionTooLong \u2014 rust_analyzer::lsp::to_proto::code_lens runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31283bffbd083ecd80e8bfd01e1dc34482f74413c15224436f7a24db42bab2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rename.rs: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"358a5708339ae97711f794ce8a1463a7986233e864a4b9931d1caf2b20e0c8ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MirLowerCtx.lower_expr_as_place_without_adjust: MethodTooLong \u2014 lower_expr_as_place_without_adjust runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/as_place.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbe9de29942211986463b3ee416db457d801d661db181a1c93a5e4986647ea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::syntax_highlighting::highlight::punctuation: FunctionTooLong \u2014 ide::syntax_highlighting::highlight::punctuation runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2798d74b30a8d58fadd1d5420be02c6ddf91e668442fc669a6a12c5a932dead"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisStats.run_ide_things: MethodTooLong \u2014 run_ide_things runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"216ee8940cf80852254688b9d71ff135fc91972220629db4cafb5189404b1635"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: syntax_bridge::prettify_macro_expansion::prettify_macro_expansion: FunctionTooLong \u2014 syntax_bridge::prettify_macro_expansion::prettify_macro_expansion runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/prettify_macro_expansion.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1f30d871de6495a00a6a2d3502284d5c929e37926f59439a53f392aa2db0a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Analysis: ClassTooLong \u2014 440 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 79 methods, 2 blocks, lines 244-978. The bar is 400 significant lines; this is 40 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/lib.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d2353cb9c0eeee15bf2ed92eb8fc23e7b91f00bb6eb68c54015cf68558f9d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprUseVisitor.walk_expr: MethodTooLong \u2014 walk_expr runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc59906e5a39666d8721c9aa94449f1a3c6e49dc2825d213f105d1c47ec68f3c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprUseVisitor.cat_pattern: MethodTooLong \u2014 cat_pattern runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"e784c618b6041cc30b5b78d29db50ed0de030cb450cb9ef329712263f43511d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/token_stream.rs: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 62% of them inside a single declaration: TokenStream (6 blocks, 20-667). The bar is 500 significant lines; this is 49 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa467c90e54130ce3c8b605e3c9e664aa3e3e2fc1d5625840995ef20e2cf732"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/nameres.rs: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"190dd89e8553d93736125887126f509f4911830b9b6a609f4b883e47c22b64c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/render.rs: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef023651884227ddb0f1d180beb8cd8a38b2c539d20fc52144b8a9ae176fad6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rename.rs: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 46 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d977b6ae4ffbf8588eee7b49e8624513ac16fde24337a2ed735382df89887246"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/hover.rs: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 46 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8434c03d525f2e7f27c320640922f16bb79d083a6a66a6d2b434eb355ad664"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_db::imports::import_assets::trait_applicable_items: FunctionTooLong \u2014 ide_db::imports::import_assets::trait_applicable_items runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ac65d16fe2e76b62f303acd3c0b4cacd16d503961e4a4a318cb984072e7479"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: proc_macro_srv_cli::main_loop::run_old: FunctionTooLong \u2014 proc_macro_srv_cli::main_loop::run_old runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main_loop.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcba3cfbdf13b8e0c15184fbea8b06cb3bd884a27abea292d892f39553ae1e09"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DiagnosticsCollector: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 2 blocks, lines 748-1443. The bar is 400 significant lines; this is 34 over it, 1.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c34eb177fc88b4949b97428e20aae78d10d2d9bce03e23dc1214a834a228a85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/highlight_related.rs: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a47620a632e8092aedc9a5c9b713ba035e7e81be66b0442e4052abf294fe2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DbInterner.for_each_relevant_impl: MethodTooLong \u2014 for_each_relevant_impl runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72390c343e913b19daf2419502a774b821fc7786a950bc914f165b92aae9689"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::syntax_highlighting::highlight::highlight_name_ref: FunctionTooLong \u2014 ide::syntax_highlighting::highlight::highlight_name_ref runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"191048f0a8418f874e0c3cd5e56037685f0c05058526c0d3a65ce93d695a7acc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/extract_module.rs: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 38 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_module.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f772f1e131a7248cd8bae8d6846b40f58816d43572d157d7632eb06ffce97e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: expressions/atom.rs: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 38 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f804804ee78d8dd22755dc1bce9c28a78df550beae98f247f177774cbc56ed7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/hir.rs: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 34 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c122aa80fb953fe7082fa828cca3e9685de048c70ee0a5a6fdac5e4bd0566c21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: next_solver/util.rs: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84ccc7cd132d0746049286c86133a4df4f33232f5e93435b90d59fc4e2b7610"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/signature_help.rs: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6026499532a775aad5162c168dccf4e7e7aff15531c266d0e390ac4ecf994d5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cargo_workspace.rs: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15848570011eb4bf6e009319dadaf53ffde185dc38fb92b30e13c2cfdbb855f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: next_solver/generic_arg.rs: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/generic_arg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd5610009e4cb9d997b63e67641c3c77813261d916dc4be2821923039132cc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DeclValidator: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 125-776. The bar is 400 significant lines; this is 21 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c59ee67974371a23b8bc8ef93c1fa810174174cfd9fde8159b2ce34dad5451"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_expand::builtin::derive_macro::parse_adt_from_syntax: FunctionTooLong \u2014 hir_expand::builtin::derive_macro::parse_adt_from_syntax runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"48dbcfd74a5cbb3ddec983330932afbc19a264e82d47865fbd7907ab598af9e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MirEvalError.pretty_print: MethodTooLong \u2014 pretty_print runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/mir_pretty/errors.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9c268e9966710031b19f1ccf06f2e85072ec0831d6a93f1c12908f1f045c82"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_completion::context::analysis::analyze: FunctionTooLong \u2014 ide_completion::context::analysis::analyze runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cedbbaaf4eab7f7cfe077994e7861888d45a9869576ba5e3d8ea5a99e962a3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GlobalState.current_status: MethodTooLong \u2014 current_status runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"07986acd5367a138684576a9d7c52700cc040dd8bd8a0c46b1735bd8640e99a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Ctx: TooManyMethods \u2014 31 methods, declared across 2 files: item_tree/lower.rs (30), item_tree/attrs.rs (1). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8dcd67742ab3a3bff8b8fa1589a51d2ee6bf5355d3424b5be6fc45926f80f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: infer/unify.rs: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/unify.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29965342f6edfe2320d8e9eb113e6b538519a25ed86a3afe68b4f6fd1e4ea5a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GlobalState: ClassTooLong \u2014 412 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 51 methods, 3 blocks, lines 84-821. The bar is 400 significant lines; this is 12 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ddf35af9ace67a6cf87f4b27929ddb7b10b1226641e70bf0d2bf02f3328c8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExpressionStoreBuilder.finish: MethodTooLong \u2014 finish runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa8bb46cd50211a7649a9799625bcb0eaa7ab171eaf312a7a247809e8bc8409"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.resolve_all: MethodTooLong \u2014 resolve_all runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"69769a4ee4e9c23cb4ba4fdf70fb91bc4f463ac7ec02d3d912e44e27475b850a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TyLoweringContext.lower_ty_ext: MethodTooLong \u2014 lower_ty_ext runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"4634f055a1599eadb7377b9f203fa0af6155438d83c4e54124f2ce61f1e092eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProjectFolders.new: MethodTooLong \u2014 new runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a16adbb55c4c349dd24cc2b0fe1c9fe20c4b8077e179ff692bb3288aa6c2b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/matching.rs: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 72% of them inside a single declaration: Matcher (2 blocks, 100-649). The bar is 500 significant lines; this is 11 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/matching.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"522113873c7f6468c08b18a957ae391c6205c12b914438d84314a36dc4861da5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CrateGraphBuilder.set_in_db: MethodTooLong \u2014 set_in_db runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/input.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0e1fe7a62e0437fd8015d1fe372c3a8b9a3e842c360e1d6b5aa45e0bb71c82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExprCollector.lower_type_ref: MethodTooLong \u2014 lower_type_ref runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"1653f84ea9cb98a0514f870e1b387d2c0a8e75f05355c0d41808342d47838313"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::lower::resolve_type_param_assoc_type_shorthand: FunctionTooLong \u2014 hir_ty::lower::resolve_type_param_assoc_type_shorthand runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e59d65c32964df085cc7ae061a8fa09c0976bccbdde7f869d5ba24682eb5b60"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::utils::gen_trait_fn_body::gen_debug_impl: FunctionTooLong \u2014 ide_assists::utils::gen_trait_fn_body::gen_debug_impl runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ec57cecf19b394d8fb82e1ad7a1e564d2bb7b6ede2d5726cdc546ad1c289c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide::signature_help::signature_help_for_call: FunctionTooLong \u2014 ide::signature_help::signature_help_for_call runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6e6c7b901672823423300da8ec4242737d26d1df7825512b63a154ef2ad464"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/runnables.rs: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/runnables.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"833eb9df3f97ce496b36d340854330f06b3511ca7ec0a1d8691b2bf92a46ae1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: syntax_editor/edit_algo.rs: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edit_algo.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ccc8a5533e8b596e4a7f2e6081265a7b8f18b1d50e22acca3213d1496d8d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: diagnostics/decl_check.rs: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: DeclValidator (2 blocks, 125-776). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db353dce2e7b84188e2256273f68d66373ebe53e80a1ebc7c3c9d34962bc7a4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: attrs/docs.rs: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 6 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs/docs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c5344ae6d598c5124cb230a58dbfaf3fdb943eb2909f3eb71acf5b6049c75f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/generate_delegate_trait.rs: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 6 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2023a0184be24c7427068d5a18f545e51f7e2f6c9c83afc1a4bfb018274a8b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Printer.print_pat: MethodTooLong \u2014 print_pat runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"0551ee0b7e2a794a6520d1b10d9ffb2aaa24bcc19debb4cc0a7b81e178c1891e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ide::display::render_const_scalar_from_valtree_inner: FunctionTooLong \u2014 hir_ide::display::render_const_scalar_from_valtree_inner runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1347df26fb256732d08d79a2a8afac9e0cb87eaef2bfb3b5bd1c75c5f7f0be5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ide::display::write_bounds_like_dyn_trait: FunctionTooLong \u2014 hir_ide::display::write_bounds_like_dyn_trait runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9a6a01a5e5d4971d86b2b347067bcfa76de31ca85fbb1bb2804a379bf91ca5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.compute_min_captures: MethodTooLong \u2014 compute_min_captures runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fe016f2ffaf2bfd031190f6fa9409b1a0d07287f2468052f8b3b520e81d314"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hir_ty::infer::coerce::coerce: FunctionTooLong \u2014 hir_ty::infer::coerce::coerce runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac104bcf90ad1963cd4a4df326be8d65b03cc9e40c65fe880b8590b5d8b0228a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.infer_mut_expr_without_adjust: MethodTooLong \u2014 infer_mut_expr_without_adjust runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/mutability.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b33bfe8a9a6f93a3a80e78f116e4ebcdb015b9ac2c28316422e1a0bd9bcea96"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InferenceContext.infer_pat_inner: MethodTooLong \u2014 infer_pat_inner runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e601d3e64d1f7101034c14e3ef5f7f5755fd3d7d2296fe1ab0fe01d7d8f0f645"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ide_assists::handlers::add_turbo_fish::add_turbo_fish: FunctionTooLong \u2014 ide_assists::handlers::add_turbo_fish::add_turbo_fish runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_turbo_fish.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"283077fe9bba1d3f7f711495d7671c1dd2fab6d3f0097d6e6948dd2b41468421"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/doc_links.rs: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc00316a65ecfa4616fcf78e420534f3e225633a0278181d27ddcce809ce19c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"535d579d3d18f87d8c308db0435748644808a4a8bb6fa651f98533fc6951b1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): crates/hir/src/term_search/tactics.rs:411-508 | crates/hir/src/term_search/tactics.rs:603-687 \u2014 These two members are variants of one another: 41 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"83914dd5509e46c0462e31a6d09ad813ebc15b439b70a7f1575ed6e03a46d9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (19 shared lines): crates/hir-ty/src/consteval.rs:133-184 | crates/hir-ty/src/next_solver/ty.rs:690-719 \u2014 These two members are variants of one another: 19 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb08eebbe36011e0fcab4e279ecffb9211a84b047ac9d1a194064624bc0a17c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/proc-macro-srv/src/token_stream.rs:697-731 | crates/tt/src/lib.rs:435-484 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a598143971c63b9a1852c284c476a46ac35eb37d09caec1930c6e9f0f39f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/ide/src/interpret.rs:24-59 | crates/ide/src/view_mir.rs:14-28 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/interpret.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"47536c7882c2527958e99491b34a5a2e55a833a78aca8b8c76d7225140235a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:1569-1598 | crates/syntax/src/ast/syntax_factory/constructors.rs:1725-1744 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa8c6bbf16fb291c11f674e409f24720ec48f974dde43382b4f0ed624f27cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): crates/syntax/src/ast/syntax_factory/constructors.rs:54-64 | crates/syntax/src/ast/syntax_factory/constructors.rs:195-205 | crates/syntax/src/ast/syntax_factory/constructors.rs:314-326 | crates/syntax/src/ast/syntax_factory/constructors.rs:564-577 | crates/syntax/src/ast/syntax_factory/constructors.rs:602-612 | crates/syntax/src/ast/syntax_factory/constructors.rs:1059-1069 | crates/syntax/src/ast/syntax_factory/constructors.rs:1084-1095 | crates/syntax/src/ast/syntax_factory/constructors.rs:1097-1110 | crates/syntax/src/ast/syntax_factory/constructors.rs:1116-1126 | crates/syntax/src/ast/syntax_factory/constructors.rs:1128-1138 | crates/syntax/src/ast/syntax_factory/constructors.rs:1140-1151 | crates/syntax/src/ast/syntax_factory/constructors.rs:1185-1197 | crates/syntax/src/ast/syntax_factory/constructors.rs:1218-1230 | crates/syntax/src/ast/syntax_factory/constructors.rs:1303-1313 | crates/syntax/src/ast/syntax_factory/constructors.rs:1360-1370 | crates/syntax/src/ast/syntax_factory/constructors.rs:1372-1386 | crates/syntax/src/ast/syntax_factory/constructors.rs:1507-1517 | crates/syntax/src/ast/syntax_factory/constructors.rs:2232-2241 | crates/syntax/src/ast/syntax_factory/constructors.rs:2281-2291 \u2014 These 19 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 19 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bb98bc7fbc3f7376e8d9e85d739cf72fb50972713a3270d6a7dd77dc73d929"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): crates/syntax/src/ast/syntax_factory/constructors.rs:207-217 | crates/syntax/src/ast/syntax_factory/constructors.rs:877-887 | crates/syntax/src/ast/syntax_factory/constructors.rs:934-944 | crates/syntax/src/ast/syntax_factory/constructors.rs:950-960 | crates/syntax/src/ast/syntax_factory/constructors.rs:979-989 | crates/syntax/src/ast/syntax_factory/constructors.rs:1333-1345 | crates/syntax/src/ast/syntax_factory/constructors.rs:1347-1358 | crates/syntax/src/ast/syntax_factory/constructors.rs:1408-1422 | crates/syntax/src/ast/syntax_factory/constructors.rs:1457-1474 | crates/syntax/src/ast/syntax_factory/constructors.rs:1600-1611 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f48bac1a18387d283c4950fbc4ee557156467be29a2eaeef348c6921e8b6ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs:62-151 | crates/ide-assists/src/handlers/generate_default_from_new.rs:50-95 | crates/ide-assists/src/handlers/generate_delegate_methods.rs:54-238 | crates/ide-assists/src/handlers/generate_enum_is_method.rs:46-100 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:123-179 | crates/ide-assists/src/handlers/generate_impl.rs:14-29 | crates/ide-assists/src/handlers/generate_single_field_struct_from.rs:47-155 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd9b04d058cdc5738afc7ee93871ad07e4691741c479b5d17e769ccfbf32677"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/syntax/src/ast/syntax_factory/constructors.rs:120-136 | crates/syntax/src/ast/syntax_factory/constructors.rs:459-470 | crates/syntax/src/ast/syntax_factory/constructors.rs:747-757 | crates/syntax/src/ast/syntax_factory/constructors.rs:759-769 | crates/syntax/src/ast/syntax_factory/constructors.rs:889-911 | crates/syntax/src/ast/syntax_factory/constructors.rs:2007-2020 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5044791887ee1767685e3522db6ef59fe5634184b583d4c30142eab6a294e82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/ide/src/highlight_related.rs:311-388 | crates/ide/src/highlight_related.rs:394-459 | crates/ide/src/highlight_related.rs:494-584 | crates/ide/src/highlight_related.rs:589-660 | crates/ide/src/highlight_related.rs:790-821 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fde43a4cb17895caa2a1c14f95eb24b0b9d1d962eca7458baba057c709ba8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/hir-ide/src/diagnostics/decl_check.rs:322-392 | crates/hir-ide/src/diagnostics/decl_check.rs:415-480 | crates/hir-ide/src/diagnostics/decl_check.rs:503-570 | crates/hir-ide/src/diagnostics/decl_check.rs:573-643 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ceaf04154de15aa526eb8c49e9dd4ab44214b6ad407ca09e644deef8bcbaf1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/hir-ide/src/diagnostics/expr.rs:627-663 | crates/hir-ide/src/diagnostics/expr.rs:670-700 | crates/hir/src/source_analyzer.rs:2181-2206 | crates/hir/src/source_analyzer.rs:2213-2238 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/expr.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63afc1641b22598fc5a89ad380c19197ce5e676e1f2c6f4775f2c63b5925ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/ide/src/hover/render.rs:66-153 | crates/ide/src/hover/render.rs:161-217 | crates/ide/src/hover/render.rs:273-306 | crates/ide/src/hover/render.rs:977-1028 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c111b0d8b067dae0d67eba491af5bc854c86af5516924edb912b8b3b4c16880"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/rust-analyzer/src/cli/analysis_stats.rs:1498-1512 | crates/rust-analyzer/src/cli/analysis_stats.rs:1514-1528 | crates/rust-analyzer/src/cli/analysis_stats.rs:1535-1550 | crates/rust-analyzer/src/cli/analysis_stats.rs:1556-1571 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bbd5f8319f909078206fdc2571a278013d521b3e1cd6e7c5e3101e0902ded1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/syntax/src/syntax_editor/edits.rs:58-66 | crates/syntax/src/syntax_editor/edits.rs:70-82 | crates/syntax/src/syntax_editor/edits.rs:86-100 | crates/syntax/src/syntax_editor/edits.rs:104-112 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3015f98860254c970a0e1e7ff03605fbd8f7fc69e8eb764759a917c81187ce69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:504-582 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:652-725 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbaedb1a8dc0ead859329e6beb75482fec3a838f9d79555ff016022b3fd55fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): crates/hir-ty/src/next_solver/ty.rs:983-1030 | crates/hir-ty/src/next_solver/ty.rs:1034-1077 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"40541aefed626e59c228ade7db58ee26ed0ecf90fba24d8c3e01c4a22c848941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): crates/hir-expand/src/builtin/derive_macro.rs:1011-1063 | crates/hir-expand/src/builtin/derive_macro.rs:1069-1126 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeae42f932d234ea415c4cf489699bfa17146114da2bbbc98751608000f71e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): crates/hir-def/src/visibility.rs:159-214 | crates/hir-def/src/visibility.rs:225-280 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b2d997f4e316a3729bc85f6ccda7e70b476d3e949865158532e24c320b5e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:342-386 | crates/syntax/src/ast/syntax_factory/constructors.rs:1919-1970 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd34ae2f8a804214fcc6e173217d480dc477ada51e272711b1a4331e3f789285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): crates/hir/src/lib.rs:5438-5508 | crates/hir/src/lib.rs:5547-5604 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5438}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd72c302dafd36ba636d25860360b50f5e80113f41c6de1b1ccb680b0c9a1cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): crates/ide/src/inlay_hints/lifetime.rs:74-131 | crates/ide/src/inlay_hints/lifetime.rs:139-188 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2fadfcab7148762278b2524a4ecb4310d3463ee09a257bb8d6a413ee4b4ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crates/ide-assists/src/handlers/generate_deref.rs:45-85 | crates/ide-assists/src/handlers/generate_deref.rs:87-128 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_deref.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c34243acf4d719aa0f50ab81f0cf8f0ccfbcf948d3797ba3d41f3ba1bb8426"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/ide-assists/src/handlers/expand_rest_pattern.rs:171-211 | crates/ide-assists/src/handlers/expand_rest_pattern.rs:233-272 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/expand_rest_pattern.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdb9284242872fedca9dffd6263077a43a9856380b06ec43cd2cf7fab1c45cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 32\u002B corresponding lines): crates/syntax/src/ast/token_ext.rs:264-295 | crates/syntax/src/ast/token_ext.rs:308-339 | crates/syntax/src/ast/token_ext.rs:354-387 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/token_ext.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af0044502d9bc57871ea2efdddebe256308563a7f331074c7756fd34b524522"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): lib/line-index/src/lib.rs:266-349 | lib/line-index/src/lib.rs:376-448 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/line-index/src/lib.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28c2c6897beb8c61e1951ccb72400f6d2b36f1a16df7ad1d1d9dfeaca2ba1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/hir/src/lib.rs:3320-3358 | crates/hir/src/lib.rs:3361-3399 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3320}}}],"partialFingerprints":{"codehealthFindingId/v1":"b372ada652e9cc98802f7fdba893ddb29b5ff2bd7449702934db469ea44c21f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/proc-macro-api/src/bidirectional_protocol.rs:161-199 | crates/proc-macro-api/src/legacy_protocol.rs:86-142 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0deb63acba52e1fc711fc9283756ab796bc660ac7cde35f81e4487ab3e7d7944"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/ide-diagnostics/src/handlers/field_shorthand.rs:31-70 | crates/ide-diagnostics/src/handlers/field_shorthand.rs:77-116 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/field_shorthand.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cbe42535c80cc6361cb0565480e7624f94e05ffb2c6a779a998d00b173a0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/hir/src/lib.rs:4218-4246 | crates/hir/src/lib.rs:4248-4282 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4218}}}],"partialFingerprints":{"codehealthFindingId/v1":"115819c2c45da91ed974f876bc78ec9e8e0508c8d81ee595e30cfac444c1130b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/ide-assists/src/handlers/expand_glob_import.rs:44-79 | crates/ide-assists/src/handlers/expand_glob_import.rs:102-140 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/expand_glob_import.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b90fc90a1f2fb5b29e75e0766d1ffeae8375bdd38d3f13396ad34608f4b2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): crates/hir/src/symbols.rs:491-538 | crates/hir/src/symbols.rs:540-584 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/symbols.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e8ad86bb615e5de3cb7a4138a4f68d1df300eb138183074c13172dc9450d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/ide-completion/src/render/const_.rs:17-46 | crates/ide-completion/src/render/type_alias.rs:29-68 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/const_.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e6ea6c451b0e97503fa04a0d23f9adedb5d2bc7be94983285f8b5cda33f54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/hir-ty/src/consteval.rs:209-241 | crates/hir-ty/src/consteval.rs:247-279 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"0740730300d68e5a17cc7d86936467126cd700bbf3bed1a2ebb5d769a969f4d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs:36-81 | crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs:83-137 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa832c826b01de1e5cf9890164b02c8149682b129d504052703919e7a8fde50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/ide/src/inlay_hints.rs:90-124 | crates/ide/src/inlay_hints.rs:139-170 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c193b33dec88e031fc63b639c86d30b8230133b787aa4b0b5441fb32828e891"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/hir/src/semantics/child_by_source.rs:58-82 | crates/hir/src/semantics/child_by_source.rs:86-109 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/child_by_source.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c44cf286ef4029a00743449b4d6824a94f85728c8ccd802fe6165b47341632"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crates/ide-assists/src/handlers/convert_bool_to_enum.rs:348-394 | crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs:184-229 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"054e159cc60e2a9f5aeafd54ed33edcec49fb223c21bf31c51f4797573516778"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 22\u002B corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:164-193 | crates/syntax/src/ast/syntax_factory/constructors.rs:396-435 | crates/syntax/src/ast/syntax_factory/constructors.rs:1538-1559 | crates/syntax/src/ast/syntax_factory/constructors.rs:1796-1840 | crates/syntax/src/ast/syntax_factory/constructors.rs:1866-1903 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24c02af6ca0f21791b09180b8fc40d6083e7a16e0dea5bf52e90350e64e5fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/ide/src/runnables.rs:363-397 | crates/ide/src/runnables.rs:453-488 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/runnables.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afd080e2f54362cebf4f2028e1508f65a9ecc935a55f02c2fdc83a1555b70c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/hir/src/source_analyzer.rs:187-223 | crates/hir/src/source_analyzer.rs:232-273 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"91752233b62f828417ff24713c7a6c1cd7f77191952241144c21c8fe09f0a950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/hir-def/src/import_map.rs:459-493 | crates/ide-db/src/symbol_index.rs:549-579 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/import_map.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0be8aaaf753ab3309a3e0ae0acf20255983899881a445e11da6ef8fa7c63a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): crates/hir-ty/src/consteval.rs:459-491 | crates/hir-ty/src/consteval.rs:498-533 | crates/hir-ty/src/consteval.rs:538-566 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f14e615fa1cc504c23b4854b45a1122eccb5106f80e317897685b03982ff20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:132-168 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:208-244 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:250-286 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8baa845e59290e014c9f60ccd03f613ff313d3c82dd61dec830874430a28079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/ide-completion/src/completions/attribute/diagnostic.rs:14-52 | crates/ide-completion/src/completions/attribute/repr.rs:12-42 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/diagnostic.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e467ce68837cd80b7e9e22f4e760ae669c4a560ecc68da619fb8b300b335213a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/rust-analyzer/src/handlers/request.rs:1922-1956 | crates/rust-analyzer/src/handlers/request.rs:1961-1993 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1922}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbcb01024506ff3887e09a0c250595bd00a03e38999e53a07526dc4a0a89b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/ide-assists/src/handlers/move_from_mod_rs.rs:23-50 | crates/ide-assists/src/handlers/move_to_mod_rs.rs:23-50 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/move_from_mod_rs.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"938992e0ef1a9ea2230f0fce39f8ad9a687baedd4cc5a9614e06acf626f89fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/ide-assists/src/handlers/generate_impl.rs:48-77 | crates/ide-assists/src/handlers/generate_impl.rs:96-129 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_impl.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4064c85122b7acc6dcc370ed702804358c3e4eeae5c050bf4d6a6454e9ecd4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/ide-assists/src/handlers/convert_for_to_while_let.rs:119-148 | crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:161-190 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_for_to_while_let.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdbea27993bf7d7e64fde75701864802e6711ac4872781b43962e065d7479d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): xtask/src/codegen/diagnostics_docs.rs:32-58 | xtask/src/codegen/feature_docs.rs:31-57 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/diagnostics_docs.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4265686c6c06b0f45d2c9f613958f7ce0b4b3288d89c2dcc26be929ed8037f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/proc-macro-srv/src/token_stream.rs:525-567 | crates/tt/src/lib.rs:666-690 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8be5ba9cffde803eec778201d92783c1a114776af8847d5c7e21cfd16639713"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:288-316 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:346-370 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5601374cc89ba4f59127e9c7d61fcfcd440e0929844f879466bd5a074c6a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/proc-macro-srv-cli/src/main_loop.rs:289-320 | crates/proc-macro-srv-cli/src/main_loop.rs:325-354 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main_loop.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ab87d115d3c6c52b17efc292373a937d4a991ed9b7953113fd9dd3c7b8f3c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/syntax/src/syntax_editor/edits.rs:213-242 | crates/syntax/src/syntax_editor/edits.rs:372-393 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a3c3b97f80c87d2ab8af51737fd5625973f5e01909f0d2ce70ccedc8df64ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/hir-def/src/item_tree/lower.rs:67-100 | crates/hir-def/src/item_tree/lower.rs:102-126 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd48db315f5a20298a2033cb2623d44e17c3a74f08b2556241e39e8e3fb47e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:669-688 | crates/syntax/src/ast/syntax_factory/constructors.rs:1482-1505 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77ff254eea76d054b0a0b983cf999f14bb84f7a1ea88c213002553e34d07cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): crates/cfg/src/lib.rs:201-235 | crates/cfg/src/lib.rs:244-280 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cfg/src/lib.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"53370e4bd7449115030f3659c1de06aec70cb2ba265cd00fd7cf1e31e42c42aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/ide-db/src/helpers.rs:39-58 | crates/ide-db/src/helpers.rs:64-83 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/helpers.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc8585de4b872a55f74ac4e6163b22257ee96910c8624e778d1102259ffdab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crates/hir-def/src/resolver.rs:805-842 | crates/hir-def/src/resolver.rs:853-892 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1d9c4f21df08c4326bd226f5da93ad78172233d69e33010bd9a83973104fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/hir-def/src/signatures.rs:177-210 | crates/hir-def/src/signatures.rs:253-287 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/signatures.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7d3d7986fed798a5c26a429c7ca54a7c1bc476fc7b8d419a7d797c21a695dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/ide-assists/src/handlers/flip_or_pattern.rs:24-40 | crates/ide-assists/src/handlers/flip_trait_bound.rs:20-42 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/flip_or_pattern.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b31ca39432ef9b0d2c93169489f736519f0f5618dbd06f814d9c2d806671b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir-def/src/item_scope.rs:366-378 | crates/hir-def/src/item_scope.rs:385-421 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"579f96371e323faabedd21a89081f3cb72b995744f5311348feebeb3c25d1d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/hir-ty/src/infer/expr.rs:74-97 | crates/hir-ty/src/infer/expr.rs:289-314 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d956616621339f9d5a128d9680f0387e20abc2b16ec2a2b6eaebbd59b154cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/hir-ty/src/next_solver/util.rs:669-699 | crates/hir-ty/src/next_solver/util.rs:701-728 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e46840ce8323311b19fbb5487ad50f4e0779d2e8b95820e18a7251634fc8833"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/hir-ty/src/next_solver/def_id.rs:246-265 | crates/hir-ty/src/next_solver/def_id.rs:272-291 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/def_id.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c647292137a2999ec3999a5da7c625894f48e79edb36f119778ece532a5c262"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:528-545 | crates/syntax/src/ast/syntax_factory/constructors.rs:995-1022 | crates/syntax/src/ast/syntax_factory/constructors.rs:1028-1053 | crates/syntax/src/ast/syntax_factory/constructors.rs:1236-1253 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2265f79ce5d87699ab7181af2a97f65addcfcbec21eb8a191313edfce0e139d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/hir-ty/src/layout/adt.rs:123-155 | crates/hir-ty/src/next_solver/util.rs:180-215 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout/adt.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b93c3ab3f8e478ad8ca7a128b210fb9a4955ecc72e8964f78b3f06c5239431"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/hir-ty/src/next_solver/normalize.rs:178-202 | crates/hir-ty/src/next_solver/normalize.rs:204-228 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/normalize.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5c2517f1b0d3359125707c7c004e16fffbb9fd8693d874b5f26a7b821aa094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:643-661 | crates/syntax/src/ast/syntax_factory/constructors.rs:1158-1170 | crates/syntax/src/ast/syntax_factory/constructors.rs:1280-1301 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6007038b09782220e5c26386755813eccafefdaba737d72fbc892a15b74eb7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/rust-analyzer/src/handlers/request.rs:1998-2023 | crates/rust-analyzer/src/handlers/request.rs:2070-2091 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff8885d478317b1bc54eb87d52c9c30be8dbb5710e3a2c2942e166daf4293c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): crates/span/src/map.rs:155-183 | crates/syntax/src/lib.rs:211-239 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/map.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2748b9ccce0c99ac8e30be3d5ec812327fa46ac3203300f68081739c188bb52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:962-977 | crates/syntax/src/ast/syntax_factory/constructors.rs:2339-2356 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c493a364e9a84bcc00e023324da640b4bcba2a66c30fc94d3c095ff80f2683"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/ide-assists/src/handlers/apply_demorgan.rs:261-280 | crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:210-231 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/apply_demorgan.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac78e65c87e025337d3315cc5df300c4ed0180de8b858be21f4e2bbd117e469f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/ide-assists/src/handlers/generate_getter_or_setter.rs:38-75 | crates/ide-assists/src/handlers/generate_getter_or_setter.rs:180-215 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_getter_or_setter.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3aa79965d0238231a2344af114ba2807b6ca313684777cf72dfc07f9bd9001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/ide-diagnostics/src/handlers/unresolved_field.rs:27-53 | crates/ide-diagnostics/src/handlers/unresolved_method.rs:22-50 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1b5c1046eba25c34c95890abd52bd9d1628af03e52e2d6ce648f1f865781d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/ide-completion/src/completions/snippet.rs:16-49 | crates/ide-completion/src/completions/snippet.rs:56-118 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/snippet.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d8ec30223ffb73405831dcdee6eee59c190ac795e4300ef278672049e46204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/ide-diagnostics/src/handlers/type_mismatch.rs:388-405 | crates/ide-diagnostics/src/handlers/type_mismatch.rs:412-429 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7110f59281bbc5ad1ed770d0658d7c8238bba8856c3882bc1550f99cb6bdbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): crates/hir-ty/src/lower.rs:2509-2537 | crates/hir-ty/src/lower.rs:2539-2561 | crates/hir-ty/src/lower.rs:2563-2586 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81d7ee745aad5183d5157dcc9433250be179d63afb9f06448d3ce8d7e907233"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/hir/src/semantics.rs:1160-1179 | crates/hir/src/semantics.rs:1186-1205 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eecc4448edb19349d04128baaeced00ac2da16c4489b1a5fb6d8e1cc44d29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/syntax/src/ast/edit.rs:90-105 | crates/syntax/src/ast/edit.rs:107-123 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/edit.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d9e9b114feb41c58b580129fe5f65e76fa5353982ec026eccdd54e206d20d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:159-174 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:148-165 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"470ffb9e4a2f90264b83eb1c45ee8d4552ccbfda81c7aabb28b1eed9381881a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/ide-completion/src/completions/postfix.rs:526-546 | crates/ide-completion/src/completions/snippet.rs:137-156 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf100b94792f4605955cff6fd520a8b36ac416e15df3718297f95e961e63146"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/ide/src/syntax_highlighting/escape.rs:36-61 | crates/ide/src/syntax_highlighting/escape.rs:67-90 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/escape.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1034bc35347ec48a92eb07425901523d98e795290d91131a71a276afb4ce3d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/hir/src/display.rs:412-425 | crates/hir/src/display.rs:429-442 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5a42446cd06a01f2047ff78b147966cfc7c2a877dfdcd5cf1c782dc9b6a940"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/ide-db/src/syntax_helpers/node_ext.rs:178-202 | crates/ide-db/src/syntax_helpers/node_ext.rs:206-231 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0c4e1df66d33553ad83d6d49cb8b971e42745117422a7af861be7969d78002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): crates/intern/src/intern.rs:48-72 | crates/intern/src/intern.rs:75-99 | crates/intern/src/intern_slice.rs:52-87 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/intern.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee3e5896ef050639fd33ea4ba1e37a05f1bb0bd916c161b9775b178c1308a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:174-198 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:292-316 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:323-347 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2218b6190694ca6d9525551ca3abf61d68bfa2ad0223af95544f7fc713b0d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/ide-db/src/use_trivial_constructor.rs:16-39 | crates/ide-db/src/use_trivial_constructor.rs:47-70 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/use_trivial_constructor.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bffa4ec97f82895d0e394a597774d4bd9df899f1464c6b98e5b56763aa3479c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/rust-analyzer/src/config.rs:3650-3671 | crates/rust-analyzer/src/config.rs:3678-3699 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":3650}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c9695129d63861a47fbf49deae23cddd1b21f9a679d6d63545bf9c34b559ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/hir-ty/src/next_solver/consts.rs:301-314 | crates/hir-ty/src/next_solver/consts.rs:318-331 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9436f940ce4aa997b8ff9bdaf2abb257de011376586e98faf8a45b6c179925c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/hir-expand/src/builtin/derive_macro.rs:459-483 | crates/hir-expand/src/builtin/derive_macro.rs:616-638 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bae226e65cd9804d3ad49e2a230397fcb4ae2c147a5d3f20f2417a22c4660d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/ide-assists/src/handlers/raw_string.rs:27-46 | crates/ide-assists/src/handlers/raw_string.rs:63-83 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/raw_string.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"594dd2887dd307d25c75c9e8ca885611f34e1aee32f13ee6e73fc6313b62b249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:618-636 | crates/syntax/src/ast/syntax_factory/constructors.rs:864-875 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe0605fbb434be2d623f723ba6de7e6afeb789d96e0f8220bbf1992b3841678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): xtask/src/publish/notes.rs:202-224 | xtask/src/publish/notes.rs:226-247 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/publish/notes.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b64c34dc98e78d464dee83e5007de0234c98fd6e002107d10ee1674abca255"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/hir-ty/src/mir/eval.rs:2913-2933 | crates/hir-ty/src/mir/lower.rs:1843-1863 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2913}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad2d6d1ab650a4d0d3e358abff1e4d17f7ddfe84e0353887fbc7087f9174e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/ide-db/src/imports/merge_imports.rs:871-900 | crates/ide-db/src/imports/merge_imports.rs:905-936 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc771c39b820eb1d007f93437388f65a48cff98bb88466d6f3535b35a4e80af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/hir-expand/src/lib.rs:1426-1440 | crates/hir-expand/src/lib.rs:1449-1463 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c408d3927086e747c98a8159a8d6ee23288a621b9912406291f692c800c2467"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/hir-ty/src/lower.rs:1665-1683 | crates/hir-ty/src/lower.rs:1697-1714 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce013b3ce38ddb48e476d4eca5085b771ec6de718e7ba63b0cf73d5f146b7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/hir/src/lib.rs:3903-3919 | crates/hir/src/lib.rs:3921-3936 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3903}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f844b6f321ebd2348fd2be431e76883787300f9fe1242107ce882961ed95165"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/ide/src/doc_links/intra_doc_links.rs:16-36 | crates/ide/src/doc_links/intra_doc_links.rs:38-52 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links/intra_doc_links.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03b0303ac669f0306f2d2d0040a75b5d48a0d4c8806ae20d3119c28cf752acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/syntax/src/validation.rs:401-412 | crates/syntax/src/validation.rs:415-426 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4d610e7891165d690a8197e1a3dd5b92c45ead158051acc31aed7e7b148817"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:441-457 | crates/syntax/src/ast/syntax_factory/constructors.rs:706-721 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"57aba3a54e2381eb4ce8c91ebdd5cdb135cf484d5f6e949730a6d2146231c1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/syntax/src/algo.rs:77-90 | crates/syntax/src/algo.rs:92-110 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/algo.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d36b64b3b05f29b2fd4c4fd138d69d5510572269413bb12b1422b46db4cbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/base-db/src/lib.rs:406-431 | crates/stdx/src/panic_context.rs:18-40 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/lib.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5a7836d80451008a6623618be45b4af661c0807eb24147c484043276f7f314"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/hir-def/src/attrs.rs:741-762 | crates/hir-def/src/attrs.rs:1205-1223 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6580a37b5dc827e5f9b78c1b26f2abfaf29d0f80e39a546979ee5aeef7b0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:1975-1987 | crates/syntax/src/ast/syntax_factory/constructors.rs:1993-2005 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a989de39968ee26f655247ee87baa430ddd72075903761ff0d55bd2349ed39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): crates/ide/src/navigation_target.rs:688-705 | crates/ide/src/navigation_target.rs:760-777 | crates/ide/src/navigation_target.rs:784-809 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4b9b597beac36ac64abaf30cc9712315a1292757ddcdf7d181d54057590579"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/hir-def/src/lang_item.rs:176-194 | crates/hir-def/src/lang_item.rs:201-215 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adc28409a2766a20a5f0904fd49235f730e443436dc5d48ab86f0c6be3a5404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir/src/source_analyzer.rs:537-547 | crates/hir/src/source_analyzer.rs:553-570 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"704574ae5d939eec8114a05991a1f31c0cf145f3a6e603dd95c02ecba1cfefa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/ide-completion/src/render/pattern.rs:179-201 | crates/ide-completion/src/render/pattern.rs:208-230 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/pattern.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bd6a07f59bffa824d2762eb234c42a0697bf86c50e62160eb02d5b986c8adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir/src/lib.rs:5927-5939 | crates/hir/src/lib.rs:5941-5953 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5927}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b77480fc8825faa8d9235a951ddc6b6bb84836c59cc3173e7a61e61b20f7278"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/parser/src/grammar/expressions/atom.rs:772-801 | crates/parser/src/grammar/items/traits.rs:84-102 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ca7926d57f1b46c8d289dc03c83436bcee9808006859092f27412e0d1261af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/ide-assists/src/handlers/generate_from_impl_for_enum.rs:156-167 | crates/ide-assists/src/handlers/generate_single_field_struct_from.rs:226-236 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_from_impl_for_enum.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2d7dce9fc05860670f38622d57829edf7c4cb083d3805a7403b4273f9e2741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/hir-ty/src/next_solver/generic_arg.rs:108-125 | crates/hir-ty/src/next_solver/generic_arg.rs:128-144 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/generic_arg.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5aafde1ca99f8be3d66ac28ad44a4180d2aaac2a3d7fe8969f7e6761f2af6d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/hir/src/source_analyzer.rs:1630-1649 | crates/hir/src/source_analyzer.rs:1671-1690 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad9741f741ef8bbec55e650d5cc30bfc293b8db6968d4c622fd48de7788ef48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/hir-def/src/nameres.rs:349-366 | crates/hir-def/src/nameres.rs:789-803 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec007be97d6153fe60f0cf38e0cc186662bf8b1d28eded86c1a467e1c1b5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/hir-ty/src/lower.rs:1504-1522 | crates/hir-ty/src/lower.rs:1836-1853 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccc00e61011dd1f19af2807f03c94e0197884fbeba05b28448c7cf60c8e7922"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/smol_str/src/lib.rs:1052-1073 | lib/smol_str/src/lib.rs:1076-1100 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/smol_str/src/lib.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d418263187b52641fecd0951ed2c419a469ecdb94fb42900d0277e260c41df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): crates/hir/src/source_analyzer.rs:1512-1522 | crates/hir/src/source_analyzer.rs:1528-1539 | crates/hir/src/source_analyzer.rs:1545-1556 | crates/hir/src/source_analyzer.rs:1562-1573 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"e217b97119e703f788fdaba87b46d25ba9d8fae7a50688504a15a2e294291474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/syntax/src/ast/make.rs:1380-1392 | crates/syntax/src/ast/make.rs:1400-1412 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8021aeb1af2758645587b73731b496a9847212c44e8118ab224c38b88f569c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/hir/src/lib.rs:469-483 | crates/hir/src/lib.rs:486-499 | crates/hir/src/lib.rs:501-514 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1c53dc8f6b09b39a078a8f469ad79684f0c7977b3d8aca93c7c2cf22662ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/hir-def/src/expr_store.rs:790-807 | crates/hir-def/src/expr_store.rs:825-842 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"c634eff64e1eaa570e1c60928e68076ba856b4542fb8aed1929ab2591f7de03f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/ide-db/src/search.rs:161-176 | crates/ide-db/src/search.rs:179-193 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a82c28b26ab913dc0e6b5bd49ac56d5783707bf99f98d3aff2164a18f1ca0a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/stdx/src/thin_map.rs:919-937 | crates/stdx/src/thin_map.rs:940-963 | crates/stdx/src/thin_map.rs:966-979 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/thin_map.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aeaf50b43f0707a1edd9716078cc0f8d3b7756615ce4f5456bd91085ccac464"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/hir-ty/src/lower.rs:1720-1735 | crates/hir-ty/src/lower.rs:1741-1756 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ba96f3f7651e1c1aace5af7d1e3311b0f8f53bf49b6e64922e798ea091a1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/ide/src/inlay_hints.rs:725-738 | crates/ide/src/inlay_hints.rs:740-753 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b005b82ed560f98af41300467ccee2c860da42b09d57be99defe06ef938d35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:547-561 | crates/syntax/src/ast/syntax_factory/constructors.rs:827-841 | crates/syntax/src/ast/syntax_factory/constructors.rs:1388-1401 | crates/syntax/src/ast/syntax_factory/constructors.rs:1638-1650 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fb9c43deb5aac2a77e501c57b92c600ca159481d421d4e735d5243f325db76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/hir-ty/src/mir.rs:184-195 | crates/hir-ty/src/mir.rs:200-211 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b358685905fd564c713986338a2f2c0f336277f217999de666ed5a1416d6b017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/ide-assists/src/handlers/generate_enum_is_method.rs:107-127 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:186-208 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_enum_is_method.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bab1e119f2cd33a7887e4e662fda46f58f251f92e7ce5061dbee286afa7f7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 12\u002B corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:587-600 | crates/syntax/src/ast/syntax_factory/constructors.rs:792-803 | crates/syntax/src/ast/syntax_factory/constructors.rs:809-821 | crates/syntax/src/ast/syntax_factory/constructors.rs:1071-1082 | crates/syntax/src/ast/syntax_factory/constructors.rs:1655-1666 | crates/syntax/src/ast/syntax_factory/constructors.rs:1705-1718 | crates/syntax/src/ast/syntax_factory/constructors.rs:1749-1762 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8095dd4d9fbc74c0093d445f6bdf0b558dc3a4ff86aaa65e88921c1b75879f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:779-790 | crates/syntax/src/ast/syntax_factory/constructors.rs:921-932 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bafa70660279f817b9e02f90d6ef3b3eb49c9b4c44bde4fa80d48dd261636b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): xtask/src/codegen/diagnostics_docs.rs:11-22 | xtask/src/codegen/feature_docs.rs:11-21 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/diagnostics_docs.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56e6f14d6faed90a76fd46a2f8274266598c14f22a7c043481c73054db45043"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crates/rust-analyzer/src/handlers/request.rs:447-462 | crates/rust-analyzer/src/handlers/request.rs:841-853 | crates/rust-analyzer/src/handlers/request.rs:901-913 | crates/rust-analyzer/src/handlers/request.rs:918-929 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d2113e466875cb7a6afd4e6b554c06735e6f58daaed73e78d38ef16ad7b78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/syntax/src/ast/node_ext.rs:529-539 | crates/syntax/src/ast/node_ext.rs:560-573 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b3358f165c4f9a0b71c5a00ab0246930475e32574e4f5f7663098a4a9568cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/span/src/map.rs:58-66 | crates/span/src/map.rs:74-85 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/map.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4052fc663baa3973369c4e34414dc970197e278ff6ccd99bd84291c16411e825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:472-482 | crates/syntax/src/ast/syntax_factory/constructors.rs:1519-1529 | crates/syntax/src/ast/syntax_factory/constructors.rs:2358-2372 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ad6ad45efafc36fcd9044cd48cc0cea772a870072fd0a20d034117b92ec568"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/syntax/src/ast/syntax_factory/constructors.rs:2022-2032 | crates/syntax/src/ast/syntax_factory/constructors.rs:2034-2044 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7301b0bb86cede238ff2d5f10829243d3688fd6b3902f1689d675f78bc86e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/line-index/src/lib.rs:147-161 | lib/line-index/src/lib.rs:164-178 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/line-index/src/lib.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9d38035294b74bc85cc44bbd12121069b02720859ee33b7decd914591d1014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/hir-def/src/visibility.rs:47-63 | crates/hir-def/src/visibility.rs:70-93 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2180a76aa76da52a4344ec36a411d539ace3e06ea7ec4108efd83f9a57dd412f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/rust-analyzer/src/diagnostics.rs:91-102 | crates/rust-analyzer/src/diagnostics.rs:131-147 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6511ffbb46ace7ce817cdf425a465cf6d0d5113cf823c80d61bbe37ebffa3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/hir-ty/src/infer/unify.rs:369-385 | crates/hir-ty/src/infer/unify.rs:391-409 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/unify.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d92a511d4afe44b719c474927f046f084c7c0740005d40c9c42d40b557b485"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/tt/src/storage.rs:173-184 | crates/tt/src/storage.rs:706-718 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b209acfb4e2dcc3b399fd8ef1a97dd5e00ebc1fff5eb0c1a006b408b52137b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/ide/src/inlay_hints/extern_block.rs:39-49 | crates/ide/src/inlay_hints/extern_block.rs:57-67 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/extern_block.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f801b917503a8433f7cbcc88a41898e2c4e434bd6b97cd492f1125bf9d4cb055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/hir-ty/src/next_solver/interner.rs:768-783 | crates/hir-ty/src/next_solver/interner.rs:785-799 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"962f645f5ad9e20c207395d00a0ecdad8c70f26b57935f13dc91937412b247db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/ide-assists/src/handlers/introduce_named_lifetime.rs:132-146 | crates/ide-assists/src/handlers/introduce_named_lifetime.rs:191-205 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/introduce_named_lifetime.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbadff062c1228631ec08cb9786a454ffea7fbdbf56675056dbd939fc614ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/tt/src/storage.rs:120-129 | crates/tt/src/storage.rs:161-170 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"468c5c0f48f7b8dba3441ee1c9bedf823436a65e6818b6ebdc3d1c20899453ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir-ty/src/mir/eval.rs:2041-2056 | crates/hir-ty/src/mir/eval.rs:2058-2070 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07e5b77b4014b93b4beffebb6ae61ba27bed1577e4c539fe33c0d5b58fd0176"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir-ty/src/next_solver/interner.rs:1185-1197 | crates/hir-ty/src/next_solver/interner.rs:1199-1212 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d03c626baa032cd681ec4d77f64800631a6c58cff4a57ba8997549f9873db2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/syntax/src/ast/make.rs:245-255 | crates/syntax/src/ast/make.rs:262-272 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96d36ff352366a5396d47530a685cdf9d85ac7b2cd82927ea007c519e089c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/tt/src/iter.rs:173-186 | crates/tt/src/iter.rs:250-266 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/iter.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b8ab66d60ebcfcdee9df9131d195c943c2ef7bbebe50c33224f1db4f1991a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/hir-ty/src/infer/place_op.rs:194-216 | crates/hir-ty/src/infer/place_op.rs:224-249 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59fd0bb8c93f1501775eaaf6465bfbbdc6212f4d374cf6bcb35175033e497e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/cfg/src/dnf.rs:126-142 | crates/cfg/src/dnf.rs:166-182 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cfg/src/dnf.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9076142172b3b7ec8955ffcf4fb7191a76af6292ccb3dbcd34cf39f3e2fc7ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir-ty/src/infer/closure/analysis.rs:1227-1239 | crates/hir-ty/src/infer/closure/analysis.rs:1242-1254 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbf7704aba2ad687de325c3c7abb2f8b49b1addf6b78ac8989ad11117563ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/hir/src/has_source.rs:179-188 | crates/hir/src/has_source.rs:240-249 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/has_source.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"468fb0c90aaffe342146fcb1045e8802a3eda27d9f2a5743f980abff852d24aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): crates/syntax/src/validation.rs:326-340 | crates/syntax/src/validation.rs:342-356 | crates/syntax/src/validation.rs:358-372 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8eb17622750bf5854237295a5069255bd9208912d2ca45cee3b8478a425b3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/hir-ty/src/next_solver/fold.rs:81-98 | crates/hir-ty/src/next_solver/fold.rs:122-133 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/fold.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d4057be23702a47fa13abaacfde3a0c804e9e70b91bf52bc3babb00859d69b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/ide-assists/src/handlers/merge_imports.rs:90-108 | crates/ide-assists/src/handlers/merge_imports.rs:114-128 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/merge_imports.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a36e3ee60ac1047e4cc06d5b61fc0f3e20357ff55fd1cc76bf09d2be764835"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir-def/src/attrs.rs:83-97 | crates/hir-def/src/attrs.rs:99-111 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a98c282e475073e849a6abc86cb10b54bdc81c50eed4c4ff4dcb2769ad357e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/hir/src/lib.rs:4878-4896 | crates/hir/src/lib.rs:4929-4945 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4878}}}],"partialFingerprints":{"codehealthFindingId/v1":"655e04e5e0a11121aa5f5368fbfed1b3b8b5021f2af3c534d6923a0fb464fb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/ide-diagnostics/src/handlers/type_mismatch.rs:484-493 | crates/ide-diagnostics/src/handlers/type_mismatch.rs:495-504 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b974f79360e88607528278af99c5cc25e8e31a17369ec5c8458cc58a78bde5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/proc-macro-api/src/lib.rs:156-166 | crates/proc-macro-api/src/lib.rs:182-193 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/lib.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e492bd8e133045996eb3d67012beef5fea6da2a0b12498f752c324cdb084f095"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/syntax/src/ast/edit.rs:139-149 | crates/syntax/src/ast/syntax_factory/constructors.rs:101-114 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/edit.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf745ddd3a9f4fe096d447f1df63b0009451a06e8f51118751a5811ded1882b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): crates/hir-ty/src/db.rs:379-396 | crates/hir-ty/src/db.rs:408-426 | crates/hir-ty/src/db.rs:438-455 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/db.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c8106d5ac3d0cc86f56f62c0853aaa02432db36930c49e3053dddd9e3b9fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/hir/src/has_source.rs:119-125 | crates/hir/src/has_source.rs:129-135 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/has_source.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b241f18b367e1e75825a77e524b4a64f3659375986ef3e5e56723ffe8857d158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/ide-assists/src/handlers/add_missing_match_arms.rs:548-553 | crates/ide-assists/src/handlers/add_missing_match_arms.rs:583-590 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"28883b6f841ce5e28fcaa74f372b44824546f82e317bf3b71d944718cf1b1058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/vfs/src/vfs_path.rs:86-92 | crates/vfs/src/vfs_path.rs:94-100 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs/src/vfs_path.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b68b76ca985d5d66bd1329f58536388400bb235d9d31eb46acbda60a3a65ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/hir/src/lib.rs:5362-5375 | crates/hir/src/lib.rs:5518-5532 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5362}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ef54c4764e9654e642a41bfb0c72525cc24292d32a6b34faef138447d9df9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/proc-macro-srv-cli/src/main_loop.rs:237-247 | crates/proc-macro-srv-cli/src/main_loop.rs:274-284 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main_loop.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9454d117f7e725a911a3e13151894627cde2c32c6107c2a38af38a795ecfdca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/test-utils/src/lib.rs:423-434 | lib/expect-test/src/lib.rs:730-741 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-utils/src/lib.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8999cc84ae29e6284eb71507fb47d54f7406db31c8a89cd78f95544fc8cbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir-expand/src/lib.rs:1321-1331 | crates/hir-expand/src/lib.rs:1340-1350 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8fcb705ddef752da858e26cd7ca3733ecfe0b7e63b739eab7b7f4168a6a725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir/src/lib.rs:2559-2569 | crates/hir/src/lib.rs:2572-2582 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":2559}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9103702979952533f614601675715c3acdef73a2eee53a3204299973336f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/ide-diagnostics/src/handlers/remove_trailing_return.rs:15-37 | crates/ide-diagnostics/src/handlers/remove_unnecessary_else.rs:24-41 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/remove_trailing_return.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"140b7b8270cd844e1669d538d8d879a46391a025a37a993e0cbb947e0a76bf4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/ide-db/src/imports/import_assets.rs:376-388 | crates/ide-db/src/imports/import_assets.rs:391-403 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1ed037c9626100a4d6c8120921826d1403413f31552baebaa9708b4103d430"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/parser/src/grammar/expressions.rs:654-671 | crates/parser/src/grammar/items/use_item.rs:87-108 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1156751d6388ea18381e179c6ce9fd17dc458cd4a741275f80a6d4d5aae2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/rust-analyzer/src/lsp/capabilities.rs:522-533 | crates/rust-analyzer/src/lsp/capabilities.rs:535-547 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/capabilities.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b850f134b70d7db7393ce7254b4b2132695db69b02fdff8793b3cb9235ab739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/hir-ty/src/mir/monomorphization.rs:83-90 | crates/hir-ty/src/mir/monomorphization.rs:92-99 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/monomorphization.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb78adb29006ca80a1b5ddaa816624b61f7bed77ee548f6e5462e018a05fa7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/hir-ty/src/next_solver/opaques.rs:104-121 | crates/hir-ty/src/next_solver/opaques.rs:122-139 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/opaques.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a26cf57e89b60a7bc1341a3ab5c4940ff77dd3f66daf2f3773001dbd3c2a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:370-379 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:389-398 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68b8c7eed974cc4c936efff1d8733583841f621d531bc89f92097932e4fac10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/hir-ty/src/next_solver/consts.rs:54-63 | crates/hir-ty/src/next_solver/predicate.rs:201-215 | crates/hir-ty/src/next_solver/ty.rs:76-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4437e17bd9a548facccb34db29046df84729f41ba1f56b42210b4dec1072df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/intern/src/gc.rs:136-144 | crates/intern/src/gc.rs:149-157 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/gc.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d23eed529156b18c53616f2336c884c2d3e9a81e7524219f328d0b5896522f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/hir-ty/src/infer/closure.rs:340-349 | crates/hir-ty/src/infer/closure.rs:354-365 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"5513a33891e80960e9f78455daa09a8ae7253f3edc6fabf014307f322519f0c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/hir-ty/src/next_solver/infer/mod.rs:1009-1019 | crates/hir-ty/src/next_solver/infer/mod.rs:1021-1029 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/mod.rs"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"79199639178f2bb8d601a493bc81cbd68499f3d2258318d38afdf177d7b34b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/hir/src/lib.rs:5722-5731 | crates/hir/src/lib.rs:5737-5746 | crates/hir/src/lib.rs:5748-5757 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e44245eb0a9442771599abb7e8747a8ecc498a81e8cad6b243d865fb59b58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/base-db/src/input.rs:521-537 | crates/base-db/src/input.rs:777-790 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/input.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d158466d8ee0f60bae562e3d8e55f3c5dd619a8373fa59b5ce0cf44655d3773"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): crates/hir-def/src/lib.rs:914-914 | crates/hir-def/src/lib.rs:1061-1061 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d494888becab885a68fadeadb3940c4cc8ef904a492dacf83446ea914d2cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/hir-def/src/nameres/collector.rs:683-700 | crates/hir-def/src/nameres/collector.rs:747-756 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d8e70db849f26b456f2153168b2aecb9a6eae54e6a9b7cecd4551160928569"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/syntax/src/syntax_editor/edits.rs:250-258 | crates/syntax/src/syntax_editor/edits.rs:266-274 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bf7b248159618967a06bf5c13a72a5dd9e0285b7272cc171166457ea249891"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/ide-db/src/active_parameter.rs:182-189 | crates/syntax/src/ast/node_ext.rs:58-65 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/active_parameter.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e03067c2231cd151ab5f29a9183f7ed235e30c9a31cc3d315af3ccd1751ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/syntax/src/ast/make.rs:491-499 | crates/syntax/src/ast/make.rs:1007-1015 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f633baf6d77b4482d8dbcac2a37208503f48097251ba72188beaefee3a0481e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/syntax/src/parsing.rs:12-19 | crates/syntax/src/parsing.rs:25-32 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/parsing.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec23dbb1a3759cd6752e315c7cc446d61e1e8af82f2fa3b6eba6a71daaaf9c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/hir-ty/src/next_solver/generic_arg.rs:709-726 | crates/hir-ty/src/next_solver/generic_arg.rs:728-742 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/generic_arg.rs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d09f418974971d185faaf397f45740cc7a3dcccf6f2fd4b3540f7751ba353c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/ide-assists/src/handlers/extract_function.rs:1604-1621 | crates/ide-assists/src/handlers/extract_function.rs:1642-1655 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a021084777bb1d2e347b99546b9fad17dd729fe66ce31c08ddcd9ef3421c46f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crates/hir-ide/src/diagnostics/decl_check.rs:301-319 | crates/hir-ide/src/diagnostics/decl_check.rs:394-412 | crates/hir-ide/src/diagnostics/decl_check.rs:482-500 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7631326d8b4afb1120a9ca8e9a7d331bcf684eeb4570a28681698daba6e7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir-ty/src/lower.rs:2715-2728 | crates/hir-ty/src/lower.rs:2733-2743 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2715}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc5db4a38e76a806e4c3fcb98d8776e8d476e24429917a226584cea476c6cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/ide/src/inlay_hints/param_name.rs:191-223 | crates/ide/src/inlay_hints/param_name.rs:232-254 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/param_name.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f378e246675633c67bf1b32f2228bf13b7640430ec5b4959d2665733ed2d462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/hir-def/src/hir/generics.rs:385-393 | crates/hir-def/src/hir/generics.rs:395-403 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/generics.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9efb2ac055478022d85a389ec30a992b4db3c53dbf052ffc9ad4f8a754cf47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/hir-ty/src/builtin_derive.rs:467-481 | crates/hir-ty/src/builtin_derive.rs:483-497 | crates/hir-ty/src/builtin_derive.rs:499-509 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/builtin_derive.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0db09b68bfb8b00950ebf1ed814a1ad2c692d37494d5bbb106844740f4b263"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/hir-ty/src/infer/cast.rs:459-467 | crates/hir-ty/src/infer/cast.rs:489-497 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/cast.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c825cc12fd4eff6bc937839cee07306da5dcf76f804384069d4f1b506bdfb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/hir-ty/src/next_solver/def_id.rs:577-584 | crates/hir-ty/src/next_solver/def_id.rs:628-635 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/def_id.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae97e097b5cd58c9df9f7c7e6692aaa5884b75430f9996904d8ce5e7d85e92fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/intern/src/gc.rs:32-41 | crates/intern/src/gc.rs:56-66 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/gc.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64fa2edb626e458258cc86e8494cc51f4fa1d2722986658376d4a3742f90c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/syntax/src/ast/token_ext.rs:491-503 | crates/syntax/src/ast/token_ext.rs:507-519 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/token_ext.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"902437f693d707adcbff9c425f60df392090b8dca71c1bd2aac51350623410a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir-expand/src/lib.rs:277-287 | crates/hir-expand/src/lib.rs:1044-1054 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acb05e04c438dab039ff1728dda9e6b248c8d3a4f37e3387555d53d203561c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/hir/src/lib.rs:1453-1460 | crates/hir/src/lib.rs:1463-1470 | crates/hir/src/lib.rs:1473-1480 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"987a13dda7c05f1c9488e711ea46e3ecf7785349425f18ea4a4ca4dfeb835d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/parser/src/grammar/expressions/atom.rs:654-668 | crates/parser/src/grammar/expressions/atom.rs:865-881 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6f884989097b216d16dd2c287df6650e530f64d09347caa2b151adf2b99274"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:361-369 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:380-388 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"82287a513f3a547a462b719aaae1f4c176da68e3f88d59a7545779cd8852002a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): crates/base-db/src/lib.rs:89-99 | crates/base-db/src/lib.rs:107-118 | crates/base-db/src/lib.rs:138-149 | crates/base-db/src/lib.rs:183-198 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/lib.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"335a05bfe51221b9794d6f18a1acfaaa3e73a08af4d058d8718d39ea9e900d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir-ty/src/infer.rs:2163-2173 | crates/hir-ty/src/infer.rs:2193-2203 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3c6938b3c2fd856b22b59f94588cd7b2df4d682b29e48b316e49796f7ec8af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/hir-ty/src/infer/pat.rs:979-986 | crates/hir-ty/src/infer/pat.rs:1037-1044 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae82b8295296772b8c22d2fe69af9e37f8bf964df66f90c6f8347520fa7ae5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/hir/src/lib.rs:3069-3079 | crates/hir/src/lib.rs:3081-3093 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3069}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2221063c174ac639f0cacafe034cf746f42f33d458ac4978ad022ca0e1e7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/ide-assists/src/handlers/add_missing_match_arms.rs:461-467 | crates/ide-assists/src/handlers/replace_if_let_with_match.rs:366-375 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e1872d15655498a3173e045b53febdd0b8c28d12995d5662af88a65d57562c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/hir-ide/src/display.rs:812-817 | crates/hir-ide/src/display.rs:1087-1092 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b96f9645d3beb853f5d89b892c6aa99a1212ff4a6bca4658618beb3e8c8bc46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/hir-ty/src/infer/expr.rs:114-127 | crates/hir-ty/src/infer/pat.rs:1718-1731 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7717d536c232b4ee0e5bf21d70dec758d616ff5ff1f837230d6b0bdeea312a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/hir-ty/src/infer.rs:2246-2254 | crates/hir-ty/src/mir/lower.rs:1524-1532 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c74ba2fd915bd5a1838844bb8cad91a6eca87db29e79a5dbd3c457cee53b12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/ide-completion/src/completions.rs:232-245 | crates/ide-completion/src/completions.rs:253-266 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"665f219a30d3adefff62bab129b6e4f1e74d834fa9749e4cc45dc5d5535ca670"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/proc-macro-api/src/bidirectional_protocol.rs:100-111 | crates/proc-macro-api/src/bidirectional_protocol.rs:117-130 | crates/proc-macro-api/src/bidirectional_protocol.rs:137-148 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfd11cc3682a850a6e4081f94437332451b3347007f77cdee048d83895d9782"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/syntax-bridge/src/lib.rs:183-191 | crates/syntax-bridge/src/lib.rs:198-206 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e672297a5c895155da5091b1eacf72e1929b638f1497587e1cd547842c320e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/syntax/src/ast/node_ext.rs:1036-1042 | crates/syntax/src/ast/node_ext.rs:1044-1050 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf6640f2ad32e3f2a9d32b7c82ae259166e3003fafe5b4259ca5108572ecfd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/syntax/src/syntax_editor.rs:150-158 | crates/syntax/src/syntax_editor.rs:192-200 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a17015c4670f36067e555be9bb2e1b7dec7d06af122b6ccbf4edf68758e6a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/expect-test/src/lib.rs:485-496 | lib/expect-test/src/lib.rs:497-505 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/expect-test/src/lib.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"a050e68411cf470fc8b02d0da0a3da94b244853a22c3db62191265480961833f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/hir-ide/src/diagnostics/decl_check.rs:645-662 | crates/hir-ide/src/diagnostics/decl_check.rs:683-698 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ba30bcac5b67dea510c6432bf14a806c5f7d02ecd56de381230f3015064c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/hir-ty/src/mir/monomorphization.rs:244-250 | crates/hir-ty/src/mir/monomorphization.rs:268-274 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/monomorphization.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6552dbd3a6f0be124171c0755a372ccadc4f81c9389fafe5b6154beeb72c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/hir/src/lib.rs:4776-4780 | crates/hir/src/lib.rs:5123-5128 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4776}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efd9fe5e0dbf46f3aef92b433f68ad1078b54ef94603304a7646e6e73f792bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/ide-diagnostics/src/handlers/undeclared_label.rs:7-16 | crates/ide-diagnostics/src/handlers/unreachable_label.rs:7-16 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/undeclared_label.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"932866529adea6bc59130b7bab1a3408f02955cdf6914cf8d21ee90accd450c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/mbe/src/expander/matcher.rs:271-276 | crates/mbe/src/expander/matcher.rs:294-299 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf851951fb66e8ec1762385a3536f5cc29b7d7fef4d824944da11f643de29a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/parser/src/grammar/items.rs:376-383 | crates/parser/src/grammar/items.rs:385-392 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbc16e11fa51dedef6d735ac9d941859cda196859161e42040bdf94fcb29afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): crates/rust-analyzer/src/lsp/to_proto.rs:1109-1119 | crates/rust-analyzer/src/lsp/to_proto.rs:1125-1135 | crates/rust-analyzer/src/lsp/to_proto.rs:1141-1151 | crates/rust-analyzer/src/lsp/to_proto.rs:1157-1167 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e5e86496b51026c077a9136968a2f56860c0bea3cde18aef73c5cd70618571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/lsp-server/src/msg.rs:223-231 | lib/lsp-server/src/msg.rs:248-256 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/msg.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7af9deacaf40319a19ef296f60f2abd0cf1bdc5e5612879de2173a1152b834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/hir-ty/src/method_resolution.rs:590-596 | crates/hir-ty/src/method_resolution.rs:706-712 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d7c1aec9176f4044ea02d01f61cec9bbfe3b48f2572312d82e3b609581cae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/ide-db/src/syntax_helpers/suggest_name.rs:113-124 | crates/ide-db/src/syntax_helpers/suggest_name.rs:126-138 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/suggest_name.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5220b894b37b4fcffb714360c96497f344529d18e30e6cdcfb791e7b226ab1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/ide-db/src/ty_filter.rs:51-60 | crates/ide-db/src/ty_filter.rs:73-86 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/ty_filter.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"64807b4ff018516db7d738e725622f722744eea652a7bd8475c4152122236692"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/parser/src/shortcuts.rs:117-125 | crates/parser/src/shortcuts.rs:127-135 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/shortcuts.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb08856c9cf891a7128c1a5a587972858058361948611969509135f5801cc5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/syntax/src/ast/node_ext.rs:1052-1062 | crates/syntax/src/ast/node_ext.rs:1064-1074 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31741d6559fc37c4958b4046a20e688b3457b3eaa24a8062ba8bbfa631bc391"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/hir/src/lib.rs:4914-4926 | crates/hir/src/lib.rs:4951-4965 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4914}}}],"partialFingerprints":{"codehealthFindingId/v1":"439d20b937cba158900255267a83657aad0cf2f61298ede695f0fd499858b29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): xtask/src/metrics.rs:89-104 | xtask/src/metrics.rs:121-129 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/metrics.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30bbbf568ca888a65a4a9ae4ddf878cf7d9cdacee7e716432eea0b63b7ca0f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/ide-assists/src/handlers/sort_items.rs:178-188 | crates/ide-assists/src/handlers/sort_items.rs:190-200 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/sort_items.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87f3d1a1146183af0d7a77ef80174dc4b50815cb835a02fe08764c19af31558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/ide-db/src/syntax_helpers/node_ext.rs:45-60 | crates/ide/src/highlight_related.rs:775-784 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b054f46c703cd8bd968ee40f289a30e049cb7b99b4e0d5d57f8a73730b323543"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/hir/src/lib.rs:1901-1909 | crates/hir/src/lib.rs:5868-5876 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0381f6da3795b81801755fd48b218fc10899436237745d459871c10466481d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): crates/hir/src/semantics/source_to_def.rs:485-489 | crates/hir/src/semantics/source_to_def.rs:494-498 | crates/hir/src/semantics/source_to_def.rs:503-507 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62c5d26b21193a446a3ecaa81d917b119950340d95dc4dbe027c99582efd62f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 14\u002B corresponding lines): crates/ide-completion/src/completions.rs:302-315 | crates/ide-completion/src/completions.rs:323-337 | crates/ide-completion/src/completions.rs:346-361 | crates/ide-completion/src/completions.rs:474-489 | crates/ide-completion/src/completions.rs:497-511 | crates/ide-completion/src/completions.rs:519-532 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc5cf032527ec6f4d81170fc209298a2391db55cadf87760e11e947ef5e6702"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crates/parser/src/grammar.rs:128-139 | crates/parser/src/grammar.rs:141-152 | crates/parser/src/grammar.rs:154-165 | crates/parser/src/grammar.rs:167-178 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2ce4bf3cd5f08a973d3c1eb8ced71a97d768dd64823fd45a4642f6cde93c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/parser/src/grammar/expressions/atom.rs:702-709 | crates/parser/src/grammar/expressions/atom.rs:715-724 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6232449fc62380c832e9f32d02eb80d7a06ca1f644e2620cd7de65dbb5af85c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/parser/src/grammar/patterns.rs:450-457 | crates/parser/src/grammar/types.rs:208-218 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/patterns.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e34d19b86fe11849992dcf5f84ff60b44fa89056ffb890039a4a332ebf8c504"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/project-model/src/sysroot.rs:78-85 | crates/project-model/src/sysroot.rs:98-105 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8e76082960fecd6dcaf0fdd8a6bd8b4a7106c725ef2302c7d1abb1cceec5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): crates/hir-def/src/expr_store/lower.rs:3555-3561 | crates/hir-def/src/expr_store/lower.rs:3590-3596 | crates/hir-def/src/expr_store/lower.rs:3598-3604 | crates/hir-def/src/expr_store/lower.rs:3606-3612 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8f46cd5edd27b939082f81bc764f372ef0846d2577ee97ebc01c96af5c445f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs:474-485 | crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs:493-506 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f994e815e110b4192fa7fe32e205150e3108af28a93ae17d1ffcd1e5549e751"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs:292-300 | crates/ide-assists/src/handlers/replace_qualified_name_with_use.rs:120-129 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e2f9e0277482a1cd49d04a320ec71ce6c64c7b55303f68f644a1044e95eda3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/ide/src/signature_help.rs:451-465 | crates/ide/src/signature_help.rs:473-486 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd27e402b5f2e9f016a129144a725bf9e74afbaae4e9e88ecb61a1bce4ac89b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/parser/src/grammar.rs:352-360 | crates/parser/src/grammar.rs:362-370 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f70cbebd0a27f620b8b33b103d70f77ea9dbc755e55ebe6c1148a65bae700e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/parser/src/grammar/expressions.rs:524-531 | crates/parser/src/grammar/expressions/atom.rs:898-905 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5855b69a75cc27b11e35cf7ac4ffeaf8d88d687ada154fcb8eb81a71d66722"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/proc-macro-api/src/legacy_protocol.rs:51-59 | crates/proc-macro-api/src/legacy_protocol.rs:65-74 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"952b4ed2aa6aef717aadbc06c0a516e667cd77af61636e42e2493aca3e61a726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): crates/hir-def/src/item_tree/lower.rs:259-265 | crates/hir-def/src/item_tree/lower.rs:267-273 | crates/hir-def/src/item_tree/lower.rs:275-284 | crates/hir-def/src/item_tree/lower.rs:286-292 | crates/hir-def/src/item_tree/lower.rs:294-300 | crates/hir-def/src/item_tree/lower.rs:333-340 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e79ccb2896c79b9881707317a11efc44c5d1b8e084b7e8c1fe2175543e3776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/hir/src/lib.rs:1317-1324 | crates/hir/src/lib.rs:2118-2125 | crates/hir/src/lib.rs:2199-2206 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2e460cf679fe27458f8524a0e30da92f5669b250c223e9c83765ccc3c006e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/parser/src/parser.rs:388-398 | crates/parser/src/parser.rs:401-411 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/parser.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"794330a2ffd851b1c17a8b1a3ae36bfdade9f3a160addabe037a7ffc993ae1d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): xtask/src/codegen/grammar.rs:742-754 | xtask/src/codegen/grammar.rs:756-768 | xtask/src/codegen/grammar.rs:770-784 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/grammar.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"be67ead965558b93588197c694209e2214bcf6e0509ab7076ea68add86dbfe3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/hir/src/lib.rs:3751-3761 | crates/hir/src/lib.rs:3770-3778 | crates/hir/src/lib.rs:3780-3788 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3751}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3f59f7e3e70405e42493d672344a5857e204ba64b1f51cdfabb5fea44e9204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/hir-ty/src/next_solver/generic_arg.rs:262-268 | crates/hir-ty/src/next_solver/generic_arg.rs:757-763 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/generic_arg.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b703f0191d041e1ebacac90a7f89afb28acae05beadd37b7d776f40aa3d094b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/hir/src/attrs.rs:156-165 | crates/hir/src/attrs.rs:168-176 | crates/hir/src/attrs.rs:197-205 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/attrs.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5eb3ba58f80478802918b46a01376341ad254f6aaba7090d737f761311c602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/ide-db/src/helpers.rs:145-153 | crates/ide/src/static_index.rs:151-161 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/helpers.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"516706ae657ae12d5a0116bb51963f8f36e5d4daf0a8896f0d271116e22b6ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): crates/ide-diagnostics/src/handlers/cannot_be_dereferenced.rs:12-23 | crates/ide-diagnostics/src/handlers/cannot_implicitly_deref_trait_object.rs:12-23 | crates/ide-diagnostics/src/handlers/cannot_index_into.rs:12-23 | crates/ide-diagnostics/src/handlers/expected_array_or_slice_pat.rs:12-23 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/cannot_be_dereferenced.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b9ea5634c48b7ec6293ef91c9c868f121d19d05cc38aab844630ed8a5ba503"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/hir-def/src/nameres.rs:531-538 | crates/hir-def/src/nameres.rs:548-559 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"93728473fd2b9ffb861d9800d003f20654f66dee4c9c445ecedd51257c07acea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/hir/src/lib.rs:711-719 | crates/hir/src/lib.rs:721-725 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2fd3f18a159830cc8ca8cf1a52f5b2cea3e6bf2d27c506fbfbd80c33698290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/hir-ty/src/infer/coerce.rs:149-157 | crates/hir-ty/src/infer/unify.rs:423-431 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4796b8c26508fc7c50804b79523f07533bab7ed9d3b20e9335440b63d2c4e7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/parser/src/grammar/attributes.rs:117-127 | crates/parser/src/grammar/patterns.rs:519-526 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/attributes.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6af7a43233bbcdc941027167370ddf3d75feb9b523ab4e31021569f33a6e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/hir-def/src/lib.rs:1052-1058 | crates/hir-ty/src/next_solver/def_id.rs:617-623 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1b3d8f6b1799f3028c1f226af907354a25a544bb064a2f5e6ef631901a2059"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/hir/src/semantics.rs:1648-1652 | crates/syntax/src/algo.rs:18-22 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"762a508b38e397246b5777598efd2d158c0e7efa9a22d8b19f4245fa99761d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/rust-analyzer/src/cli/diagnostics.rs:15-24 | crates/rust-analyzer/src/cli/unresolved_references.rs:13-22 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/diagnostics.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1d4f9a1a1b63ce37a4350c7609899c4aed3e798fd5033231523427f272f38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/hir-def/src/lib.rs:1175-1181 | crates/hir-ty/src/next_solver/def_id.rs:197-203 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cf818a11cef08f12e298ec12e2bbe1f07d4b377a158ba8b1668b9ec6393ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/parser/src/grammar/patterns.rs:438-443 | crates/parser/src/grammar/types.rs:222-227 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/patterns.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"242d3bcf90b10a1d9763d4d51537532e3f73bed2bdf39e8e36a5f03413741f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/parser/src/grammar/patterns.rs:463-469 | crates/parser/src/grammar/types.rs:139-144 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/patterns.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99c619cacfa9bea0b097070b9bba4a3ce5f730bd20b20af6a6a4e119ccffd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/hir-def/src/visibility.rs:370-374 | crates/hir/src/lib.rs:944-948 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"2930f94332818b1f931ef0782b0d6162105ce76c1b736cea2f9b7a10a0a7c73c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 1\u002B corresponding lines): crates/hir-ty/src/next_solver/allocation.rs:73-73 | crates/hir-ty/src/next_solver/consts.rs:43-43 | crates/hir-ty/src/next_solver/predicate.rs:260-260 | crates/hir-ty/src/next_solver/region.rs:33-33 | crates/hir-ty/src/next_solver/ty.rs:64-64 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/allocation.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"966a29f16aa1d9cfc8b3b4ffeea9d156c5c9b8719a85867ba810c7acd4fe3661"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/intern/src/intern.rs:267-271 | crates/intern/src/intern_slice.rs:227-231 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/intern.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05e2429d79eb68b63e7e42a131418bc88396d8507f884079ffffee9884e200c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/syntax/src/ast/expr_ext.rs:237-242 | crates/syntax/src/ast/node_ext.rs:1160-1165 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/expr_ext.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5dbacbfe5b6d61382fc9d19c3e3c10ffce38556c6e6dda1dc6a3b8493f3357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/syntax/src/ast/expr_ext.rs:473-478 | crates/syntax/src/ast/node_ext.rs:1182-1187 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/expr_ext.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2888e99810ae1664f5375d5469cbb7d5dd5d28a60f778c643f74e4636908a51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/hir-ide/src/diagnostics/match_check/pat_util.rs:54-61 | crates/hir-ty/src/utils.rs:210-217 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check/pat_util.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4188cb44bdb6fc61b374df36541c19f6e3886a00f4c95b8d47bc6d37d029d64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): crates/hir-ty/src/next_solver/allocation.rs:29-32 | crates/hir-ty/src/next_solver/consts/valtree.rs:348-351 | crates/hir-ty/src/next_solver/interner.rs:755-758 | crates/hir-ty/src/next_solver/opaques.rs:65-72 | crates/hir-ty/src/next_solver/region.rs:52-55 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/allocation.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0fe25436b115d89c97df8e445ba5cba4cf2be1b68e6b059104bd7c7f0c1b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/ide-diagnostics/src/handlers/non_exhaustive_record_expr.rs:10-18 | crates/ide-diagnostics/src/handlers/union_expr_must_have_exactly_one_field.rs:9-17 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/non_exhaustive_record_expr.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7e9959ee18b8b33087b768aa0677a873c9e45a4f026987f65c7c5fac0481a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/proc-macro-api/src/bidirectional_protocol/msg.rs:192-197 | crates/proc-macro-api/src/legacy_protocol/msg.rs:166-171 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol/msg.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cce243a0f7bade4473f2b722b841437cb9ccaff05cd97f984845b99efb3147"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/hir-expand/src/builtin/derive_macro.rs:61-64 | crates/hir-expand/src/builtin/fn_macro.rs:58-61 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd83b1531fc04f38d90d86900e9496819d3b90487954b60bd59b43cb1b20a1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/ide-diagnostics/src/handlers/invalid_derive_target.rs:10-19 | crates/ide-diagnostics/src/handlers/malformed_derive.rs:9-18 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/invalid_derive_target.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"24455db57cd0e04e05d4afe935c56d6b3564d31f84bd82316b5f763454c153cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/proc-macro-api/src/bidirectional_protocol.rs:205-210 | crates/proc-macro-api/src/legacy_protocol.rs:145-151 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8bd7083fc33678d8facb9aa72a9d67f790fc62ea1aec5032396f73c68ce849"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/hir-ty/src/lib.rs:571-576 | crates/hir-ty/src/next_solver/def_id.rs:187-192 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lib.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82a5c95f6451c77b2af7f6d0b2cf36bfc31169804091691bee5af11cf275cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): crates/ide-db/src/search.rs:1449-1452 | crates/ide/src/lib.rs:369-374 | crates/ide/src/references.rs:226-229 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f91ae233d10f92fdc2b80c4dadeac10d0477dd0767b1e56a41bf2bd9197cd74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): crates/project-model/src/workspace.rs:835-883 | crates/project-model/src/workspace.rs:917-965 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/project-model/src/workspace.rs:835\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"369d3c090ea575e47b3307328d283af483b94517309a0d434fb36b7599fcf2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): crates/hir-def/src/visibility.rs:173-214 | crates/hir-def/src/visibility.rs:239-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/visibility.rs:173\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4384006fecb6ae4b2794232579b7dd6a464188cd16c42728aff46a0d5936c4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): crates/hir/src/term_search/expr.rs:187-219 | crates/hir/src/term_search/expr.rs:229-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/term_search/expr.rs:187\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/expr.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffd1f4a515a2f80110563fe0c42ccc675f2209bbdd3a4a214d62c6b43138729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): crates/ide/src/hover/render.rs:529-560 | crates/ide/src/hover/render.rs:562-594 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e1fbf6430ecea64bad54905b326d0c3840e30ee1fa1535034d05af496b0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 2): lib/line-index/src/lib.rs:317-349 | lib/line-index/src/lib.rs:419-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/line-index/src/lib.rs:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/line-index/src/lib.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcce903ac03a08e972be2a899fc134ef8aa95cd6a41b2015adc629c556aa885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): xtask/src/codegen/grammar.rs:203-230 | xtask/src/codegen/grammar.rs:349-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060xtask/src/codegen/grammar.rs:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/grammar.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d2df7c159887daf22280c0b8426119675f7762d1c45406f631646ebef71858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/ide/src/inlay_hints/lifetime.rs:105-131 | crates/ide/src/inlay_hints/lifetime.rs:162-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/inlay_hints/lifetime.rs:105\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"56efde6da72be8adeb33695694341ac08176abdbce5bf66634e63141ee94f571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/ide-assists/src/handlers/convert_for_to_while_let.rs:120-145 | crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:162-187 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_for_to_while_let.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_for_to_while_let.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6602daf3621dc70b38651fe83918a6b5b81b2b04576561fa366e25da1b7688ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:591-614 | crates/hir-ty/src/mir/eval/shim.rs:663-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:591\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"746038245ca8ea36463c93a837ddedbc08d66dc9aade3c7c6b6a2fb5f13e4c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): crates/ide-completion/src/completions/expr.rs:121-141 | crates/ide-completion/src/completions/expr.rs:190-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/expr.rs:190\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b010b3eb3fcbcf77e40dbe1c307c5159b94f4b6425b755e75662a15e802382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:932-955 | crates/rust-analyzer/src/cli/analysis_stats.rs:1037-1060 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:932\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a534520d549d44bb1849234310af9b15d42fe692c48fdd644bc9f95b199f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): crates/ide-completion/src/completions/expr.rs:204-226 | crates/ide-completion/src/completions/type.rs:115-133 \u2014 before extracting anything, compare \u0060crates/ide-completion/src/completions/expr.rs\u0060 and \u0060crates/ide-completion/src/completions/type.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/expr.rs:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7cfe801c8253937be9b1f96563d2262901d0c97f5b2b6f53fa39d948aef8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): crates/ide-completion/src/context/analysis.rs:224-245 | crates/ide-completion/src/context/analysis.rs:410-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/context/analysis.rs:224\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c3607c12ad39b3adde6783593d967d140b3a0a915bdb3ebe1469ce64e57ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:1000-1022 | crates/syntax/src/ast/syntax_factory/constructors.rs:1033-1053 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1000\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceecd1505e5363524393d15067df7d939f9a7e4bb9b0ea6a56e2d3be487391a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/tt/src/storage.rs:886-908 | crates/tt/src/storage.rs:910-932 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/tt/src/storage.rs:886\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tt/src/storage.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"69efb62368193272c03bcacec806566b1cb9dfaa692cc50f25ae0662a7637f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/hir-ide/src/diagnostics/decl_check.rs:327-348 | crates/hir-ide/src/diagnostics/decl_check.rs:417-438 | crates/hir-ide/src/diagnostics/decl_check.rs:578-599 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adb20350b4188a7e11d3b86f2b07bfb3c9ffc917ef120fb42570b987a7befb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/rust-analyzer/src/cli/analysis_stats.rs:855-876 | crates/rust-analyzer/src/cli/analysis_stats.rs:1197-1218 | crates/rust-analyzer/src/cli/analysis_stats.rs:1276-1297 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:855\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1196\u0060 calls \u0060Impl\u0060, \u0060source\u0060, \u0060syntax\u0060 and \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:854\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4df72d7da14e04ba66b9a54ee2da0aa87748ea48ea9b4239c3c9c22af7fcb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/hir/src/term_search/tactics.rs:441-462 | crates/hir/src/term_search/tactics.rs:636-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/term_search/tactics.rs:441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18edeefb6263e002ccf1a00128c6dc9957dbf378c15ddae757442abffdb86ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): crates/ide-completion/src/context/analysis.rs:217-236 | crates/ide-completion/src/context/analysis.rs:338-357 | crates/ide-completion/src/context/analysis.rs:402-422 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/context/analysis.rs:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e20f6f12d80b897e3f3e20d731e3a774d3537f5c8186f363de6db4ba664252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/hir/src/diagnostics.rs:1470-1490 | crates/hir/src/diagnostics.rs:1915-1935 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/diagnostics.rs:1470\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir/src/diagnostics.rs:1491\u0060 calls \u0060Some\u0060 and \u0060crates/hir/src/diagnostics.rs:1936\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"92952ea4a25e72a8af582e50718e2206d09e64aa53f9b2b79aee8bf0bae9ba6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/ide-assists/src/handlers/generate_enum_is_method.rs:76-96 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:155-175 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs\u0060 and \u0060crates/ide-assists/src/handlers/generate_enum_projection_method.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_enum_is_method.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbddfb98359b5cb9a69754dc81c2ed0d47673b4b14458ab835d5dfe8b398e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/ide-completion/src/context/analysis.rs:1587-1607 | crates/ide-completion/src/context/analysis.rs:1616-1636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/context/analysis.rs:1587\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ae8d01ef7df34281e78e30d1ad1a36c01f6d007d1b4e58b3c7f7cdfb6dca8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/ide-diagnostics/src/handlers/field_shorthand.rs:38-58 | crates/ide-diagnostics/src/handlers/field_shorthand.rs:84-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-diagnostics/src/handlers/field_shorthand.rs:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/field_shorthand.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ee3a150409e31308c75d9a23d0f699fc462edb92e1fe326ee6a37a62197601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/proc-macro-srv/src/token_stream.rs:698-725 | crates/tt/src/lib.rs:447-474 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/proc-macro-srv/src/token_stream.rs:698\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41dd97dee15daa205c2f6ed86eb84cbf2ff1d14af29b7c76d36c6ec2b115817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/hir-def/src/resolver.rs:823-842 | crates/hir-def/src/resolver.rs:873-892 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/resolver.rs:823\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae001e1cf5d28612ec8ee90765f37a2788a81c8cf9b58055b8ea717eb4457a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201320 lines \u00D7 3): crates/hir-ty/src/mir/eval.rs:2323-2342 | crates/hir-ty/src/mir/eval.rs:2354-2371 | crates/hir-ty/src/mir/eval.rs:3004-3008 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval.rs:2323\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37388bd835339c30eae8ebef402f4273b4582348b1f87d653eda060fc584ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:986-1005 | crates/rust-analyzer/src/cli/analysis_stats.rs:1090-1109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:986\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"067bc6b13a9ff2d4a4aa7e0f550daa7ac4d69c1fb3e28b975831c3b343eb4ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): crates/hir-ty/src/mir/eval.rs:1140-1158 | crates/hir-ty/src/mir/eval.rs:1173-1190 | crates/hir-ty/src/mir/eval.rs:1201-1218 | crates/hir-ty/src/mir/eval.rs:1229-1246 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval.rs:1140\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a64c4ae2b1534ac93b36bb1859331ab02a96faff0f695d61a8adb0edb43777f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:150-168 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:226-244 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:268-286 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:150\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48e31399c4416eb0dda715487d1bd295ce91f203427b8ab4bc474891e9b0366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/intern/src/intern.rs:51-69 | crates/intern/src/intern.rs:78-96 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/intern.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"090c1fc6e25eab2b9b8da61dd6fefd63c898057b8a073a5039f8d1f6f9bc8ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/proc-macro-srv-cli/src/version.rs:40-58 | crates/rust-analyzer/src/version.rs:39-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/version.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c348bb39fbb9278b6fc16bd120556c32ef8365ac5334a26985ceb16d9ad2851f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crates/hir-ty/src/infer.rs:1956-1973 | crates/hir-ty/src/infer.rs:2263-2280 | crates/hir-ty/src/infer/path.rs:153-170 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0922bd9e52438df17268a3646bf905b4f242ee013ec532eabb1858d6bc58a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:176-193 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:294-311 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:325-342 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"830eeb803e81adbc248ffa817eae57f4972f50693291d5f18a9b289dfb91a295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:107-124 | crates/hir-def/src/expr_store/lower.rs:142-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce8fad9a08a2703b7c7f1cdde8935a26102a98060b2836aaddf9ada1121ce5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:1435-1452 | crates/hir-ty/src/mir/eval.rs:1473-1490 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34238285946f06e54673543288f04403fea33ef609a5107eb25cec093dec6cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): crates/ide-completion/src/completions/expr.rs:132-149 | crates/ide-completion/src/completions/type.rs:72-87 \u2014 before extracting anything, compare \u0060crates/ide-completion/src/completions/expr.rs\u0060 and \u0060crates/ide-completion/src/completions/type.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/expr.rs:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9fc88f06382629388509762d98304ce92c2c1b56239671106968cd30f3f309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/ide-diagnostics/src/handlers/unlinked_file.rs:130-147 | crates/ide-diagnostics/src/handlers/unlinked_file.rs:190-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-diagnostics/src/handlers/unlinked_file.rs:130\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unlinked_file.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b1d0e7755aca75c8b2b8828d34fb46688aac94a8cf84c55431ce74691a8bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/ide/src/inlay_hints/lifetime.rs:249-265 | crates/ide/src/inlay_hints/lifetime.rs:345-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/inlay_hints/lifetime.rs:249\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c620666ca562175259f27b3e45f832b3e38268a9a123d5689bcd340520a7b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crates/hir-ide/src/diagnostics/decl_check.rs:357-373 | crates/hir-ide/src/diagnostics/decl_check.rs:445-461 | crates/hir-ide/src/diagnostics/decl_check.rs:608-624 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/diagnostics/decl_check.rs:357\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b73cb2eb2afda0d778821518db716447c820e19f5b0b508888f81f095d3d5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crates/proc-macro-srv/src/token_stream.rs:115-131 | crates/proc-macro-srv/src/token_stream.rs:143-159 | crates/proc-macro-srv/src/token_stream.rs:171-187 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa58466fc6edff37f67ca273dfda9e78e6f0ae7f6ea14a859b4a632217e9ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/hir-ty/src/infer/expr.rs:76-92 | crates/hir-ty/src/infer/expr.rs:293-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/expr.rs:76\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d27dae1477f10a9552e2d340ef058343479c4deae5ef7916889744af86e84de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/hir/src/semantics.rs:2478-2498 | crates/ide-assists/src/handlers/extract_function.rs:709-729 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/semantics.rs:2478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9470cb3d6a9c6028e9d47dfeae28779170cdb99076cb94af17cfd28e85de3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/ide-diagnostics/src/handlers/unresolved_field.rs:37-53 | crates/ide-diagnostics/src/handlers/unresolved_method.rs:34-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-diagnostics/src/handlers/unresolved_field.rs:37\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060d\u0060 to \u0060\u0026hir::UnresolvedField\u003C\u0027_\u003E\u0060 in one and \u0060\u0026hir::UnresolvedMethodCall\u003C\u0027_\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a9d01e95a059d8354d604a859eaa89f32701c61c102606ce9d9083b24aac71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/ide/src/syntax_highlighting/highlight.rs:540-556 | crates/ide/src/syntax_highlighting/highlight.rs:563-579 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/syntax_highlighting/highlight.rs:540\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b38a9803c9732726f645cfa4fe2589fc44ef1f4a94cb6f5f8a79dd7df1f7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:831-847 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:942-956 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:831\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:848\u0060 calls \u0060push\u0060 and \u0060crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:957\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf54694e04c42d068673faf0b46379907903398b9cc8d5acf67c26e1fde8d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/span/src/map.rs:167-183 | crates/syntax/src/lib.rs:223-239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/span/src/map.rs:167\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/map.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"272807c59b1340c7897521f702fcb753fb27ded9055b246c1cd5db2a1424e055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:369-386 | crates/syntax/src/ast/syntax_factory/constructors.rs:2173-2190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:369\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:368\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2172\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecd5b564add7f946deba08aa7adb8336f3c5d5cb6758641f55f197256b14fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:1817-1832 | crates/syntax/src/ast/syntax_factory/constructors.rs:1947-1958 | crates/syntax/src/ast/syntax_factory/constructors.rs:2210-2223 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1817\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e195cfaaf2889ff5dccc81d7983a74923e9f982dad3627974a9b8b84e7c7b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/hir-ty/src/infer/callee.rs:137-152 | crates/hir-ty/src/infer/callee.rs:190-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/callee.rs:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"359564652c2044bd5daa834b9111546aa1e25b2691392689313ec4fe97672cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/hir-ty/src/infer/pat.rs:1380-1395 | crates/hir-ty/src/infer/pat.rs:1416-1435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/pat.rs:1416\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaead72c35de12d19ae4aa76089f951b5f8988fa1372ef5116fdc9736066209b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/hir/src/source_analyzer.rs:1633-1648 | crates/hir/src/source_analyzer.rs:1674-1688 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/source_analyzer.rs:1633\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c298c6ac5978a29e4abb18ab573ba2bdd26d8e213d48076b66ef0074946007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/hir/src/source_analyzer.rs:1929-1953 | crates/hir/src/source_analyzer.rs:2130-2154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/source_analyzer.rs:1929\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"6822138ecd617b7b593fb82cb40f78e80b94567ddb6702618f42c8ce69415c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/ide-assists/src/handlers/generate_deref.rs:70-85 | crates/ide-assists/src/handlers/generate_deref.rs:113-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_deref.rs:70\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_deref.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcaabe0209c0f9e482d01e929a5cf3c1dcc78690141435a128e8beef2b43d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/ide-db/src/imports/import_assets.rs:891-907 | crates/ide-db/src/imports/import_assets.rs:916-932 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/imports/import_assets.rs:891\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide-db/src/imports/import_assets.rs:915\u0060 calls \u0060as_assoc_item\u0060 and \u0060crates/ide-db/src/imports/import_assets.rs:890\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87a9e3e7e9e0f717137391c79261c5a08f6cb56d0038cf77c17db32c187f1ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/ide-db/src/imports/merge_imports.rs:879-894 | crates/ide-db/src/imports/merge_imports.rs:918-933 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/imports/merge_imports.rs:879\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a7a18aedaa443a2366140808e0b97b55e9683e10a8b5e03240bf7e4b492d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/ide/src/runnables.rs:364-379 | crates/ide/src/runnables.rs:456-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/runnables.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"680f1b547282222a963c1ddadaad350cb29035e02c2e5eb09be4326a6b861d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/rust-analyzer/src/handlers/request.rs:2001-2017 | crates/rust-analyzer/src/handlers/request.rs:2031-2047 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060SemanticTokensParams\u0060 in one and \u0060SemanticTokensDeltaParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"979ea252982ee9de88089b3e53020c11aae77f781627ec4400732ace84fa73d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/hir/src/source_analyzer.rs:136-150 | crates/hir/src/source_analyzer.rs:189-203 | crates/hir/src/source_analyzer.rs:234-248 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9a0b7731cb0a4e0f622cdf94027dc6168865676615431371907a2d444a7a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/span/src/ast_id.rs:883-897 | crates/span/src/map.rs:166-180 | crates/syntax/src/lib.rs:222-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/span/src/ast_id.rs:883\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"d668b30bca8347909ccd38cb570ae8c88399ee4f6d48a1795edd0d5849119bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): crates/hir-def/src/nameres/collector.rs:2147-2161 | crates/hir-def/src/nameres/collector.rs:2169-2178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/nameres/collector.rs:2147\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0860d6f97f694320e4d1fda33e5271ef1200af54e311ce9b5882812ffcbafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:444-458 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:637-651 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:444\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74a743f30aafa32aa692afc4f729f0456087b618a245ac76223cd25c7e42324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/ide/src/doc_links.rs:601-615 | crates/ide/src/doc_links.rs:617-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d9327d25ea38a876b686c7365b809375098378fcab12a16a6b777926458c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/ide/src/syntax_highlighting/escape.rs:47-61 | crates/ide/src/syntax_highlighting/escape.rs:76-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/syntax_highlighting/escape.rs:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/escape.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24951a14739f8049a15bea8381e4465763e9af04943e70df23f45b629655a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:958-972 | crates/rust-analyzer/src/cli/analysis_stats.rs:1063-1077 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:958\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa44f99cd93d0c08817069a8eb1d1f44265b0f5a0632f929fa6267c9afccb53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): xtask/src/codegen/lints.rs:279-294 | xtask/src/codegen/lints.rs:295-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"81412ea4a981bba3c86b20cd2fb147645404208961c9428242769030a8c98e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): crates/hir-expand/src/fixup.rs:150-163 | crates/hir-expand/src/fixup.rs:180-193 | crates/hir-expand/src/fixup.rs:196-209 | crates/hir-expand/src/fixup.rs:226-239 | crates/hir-expand/src/fixup.rs:266-279 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-expand/src/fixup.rs:150\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir-expand/src/fixup.rs:194\u0060 calls \u0060LoopExpr\u0060 and \u0060crates/hir-expand/src/fixup.rs:178\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/fixup.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"210823334f23462e27ca53d3e569219615005e3df1f7bbd906125f5ca197ff75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 4): crates/hir-ide/src/diagnostics/expr.rs:634-647 | crates/hir-ide/src/diagnostics/expr.rs:677-690 | crates/hir/src/source_analyzer.rs:2188-2199 | crates/hir/src/source_analyzer.rs:2220-2231 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/diagnostics/expr.rs:677\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/expr.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f1d056853765597dfb9f21946a3096af09a9cc7f07c328de9c33c03d570f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/hir-expand/src/lib.rs:1206-1219 | crates/hir-expand/src/lib.rs:1247-1260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-expand/src/lib.rs:1206\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"245a62aa98cfe98d70dcb936cbd4184672afadc838f8fba061b80bae56467b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/hir-ide/src/display.rs:1535-1548 | crates/hir-ide/src/display.rs:1594-1607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:1535\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ec39eae076d55da785613ad2b5caa953fef521da6f244b3f9f94ae6ea48632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/hir-ide/src/display.rs:1867-1880 | crates/hir-ide/src/display.rs:1919-1932 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e7b14d82a8420e9355b1661ed5314f6941cfc1e576d2ae123f0d252db46f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/hir-ty/src/mir/lower.rs:1180-1193 | crates/hir-ty/src/mir/lower.rs:1210-1223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/lower.rs:1180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d60f17652f590463406a4756091350f1ffc24c0dc13084b16ccfc0dddfd4c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crates/hir-ty/src/mir/lower/pattern_matching.rs:223-234 | crates/hir-ty/src/mir/lower/pattern_matching.rs:308-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/lower/pattern_matching.rs:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"870df112a9c6e6344135dc664ded305fe872cc4921dba6d2628f0a6bd55bd854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/hir/src/lib.rs:5441-5454 | crates/hir/src/lib.rs:5550-5562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/lib.rs:5441\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5441}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa46c5e2f0d229dd9ec3057b9a1b2e6cc495755be7972f210e4eaf9a0c5ff1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/hir/src/term_search/tactics.rs:144-158 | crates/hir/src/term_search/tactics.rs:193-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be15bc963c7cab7f95d6c7251ab42c670d2d389fcebc8db570003d8030b94d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/hir/src/term_search/tactics.rs:424-437 | crates/hir/src/term_search/tactics.rs:619-632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/term_search/tactics.rs:424\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir/src/term_search/tactics.rs:616\u0060 calls \u0060filter\u0060, \u0060is_unsafe\u0060 and \u0060crates/hir/src/term_search/tactics.rs:421\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"301e23f3fd7bcc835a7668f66782a6634ff3166db788577d47c8170eb01326c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/ide-assists/src/handlers/generate_function.rs:590-603 | crates/ide-assists/src/handlers/generate_function.rs:649-662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_function.rs:590\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d57f5b18fcdaacb5838ff204361af198d6889fd1091291ce45aecaac40bd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/ide-completion/src/completions/flyimport.rs:263-276 | crates/ide-completion/src/completions/flyimport.rs:316-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/flyimport.rs:263\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide-completion/src/completions/flyimport.rs:278\u0060 calls \u0060filter\u0060, \u0060filter_excluded_flyimport\u0060 and \u0060crates/ide-completion/src/completions/flyimport.rs:330\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/flyimport.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"67701bd0f6c86fefa0f1acf214d54a20d641d36bacf200df19776a276fca6557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/ide-completion/src/completions/flyimport.rs:277-290 | crates/ide-completion/src/completions/flyimport.rs:373-386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/flyimport.rs:277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/flyimport.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"5240035b072ff0846be72c924bdbf0cd4a5dd1ff4e17dea10291426dde8a3117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/ide-completion/src/context/analysis.rs:2110-2123 | crates/syntax/src/algo.rs:137-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4547aa589fa5f72ceecee378be56ac7d96a7b7f66b13d8ef44c2d9b6864450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/ide-completion/src/render/const_.rs:30-43 | crates/ide-completion/src/render/type_alias.rs:52-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/render/const_.rs:30\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide-completion/src/render/const_.rs:29\u0060 calls \u0060const_value\u0060, \u0060Some\u0060 and \u0060crates/ide-completion/src/render/type_alias.rs:51\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/const_.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac79f890a139f2df437dd8512c8e056328871e614e76b62b17340325b2aa32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/proc-macro-srv-cli/src/main_loop.rs:304-317 | crates/proc-macro-srv-cli/src/main_loop.rs:337-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main_loop.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdf0f06aecf68e990935d25987ff3bd973969a6f125c31836e7fdd5e6ee0566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): xtask/src/codegen/lints.rs:333-343 | xtask/src/codegen/lints.rs:359-372 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1f2fa412fc2454d6100b0d2e752868ca5ea782c19b63be130d3bae2193f160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crates/hir-ide/src/diagnostics/decl_check.rs:363-375 | crates/hir-ide/src/diagnostics/decl_check.rs:451-463 | crates/hir-ide/src/diagnostics/decl_check.rs:541-553 | crates/hir-ide/src/diagnostics/decl_check.rs:614-626 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/diagnostics/decl_check.rs:363\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8886aa52f8624274a6bb6897818360b08ba9dd3ba366f499079d03f1ce31c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/syntax/src/validation.rs:328-340 | crates/syntax/src/validation.rs:344-356 | crates/syntax/src/validation.rs:360-372 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/validation.rs:328\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ty\u0060 to \u0060ast::RefType\u0060 in one and \u0060ast::PtrType\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28f2f7fcdcea23382d19d00f4bd46cb139852db8d14475092ca3f655f6f6419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/hir-ty/src/next_solver/normalize.rs:252-264 | crates/hir-ty/src/next_solver/normalize.rs:267-279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/normalize.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0de3c39a20f41d542e1b87fcece89015cf5669d9c4e7571f19cf69629c6f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/hir-ty/src/traits.rs:253-265 | crates/hir-ty/src/traits.rs:276-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/traits.rs:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/traits.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"069dcefadba3323bd2611160a3ced6b7dc277593813cc5ceef30b991e2e6bfce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/hir/src/term_search.rs:120-132 | crates/hir/src/term_search.rs:158-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/term_search.rs:120\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33c42434bfc707fa6554f95766499d90f39e44b73358a8ada82b36352ed0b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/ide-assists/src/handlers/convert_bool_to_enum.rs:234-245 | crates/ide-assists/src/handlers/convert_bool_to_enum.rs:274-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_bool_to_enum.rs:274\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2739e9b027ab5c56ec9a2d1349296a02c94a9bd196e08b760abbaf27a15c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/ide-assists/src/handlers/generate_default_from_new.rs:106-117 | crates/ide-assists/src/utils.rs:655-667 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_default_from_new.rs:106\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_default_from_new.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6fd8d625fc90f91fe6c89b792a8f4b2eb8369442c0e4499ae1171467398431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs:215-227 | crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs:256-265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/wrap_unwrap_cfg_attr.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3df0a46caf1bb65a1b30fd89ffd67c50be13068fade48f1a3cae15719d1db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/ide-completion/src/completions/flyimport.rs:280-292 | crates/ide-completion/src/completions/flyimport.rs:331-343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/flyimport.rs:280\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide-completion/src/completions/flyimport.rs:278\u0060 calls \u0060filter\u0060, \u0060filter_excluded_flyimport\u0060 and \u0060crates/ide-completion/src/completions/flyimport.rs:329\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/flyimport.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f3c4f2051960ef4e15e28dd1dde1bd29ed627112e3331847b0ac918cbacd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/ide-completion/src/completions/snippet.rs:17-29 | crates/ide-completion/src/completions/snippet.rs:57-68 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/snippet.rs:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/snippet.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e091f1b43488ed884dd8ec3e28054aa5885b673813c2aebc699ae06eb8e678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/ide-completion/src/context/analysis.rs:238-250 | crates/ide-completion/src/context/analysis.rs:359-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/context/analysis.rs:238\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe7775f2f76b3ae44d6b485d3843c9bf05f900e17579b5ac9919bdd5cd4faea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/ide-db/src/syntax_helpers/node_ext.rs:47-59 | crates/ide-db/src/syntax_helpers/node_ext.rs:146-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/node_ext.rs:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b2574808a48c9b5874be0f0d2fa4e3cbc69e723522c7f8ee00a6cdd243f9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/ide/src/inlay_hints/lifetime.rs:35-47 | crates/ide/src/inlay_hints/lifetime.rs:91-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/inlay_hints/lifetime.rs:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47a0f68cbde3ea6de92a035654f1ef42a1dd9ff9bac81b11f736899c4a0a84a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:157-168 | crates/rust-analyzer/src/cli/analysis_stats.rs:170-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3069ed65641c89d1a97e4d1b1f571317a32d9dbdb05ddec098c72edc77546222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/rust-analyzer/src/lsp/to_proto.rs:685-697 | crates/rust-analyzer/src/lsp/to_proto.rs:709-721 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/lsp/to_proto.rs:685\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/rust-analyzer/src/lsp/to_proto.rs:698\u0060 calls \u0060String\u0060 and \u0060crates/rust-analyzer/src/lsp/to_proto.rs:722\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cc53158847a0c7b94713c1f399f0e16aba4ce9672bbcee6d0c6a5aa5b490bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): crates/hir-def/src/nameres/collector.rs:2146-2156 | crates/hir-def/src/nameres/collector.rs:2168-2178 | crates/hir-def/src/nameres/collector.rs:2183-2194 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/nameres/collector.rs:2146\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-def/src/nameres/collector.rs:2195\u0060 calls \u0060resolve_vis\u0060 and \u0060crates/hir-def/src/nameres/collector.rs:2179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2146}}}],"partialFingerprints":{"codehealthFindingId/v1":"932d59e79d01b3fb3bd33ce881c58ddcc667832e89aead974118a0fc08a6d00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): xtask/src/codegen/grammar.rs:94-105 | xtask/src/codegen/grammar.rs:207-218 | xtask/src/codegen/grammar.rs:355-366 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060xtask/src/codegen/grammar.rs:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/grammar.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"eade8e9be6acce95cdbc72e24a3bd1514a7292b2467821bed824cce8853e910a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-def/src/expr_store.rs:373-384 | crates/hir-def/src/item_scope.rs:842-853 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store.rs:373\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5029c3e1fd883c31c209d8f3f111f17eec517f50ca5a6093eba385b300c515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-def/src/lang_item.rs:177-188 | crates/hir-def/src/lang_item.rs:202-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3f63ffd555d3ebcedcb3088f6be9f4ba34d771bee6315d9d489f4858ef6418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/hir-def/src/signatures.rs:91-102 | crates/hir-def/src/signatures.rs:179-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060id\u0060 to \u0060StructId\u0060 in one and \u0060UnionId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir-def/src/signatures.rs:90\u0060 calls \u0060source\u0060 and \u0060crates/hir-def/src/signatures.rs:178\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/signatures.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f840324e71286e54b35bf93292e975ffb6418fa4989860d26cb3d52829d3f176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/hir-def/src/signatures.rs:191-201 | crates/hir-def/src/signatures.rs:267-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/signatures.rs:191\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060id\u0060 to \u0060UnionId\u0060 in one and \u0060EnumId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/signatures.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b982a1a9efa4bb641a525e847074806aa746a8babba1ff5ae5614bc1c851420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/hir-ide/src/display.rs:1063-1077 | crates/hir-ide/src/display.rs:1209-1223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"95153ea29f4e28b925a44de9570214e0aa8728f89ed1bf560d70b95e137401f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ide/src/display.rs:1792-1803 | crates/hir-ide/src/display.rs:1816-1827 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-ide/src/display.rs:1828\u0060 calls \u0060async_gen_item_ty_from_yield_ty\u0060, \u0060lang_items\u0060, \u0060unwrap_or\u0060 and \u0060crates/hir-ide/src/display.rs:1804\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1792}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4621a88d351bef242f1f0a9cd894ad6562717109c5e7bbd04f5ad2d95bace71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ide/src/display.rs:2069-2080 | crates/hir-ide/src/display.rs:2114-2125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:2069\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"e210510ac15cca56adef2f4324e83a0cef08705b57ec1c592fc7d753e7c85613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ty/src/infer.rs:2438-2449 | crates/hir-ty/src/infer.rs:2500-2511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1d88023dc977428d067df553ff8de720731b168b973232eeea64d8f6def0fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ty/src/infer/cast.rs:346-357 | crates/hir-ty/src/infer/cast.rs:358-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/cast.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"546a002f8f4be053b76070e7eef8d5980fc838657a8780a3afc0c152fb09ad29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ty/src/lib.rs:254-265 | crates/hir-ty/src/lib.rs:288-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lib.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"153bf9dd589b78b5d658b838dd7af0bb983a23ed9a9f55fbf18284825ac1e9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/hir-ty/src/lower.rs:1785-1796 | crates/hir-ty/src/lower.rs:2285-2295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/lower.rs:2285\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"29735ece15bf08271f4e789027cc1850c3f04a1ef987bc0d67705d5690e7ebe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ty/src/next_solver/ty.rs:1014-1025 | crates/hir-ty/src/next_solver/ty.rs:1061-1072 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"667b633162b3e0682736e46fabcac2f74702338d11b2f87db44d5afb419b0d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/hir/src/semantics/child_by_source.rs:61-73 | crates/hir/src/semantics/child_by_source.rs:88-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/child_by_source.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"475b394d9f796cfc175edc26e0f55a91bb201bb9b79438359e898a3bbb7ceaf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ide-assists/src/handlers/convert_for_to_while_let.rs:152-163 | crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:194-205 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_for_to_while_let.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_for_to_while_let.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4880a99ba80677de54786c0691ab0033dec9857adf7329408cb4dbfc17817d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs:291-302 | crates/ide-assists/src/handlers/unwrap_return_type.rs:217-228 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/unwrap_return_type.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d713fc5c1c5a0d848835f8acfff5b38f03e8850ee2723306838e9b79844029ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:195-207 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:238-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef51af62f4358947ab64d1d8401e1845e6d8d636b6d28f3d7cd07ba63f95dac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): crates/ide-db/src/search.rs:312-340 | crates/ide-db/src/search.rs:343-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/search.rs:312\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"959e2934d2bf28ec693d9b4410eb05c59afec85d7d10de80d8520cb01ff27366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ide-db/src/syntax_helpers/format_string.rs:121-132 | crates/ide-db/src/syntax_helpers/format_string.rs:178-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/format_string.rs:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"00830bff475528724b47b5e243b94bbe7d8a83766aed41b8c938525c574c5a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/macros/src/lib.rs:103-114 | crates/macros/src/lib.rs:121-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/macros/src/lib.rs:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/macros/src/lib.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3905c45d21745f79a2c2e7607c2a875e780fb3f3cbf9138fe2663d2791b66252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/rust-analyzer/src/lsp/to_proto.rs:1425-1436 | crates/rust-analyzer/src/lsp/to_proto.rs:1439-1450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/lsp/to_proto.rs:1425\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b99e6cc0d04564f80539e319ea7457f6a1d0a83e92c5c1fc2ab0280dbc0122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): xtask/src/codegen/lints.rs:173-185 | xtask/src/codegen/lints.rs:194-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060xtask/src/codegen/lints.rs:173\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9eed13fc014b22f7e59d0e15feca6253e0965e8507da0d708dda901dcf3be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs:129-139 | crates/ide-assists/src/handlers/generate_default_from_new.rs:83-91 | crates/ide-assists/src/handlers/generate_delegate_methods.rs:213-222 | crates/ide-assists/src/handlers/generate_impl.rs:18-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ec7a18a2842694da4c2d6fe039ed886740c4d01a688f5fadd06e07fae44c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/ide-assists/src/handlers/generate_default_from_new.rs:85-95 | crates/ide-assists/src/handlers/generate_enum_is_method.rs:90-100 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:169-179 | crates/ide-assists/src/handlers/generate_single_field_struct_from.rs:145-155 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs\u0060 and \u0060crates/ide-assists/src/handlers/generate_enum_projection_method.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_default_from_new.rs:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_default_from_new.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c336cfaf7fc291f5e0a7b87b47ad668dab5c69b410510bcf6df834d6b04ba22d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/ide/src/static_index.rs:121-131 | crates/rust-analyzer/src/cli/diagnostics.rs:131-141 | crates/rust-analyzer/src/cli/unresolved_references.rs:100-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/static_index.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d88e07dffbf065a5757af96ab3209627f5a8ca8961523a141bfc20b6ed9fc73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-def/src/expr_store.rs:793-803 | crates/hir-def/src/expr_store.rs:828-838 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store.rs:793\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee437223251be74916f5edebee87373ca4df85cb1e7b1c461de88226e7ef8324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:2562-2572 | crates/hir-def/src/expr_store/lower.rs:2578-2586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store/lower.rs:2562\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2562}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9da4873cf4b4c9996856a94db0e9c7a56908cc1387e2943668ea9b9ff9d26b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-def/src/expr_store/pretty.rs:589-599 | crates/hir-def/src/expr_store/pretty.rs:608-618 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store/pretty.rs:589\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dd333554171298fa5a36a30e1bb30c4c9c073b5b36f5fb9190ec7676d35575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-def/src/item_scope.rs:922-932 | crates/hir-def/src/item_scope.rs:935-945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"9183decd9fd54199100ac1c932c95af0d53555ba714bdd2f0ba16154d69956e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/drop.rs:82-93 | crates/hir-ty/src/drop.rs:102-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/drop.rs:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/drop.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c0b13f5f6993777d453c2f43507bc3af720f5ec6278a1ade45f504c7942be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): crates/hir-ty/src/infer/op.rs:211-218 | crates/hir-ty/src/infer/op.rs:222-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/op.rs:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cb5811b697b3cc1658d087e4a112da8e9c6868574cf24510f22801c865a70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/lower.rs:1669-1679 | crates/hir-ty/src/lower.rs:1700-1710 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060def\u0060 to \u0060ConstId\u0060 in one and \u0060StaticId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir-ty/src/lower.rs:1668\u0060 calls \u0060loc\u0060 and \u0060crates/hir-ty/src/lower.rs:1699\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c42e0558a60de2942ae233a1a5ea504d0ccd9d15416c81aac7c1778968bd408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/lower.rs:1700-1710 | crates/hir-ty/src/lower.rs:2286-2296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459479b92a6a8635a7460a589faf2a2c73e5e8ff6b9b0b0e56cfebe71bea3c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/lower/path.rs:751-763 | crates/hir-ty/src/method_resolution/confirm.rs:409-419 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/lower/path.rs:751\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"317d928137d047dbbb43ed8f851a4444cf21d1e89466bd64d12c0bb67678db37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:2464-2475 | crates/hir-ty/src/mir/eval.rs:2485-2496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4979d515bc231e39548e43eb161c913b87d418572b7718cb8b5b2f528f17923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:2651-2661 | crates/hir-ty/src/mir/eval.rs:2663-2673 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aea1bce2f97e66fe3715ae115c22519972f0f3d694c61d0243ee99727f1f64e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:620-630 | crates/hir-ty/src/mir/eval/shim.rs:692-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:620\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c3d3b1dda7ac2e2cfa33827882bc77ffb6cec6533a417c8ba107f34d39b89f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-ty/src/mir/lower.rs:430-440 | crates/hir-ty/src/mir/lower.rs:935-945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/lower.rs:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba0407b955cc9a70555e2b5f370ab2a205463b6651470b4fc4c8d6c12281e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/hir/src/diagnostics.rs:1793-1803 | crates/hir/src/diagnostics.rs:1817-1825 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/diagnostics.rs:1793\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0e6a06ab8653a4216d018c576549ad27ccd5a1933afa1757ef2a1fbe256acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir/src/lib.rs:3321-3331 | crates/hir/src/lib.rs:3362-3372 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/lib.rs:3321\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3321}}}],"partialFingerprints":{"codehealthFindingId/v1":"382d3546195a0bc7627f38c0a4ca5926c8f08b0f7c6e13915cdfd88908dfdeb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir/src/lib.rs:3346-3356 | crates/hir/src/lib.rs:3387-3397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/lib.rs:3346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3346}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c572cd1d2eabb779c212c0424a3ec00240786a30af6035d61757f2500155662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/hir/src/lib.rs:4227-4236 | crates/hir/src/lib.rs:4261-4271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/lib.rs:4227\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4227}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad762ff23b988e6006518712663aafef41283c45f76aa1170afaabab009c5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/hir/src/term_search/tactics.rs:53-62 | crates/hir/src/term_search/tactics.rs:102-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/term_search/tactics.rs:53\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9171d04fae47a1cb060e2fd49112721271bb2d24f7491564bb6a856d731e4f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs:266-276 | crates/ide-assists/src/handlers/unwrap_return_type.rs:70-80 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/unwrap_return_type.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a6fc4c36966b146c1652bbbbc4466f3c1d73c80f3a305c3045973840d88ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/ide-assists/src/handlers/generate_enum_is_method.rs:117-127 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:198-208 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs\u0060 and \u0060crates/ide-assists/src/handlers/generate_enum_projection_method.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_enum_is_method.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1c45c9db2e64a79da7c53ae6df55675c5478400b21334314dc003fa99dd083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/ide-assists/src/handlers/generate_impl.rs:121-129 | crates/ide-assists/src/handlers/generate_impl.rs:236-246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_impl.rs:121\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060crates/ide-assists/src/handlers/generate_impl.rs:121\u0060 is reached only past a guard at line 101 that tests \u0060ctx.find_node_at_offset\u0060 and leaves the function early, and \u0060crates/ide-assists/src/handlers/generate_impl.rs:236\u0060 reads \u0060ctx.find_node_at_offset\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_impl.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93685ea14fa23057d2a15eb692d217bdf84bd73fee14f9f7c5d270a0011f831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:662-672 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:682-691 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:662\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cb618919258eceba8262464db74e2572f30c0a5358c6c443de5aab0e381269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/ide-completion/src/completions/type.rs:68-78 | crates/ide-completion/src/completions/type.rs:111-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/type.rs:68\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/type.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"aada11ac54ec2d63e773047ba990fcc40bbc10eece408483a45f3a83e5e617a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/ide/src/inlay_hints.rs:103-112 | crates/ide/src/inlay_hints.rs:150-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/inlay_hints.rs:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a3495a741878200226a3cf766955f2ed944c8d1b9d25875fe5cd44243f8830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/mbe/src/expander/matcher.rs:523-533 | crates/mbe/src/expander/matcher.rs:543-553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/mbe/src/expander/matcher.rs:523\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5572e5dc8f992cef3886bc800b1876dada427ef38269549a30bc086424165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): crates/parser/src/grammar/expressions.rs:710-720 | crates/parser/src/grammar/patterns.rs:407-413 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/parser/src/grammar/expressions.rs:710\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b9bde3f09734b3faa80b44e71d03abdc5c5a7bbf38b35dd5e9148e98dc4df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/proc-macro-srv/src/token_stream.rs:194-216 | crates/proc-macro-srv/src/token_stream.rs:220-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/proc-macro-srv/src/token_stream.rs:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ceca760fcabf44e9c219cde152730326caec3e14e2ed17ccc6559d878949a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/rust-analyzer/src/lsp/to_proto.rs:1830-1840 | crates/rust-analyzer/src/lsp/to_proto.rs:1884-1894 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8632ca722305ff6df8310b529e3d0cf3e86579dd1ec8251ba50039a06196fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/syntax/src/ast/edit.rs:91-100 | crates/syntax/src/ast/edit.rs:108-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/edit.rs:91\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/edit.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ecefc6e811b980191cfb3002e20eb55fdb46965de1be788dc51a3edc52e26c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/syntax/src/validation.rs:375-385 | crates/syntax/src/validation.rs:388-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ty\u0060 to \u0060ast::DynTraitType\u0060 in one and \u0060ast::ImplTraitType\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b1423b9d89c69215cf8b678a562accf531742c406cb428c4670a8f9fc3ac30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): crates/syntax/src/ast/syntax_factory/constructors.rs:167-176 | crates/syntax/src/ast/syntax_factory/constructors.rs:1574-1583 | crates/syntax/src/ast/syntax_factory/constructors.rs:1801-1810 | crates/syntax/src/ast/syntax_factory/constructors.rs:1869-1878 | crates/syntax/src/ast/syntax_factory/constructors.rs:2203-2212 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:167\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6affccdc9ed0aa4c41371727e691adc715af9ea436693b71efae73925e1ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): crates/syntax/src/ast/syntax_factory/constructors.rs:410-418 | crates/syntax/src/ast/syntax_factory/constructors.rs:1817-1826 | crates/syntax/src/ast/syntax_factory/constructors.rs:1947-1955 | crates/syntax/src/ast/syntax_factory/constructors.rs:2210-2218 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:410\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:409\u0060 calls \u0060map_children\u0060, \u0060attrs\u0060, \u0060syntax\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2209\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9ce7a9bbcf229f7fab9accf00ef5460e5b44ed6a227a0f251ab132bce40038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-def/src/attrs.rs:533-542 | crates/hir-def/src/attrs.rs:544-553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa6c01bc0d84d493adf75e4086e19140a358136166dc89b5e8210bba79c876e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-def/src/item_scope.rs:697-706 | crates/hir-def/src/item_scope.rs:713-722 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/item_scope.rs:697\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ccbeb77337e5f538a24c5b9e30eda5f2e20fc5d17adcedac43184e16a3a9a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-expand/src/builtin/derive_macro.rs:1014-1023 | crates/hir-expand/src/builtin/derive_macro.rs:1072-1081 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-expand/src/builtin/derive_macro.rs:1014\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8de432ae4ffcfc609a4a9a8f4b85bce510a3162e651862830a284297186f958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-ide/src/display.rs:1171-1180 | crates/hir-ide/src/display.rs:1187-1196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:1171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d4e89fb17952ad74838f21a7e88b62cb6a4bdfe66b2cafadc49d3d8080940f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/hir-ty/src/infer/expr.rs:734-744 | crates/hir-ty/src/infer/expr.rs:746-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/expr.rs:734\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b49fdcab6b18642fa54ebdc7deaf8801272b70173a4a96d29e14fb7c3a746d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-ty/src/lower.rs:1508-1517 | crates/hir-ty/src/lower.rs:1840-1849 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir-ty/src/lower.rs:1839\u0060 calls \u0060of\u0060 and \u0060crates/hir-ty/src/lower.rs:1507\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a6ba6b8e687853576a0d6690e0a11200ae2ed621f34cd18e1cfc653af8352d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/hir-ty/src/lower/path.rs:351-371 | crates/hir-ty/src/lower/path.rs:407-427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/lower/path.rs:351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060crate) fn resolve_path_in_type_ns(\u0026mut\u0060 in one and \u0060crate) fn resolve_path_in_value_ns( \u0026mut\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd97efe3ff34bd34c320ea6e0857a35b674d21427975514feaefa90b3836d5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/ide-assists/src/handlers/add_missing_match_arms.rs:167-177 | crates/ide-assists/src/handlers/add_missing_match_arms.rs:200-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/add_missing_match_arms.rs:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d84bb3136b2ad1f4b3e917cc883976efa0b564608b6e1baa1432346761ada3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/ide-assists/src/handlers/generate_enum_is_method.rs:47-54 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:124-133 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs\u0060 and \u0060crates/ide-assists/src/handlers/generate_enum_projection_method.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_enum_is_method.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56d5e73ba92f6af8ab4eec978762e47ce5650aaab5ad7d136c3d7ca65d09657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:126-135 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:330-338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:126\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c046b95d3efdd34ac883a958c656fc04e33d65375b6255e16244a3928143b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): crates/ide-completion/src/completions.rs:347-353 | crates/ide-completion/src/completions.rs:370-379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions.rs:347\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2231a3f6c1de39704778429864efa3563e4fdd5d42be72fcbd2302e4182fef02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ide-completion/src/completions/attribute.rs:90-99 | crates/ide-completion/src/completions/attribute/derive.rs:21-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/attribute.rs:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6718c350927ef2b81fae9c61e1f7ffb6058737b5a6c62ccb7fdc4ba936c952b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/ide-completion/src/completions/dot.rs:46-55 | crates/ide-completion/src/completions/dot.rs:108-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/dot.rs:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/dot.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ed02e07fa54aa61ae553a4513f5bbd72a9dba4649826915c9eecbb762c84b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ide-db/src/syntax_helpers/format_string.rs:131-140 | crates/ide-db/src/syntax_helpers/format_string.rs:214-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/format_string.rs:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42bbb72d06872db2f25b1dae2f865f6985d912f43c1acb86a7a784b8c140c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 3): crates/ide/src/hover/render.rs:382-391 | crates/ide/src/hover/render.rs:400-409 | crates/ide/src/hover/render.rs:421-424 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/hover/render.rs:382\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d59a461aa5ca6a77b9faf5af94a708240d999fdc950d765f1db72b80bd2c907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/ide/src/rename.rs:682-690 | crates/ide/src/rename.rs:695-704 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ce6a1c041694028b6197a5b32067c5ec1709e2b814363f93595f598570ca9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ide/src/runnables.rs:382-391 | crates/ide/src/runnables.rs:473-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/runnables.rs:382\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide/src/runnables.rs:380\u0060 calls \u0060from_module_to_decl\u0060, \u0060call_site\u0060 and \u0060crates/ide/src/runnables.rs:471\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/runnables.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"40dc4ae9bf8d608ef9a08dd3b02f78053c18e9ab31d18cb143d4997e5480de3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/load-cargo/src/lib.rs:656-665 | crates/load-cargo/src/lib.rs:703-712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d6e1b94189c4df78840382fd6abca58b2940d48015d19598e5737d69e37375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): crates/proc-macro-srv/src/dylib/proc_macros.rs:38-47 | crates/proc-macro-srv/src/dylib/proc_macros.rs:49-56 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/dylib/proc_macros.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25d61701de56956a0e20da24370a667adb7b1ba78738c1d0fb3786ceceaa45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/rust-analyzer/src/cli/lsif.rs:310-318 | crates/rust-analyzer/src/cli/scip.rs:64-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/scip.rs:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/lsif.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae758df2efa3b9840aec06304c1313db7484faf0dd1df5c7eefb016f57210764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/syntax-bridge/src/lib.rs:549-558 | crates/syntax-bridge/src/lib.rs:591-600 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"86004a4e314df692af272ab1b66daccabf4916a54bf702b8a72136758b6ee79d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/hir-ty/src/infer.rs:2473-2481 | crates/hir-ty/src/infer.rs:2514-2522 | crates/hir-ty/src/infer.rs:2577-2585 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer.rs:2473\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2473}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c274c2aee7bb043af488b985d2aafecc319d0a706233a38310ce097432df957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:351-359 | crates/syntax/src/ast/syntax_factory/constructors.rs:1798-1806 | crates/syntax/src/ast/syntax_factory/constructors.rs:2156-2164 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:351\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:361\u0060 calls \u0060map_children\u0060, \u0060attrs\u0060, \u0060syntax\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1808\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a2221a525a963edb44898cc80436c19f73cc6b8c3368091e29b477ef9533cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/attrs.rs:661-669 | crates/hir-def/src/attrs.rs:673-681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"092e7d575456e57d9ca466dd1c113fc49c499b0735d7ddfbf347b634677154a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/hir-def/src/attrs.rs:1289-1297 | crates/hir-def/src/attrs.rs:1310-1317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/attrs.rs:1289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea8b30307e1b34a388ed56d0d7c6569c4b1e1ac1478a598586ff23edd916a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:1142-1150 | crates/hir-def/src/expr_store/lower.rs:1186-1194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"27806bf1182e9ceb34a21011a5d97a19a1f818e96bc02397c6a4890d504e75b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:2753-2761 | crates/hir-def/src/expr_store/lower.rs:2766-2774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2753}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa6476347d057f96d403a9a2efd76a9b66e207d9853460df1a01ebb1bbf6a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/import_map.rs:250-258 | crates/hir-def/src/import_map.rs:296-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir-def/src/import_map.rs:295\u0060 calls \u0060for_trait_item\u0060 and \u0060crates/hir-def/src/import_map.rs:249\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/import_map.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abdf2892510d627612e69f74a22dfab56dc8f2fe3d1f77554daf2a4d518b364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/nameres/path_resolution.rs:269-277 | crates/hir-def/src/nameres/path_resolution.rs:384-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/nameres/path_resolution.rs:269\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbb42f23e3328610f7e6d3e724814319d0368f26780c49ac087a074716e676a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/src.rs:155-163 | crates/hir-def/src/src.rs:170-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/src.rs:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/src.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d516a7f702a408aa814438ae43b84273388afc8036ae43186b6d4406efb6196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-expand/src/builtin/fn_macro.rs:880-888 | crates/hir-expand/src/builtin/fn_macro.rs:956-964 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"82857cd4a269f23cdebd94f15aab91962db117085bab9fd6ab4e10b56bc44fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ide/src/display.rs:849-857 | crates/hir-ide/src/display.rs:1122-1130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:849\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f4b7723cc7c709b696d8fcbd7dee381977aa210620a62ce4ba4600b8c0188a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ide/src/display.rs:868-876 | crates/hir-ide/src/display.rs:1141-1149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:868\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ce3ae0f739782d0e06fbf1cd9e134dc752b8b90549df4c18bb116272a6e071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): crates/hir-ide/src/display.rs:890-893 | crates/hir-ide/src/display.rs:925-933 | crates/hir-ide/src/display.rs:955-963 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:925\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c9efe36d1a81853c15bd45712180608d9e413e6d936391e8af22f3005c7c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/consteval.rs:210-218 | crates/hir-ty/src/consteval.rs:248-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/consteval.rs:210\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e133b7ced80cd76b395ae7deb95b1456e6cbd61ce54eb3d4481b4895011da82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/infer.rs:1540-1548 | crates/hir-ty/src/infer.rs:1554-1562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer.rs:1540\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77c0f1e7912c5cc892aa3609c4cc750e98a7c5130d164ea87800386443d2ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/infer/closure/analysis.rs:1228-1236 | crates/hir-ty/src/infer/closure/analysis.rs:1243-1251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/closure/analysis.rs:1228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"694961046cc8087c67a9c9e91d93dfbb05aa9583356cdf5cba9a1dd2b50f36af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/lower.rs:1506-1514 | crates/hir-ty/src/lower.rs:2285-2293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/lower.rs:1506\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"392bdeb15f379ba9fa090d92aa12c9772dc4a740f3c9d24670804471c0cf44d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/next_solver/def_id.rs:252-260 | crates/hir-ty/src/next_solver/def_id.rs:279-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/def_id.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c987609699f2959b2672c29e9a0503cf0d511cc8535bd017417da5eac977a659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir/src/semantics.rs:2617-2625 | crates/hir/src/semantics.rs:2629-2637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2617}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f4adb2fd3dc11ba8d91d03785613c854937740fc8b94423cf536946c9be9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir/src/semantics/source_to_def.rs:675-683 | crates/hir/src/semantics/source_to_def.rs:686-694 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/semantics/source_to_def.rs:675\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"766958cd69b65f5ba243a7da680bd914c201cf85322edf0dfc7dbdc735d3ba7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir/src/symbols.rs:290-298 | crates/hir/src/symbols.rs:331-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/symbols.rs:290\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/symbols.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fd676b125863865785208fb9ad80da3eb27231b7a7079e1ce37a3dcc681940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir/src/term_search/tactics.rs:170-178 | crates/hir/src/term_search/tactics.rs:216-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/term_search/tactics.rs:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d243f22c3a0b95293c38fe2b64450cb0eba71653e9a7645965e3207598edb8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/ide-assists/src/handlers/convert_closure_to_fn.rs:428-436 | crates/ide-assists/src/handlers/convert_closure_to_fn.rs:438-445 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"2473770a3b54bc529435d16d8c11b24f04de9a6ceb00835a5d4b03efde60dda4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ide-assists/src/handlers/convert_for_to_while_let.rs:37-46 | crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:103-112 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_for_to_while_let.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_for_to_while_let.rs:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_for_to_while_let.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"13639fec2a23b66c7598446b25e8faea824d3fb61e39067049d413cf2377447c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/ide-assists/src/handlers/destructure_struct_binding.rs:230-238 | crates/ide-assists/src/handlers/destructure_tuple_binding.rs:135-141 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/destructure_struct_binding.rs:230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/destructure_struct_binding.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af5efce53574347b9cfc007ca755917b6090d4da71909af7609ec49730a12af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/generate_delegate_trait.rs:285-294 | crates/ide-assists/src/handlers/generate_delegate_trait.rs:395-403 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_delegate_trait.rs:285\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb81695c81e8e32b0bfe360ff8d394f6968c251c9896ae567e62f7169e0f637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/generate_impl.rs:49-57 | crates/ide-assists/src/handlers/generate_impl.rs:97-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_impl.rs:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_impl.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f440b81d4c2335f9f1c0a1e1f1673b6a58e508cb915357bf6fe67f36886647e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/introduce_named_lifetime.rs:138-146 | crates/ide-assists/src/handlers/introduce_named_lifetime.rs:197-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/introduce_named_lifetime.rs:138\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/introduce_named_lifetime.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5677bf00cd799eb100b19f6d9f9671884faa5fde7c3031ca3fb1426135545a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/move_from_mod_rs.rs:31-39 | crates/ide-assists/src/handlers/move_to_mod_rs.rs:31-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/move_from_mod_rs.rs:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/move_from_mod_rs.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2697b88cdfef796b621d51e41a04b00247d90e3c018dba93e4a1054f8ddaa8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/replace_method_eager_lazy.rs:32-40 | crates/ide-assists/src/handlers/replace_method_eager_lazy.rs:142-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_method_eager_lazy.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc3d3d455ce36c7de019f371dc48d405f745331f847d3058b14dc747240b6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:601-609 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:694-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:601\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"913c0ecbdb8fdc15aa21305d8949c37a05e00c94c38a3345566773929feda00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-db/src/imports/import_assets.rs:377-385 | crates/ide-db/src/imports/import_assets.rs:392-400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/imports/import_assets.rs:377\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69cc97dcf0077f9ba15df198290c412ee74afccbb8c1e82a5dcf1bab811f621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-db/src/syntax_helpers/node_ext.rs:378-386 | crates/ide-db/src/syntax_helpers/node_ext.rs:406-414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/node_ext.rs:378\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe48555c8f7369d116f86018b703039a89c90949adb5c4a3bfcf72f3d5ca325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide/src/highlight_related.rs:134-142 | crates/ide/src/highlight_related.rs:258-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"47daf38671bedaecfcb305f2485461311e0cd5f7b182621903d88389b12a917b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide/src/signature_help.rs:516-524 | crates/ide/src/signature_help.rs:642-650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/signature_help.rs:516\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11ef2446c1528384f5998e43bcc3410defaa1ab6eb4d2305e5e26d2ab1bf41f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide/src/syntax_highlighting/highlight.rs:168-176 | crates/ide/src/syntax_highlighting/highlight.rs:185-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/syntax_highlighting/highlight.rs:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"82865a99e8e621142378053acb1f79b326835c04701343b7d6dc3214b8be3ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/mbe/src/lib.rs:165-173 | crates/mbe/src/lib.rs:225-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/mbe/src/lib.rs:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/lib.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8c4fddda1d6c39a9cbb9374873d3c3f0e905a264e9011c5018c60bfabccaf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/proc-macro-srv-cli/src/main_loop.rs:51-59 | crates/proc-macro-srv-cli/src/main_loop.rs:477-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/proc-macro-srv-cli/src/main_loop.rs:488\u0060 calls \u0060read\u0060, \u0060write\u0060 and \u0060crates/proc-macro-srv-cli/src/main_loop.rs:63\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main_loop.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea653153ee5a459f8a12649824641d24036639115958c628e55d978cda6efed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:1179-1187 | crates/rust-analyzer/src/cli/analysis_stats.rs:1261-1269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1179\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"54476c2cb77ed11620c9d24e546f6fa0950371adab9fc600a92233adfdea05a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/rust-analyzer/src/config.rs:2467-2475 | crates/rust-analyzer/src/config.rs:2478-2485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/config.rs:2467\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b9b988985ec55f4d6f5837cf26e1f75006eaef6daeb2b42063baa440125d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): xtask/src/codegen/grammar/ast_src.rs:225-233 | xtask/src/codegen/grammar/ast_src.rs:234-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/grammar/ast_src.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade3888ad44757f7431746267fe47674ffa810e546e4deb03ba3ca970511b50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): crates/syntax/src/ast/syntax_factory/constructors.rs:172-179 | crates/syntax/src/ast/syntax_factory/constructors.rs:1579-1586 | crates/syntax/src/ast/syntax_factory/constructors.rs:1728-1735 | crates/syntax/src/ast/syntax_factory/constructors.rs:1771-1778 | crates/syntax/src/ast/syntax_factory/constructors.rs:1806-1813 | crates/syntax/src/ast/syntax_factory/constructors.rs:1874-1881 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1737\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1780\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ff7e0be9d5ff0b7ad720a397bc5374c3c9db9871dcb0c3fe93e3a87bc73f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/hir-ide/src/display.rs:849-856 | crates/hir-ide/src/display.rs:868-875 | crates/hir-ide/src/display.rs:1122-1129 | crates/hir-ide/src/display.rs:1141-1148 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:849\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d3051ba751d4724068bb0ff5646b8de48a92f6e6244efdcaddca5e1ac68d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/syntax/src/ast/syntax_factory/constructors.rs:353-360 | crates/syntax/src/ast/syntax_factory/constructors.rs:401-408 | crates/syntax/src/ast/syntax_factory/constructors.rs:1484-1491 | crates/syntax/src/ast/syntax_factory/constructors.rs:2158-2165 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:353\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"243b8fc4b50e2ad5589f39e47b01c754b606741f0119f4ade22e06a1487ddebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/syntax/src/ast/syntax_factory/constructors.rs:353-360 | crates/syntax/src/ast/syntax_factory/constructors.rs:401-408 | crates/syntax/src/ast/syntax_factory/constructors.rs:1800-1807 | crates/syntax/src/ast/syntax_factory/constructors.rs:2158-2165 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:353\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:361\u0060 calls \u0060map_children\u0060, \u0060attrs\u0060, \u0060syntax\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1808\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac1fcb309a00f539fcd264562ad04bd8d61a520a3951b06b814eb1f1de0fcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/syntax/src/ast/syntax_factory/constructors.rs:420-427 | crates/syntax/src/ast/syntax_factory/constructors.rs:1821-1829 | crates/syntax/src/ast/syntax_factory/constructors.rs:1951-1958 | crates/syntax/src/ast/syntax_factory/constructors.rs:2214-2221 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b8a06597206afec7694777ca2219e9603ce6f5d9e98a0b0f4e0aae3c75c5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/hir-ty/src/next_solver/util.rs:646-655 | crates/hir-ty/src/next_solver/util.rs:674-683 | crates/hir-ty/src/next_solver/util.rs:705-714 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/next_solver/util.rs:646\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b8e66bfc08614abee51ef1ec8ca602a3dbb213f71457b22e20378db3df9a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/ide-assists/src/handlers/apply_demorgan.rs:230-237 | crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs:270-277 | crates/ide-assists/src/handlers/unwrap_return_type.rs:74-81 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/unwrap_return_type.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/apply_demorgan.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f8d151cff8a651d6e8a26011b6911937546332de22c1c1849ac0ca0d075d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/ide-db/src/search.rs:1247-1254 | crates/ide-db/src/search.rs:1263-1270 | crates/ide-db/src/search.rs:1275-1282 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d5394fa6434174a49d1fb9999df463536f2f01c22cb646a53ffa882fe3c4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/ide/src/syntax_highlighting/highlight.rs:165-172 | crates/ide/src/syntax_highlighting/highlight.rs:182-189 | crates/ide/src/syntax_highlighting/highlight.rs:199-206 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/syntax_highlighting/highlight.rs:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7259f73d81ff7d326f92d356e67befe4a449b1fb6593d4b8c57da93e622702c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:166-173 | crates/syntax/src/ast/syntax_factory/constructors.rs:1484-1491 | crates/syntax/src/ast/syntax_factory/constructors.rs:1868-1875 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:166\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cabfe818d3bb2b144fa48beede13840d58ce3edeccf55390072784a122cf23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-def/src/expr_store/scope.rs:163-170 | crates/hir-def/src/expr_store/scope.rs:182-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/scope.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"256ac17c84b2a478ceb0a4293e943ca6745695185075f1ab6df9442ffa9e2611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-def/src/find_path.rs:406-413 | crates/hir-def/src/find_path.rs:423-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf415b515fd9059a5b62df8fff124a38a2ee039e568f53d885ab1ed1a267e3ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-def/src/item_scope.rs:657-664 | crates/hir-def/src/item_scope.rs:674-681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/item_scope.rs:657\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e252c19fc854de93f51ab3d2a327e7283e5719322bfe3ea1fe79ebaf6cce59a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-def/src/nameres/collector.rs:691-699 | crates/hir-def/src/nameres/collector.rs:748-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/nameres/collector.rs:691\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"703119fe8fd2ba22d02361e40e4ab0f41929e8646a1d08f87813447c9ff70270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-def/src/nameres/collector.rs:2569-2576 | crates/hir-def/src/nameres/collector.rs:2645-2652 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/nameres/collector.rs:2569\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-def/src/nameres/collector.rs:2578\u0060 calls \u0060empty\u0060, \u0060set\u0060 and \u0060crates/hir-def/src/nameres/collector.rs:2654\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"35968038a53181819c4ddf7e33bdf7adabaa649d999c2a55311a064fc1ebade1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-def/src/nameres/collector.rs:2583-2590 | crates/hir-def/src/nameres/collector.rs:2655-2662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/nameres/collector.rs:2583\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a296f90b4f8e140ee5e9808c3655bba2ec9de9e285f3f04d2337fc5c35e6bd9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-expand/src/attrs.rs:325-332 | crates/syntax/src/ast/token_ext.rs:278-285 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/attrs.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2a848864c8cbab5eff5e4b3e64a2758761d2d154f1a2d79e7499557f86fc35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-ty/src/infer.rs:2352-2359 | crates/hir-ty/src/infer.rs:2401-2408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4316a5584197809b5bb588b9a6f2a22cf08f72450afab465eb004cd902aaf63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:1351-1358 | crates/hir-ty/src/mir/eval.rs:1381-1388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d79c774c3039fbe04d3ce9f294b114a64042bf6ebb221d7ab615969c437c455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): crates/hir-ty/src/next_solver/consts/valtree.rs:136-139 | crates/hir-ty/src/next_solver/consts/valtree.rs:165-172 | crates/hir-ty/src/next_solver/consts/valtree.rs:190-197 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/next_solver/consts/valtree.rs:165\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0032faaca5af872acb4273f6115ecfed00474ce3769612d7c22d09948b5dc0d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir/src/lib.rs:2515-2522 | crates/hir/src/lib.rs:2524-2531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":2515}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e0d5355eddd89d09e0dc82dca809499772f75ae0d24a898d5712839de17f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir/src/semantics/child_by_source.rs:75-82 | crates/hir/src/semantics/child_by_source.rs:102-109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/semantics/child_by_source.rs:75\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/child_by_source.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0928bb3af12a05d31b5129a4464fdaaed51cebc94eeee664c75a736e4c9cb970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir/src/semantics/source_to_def.rs:627-634 | crates/hir/src/semantics/source_to_def.rs:638-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/semantics/source_to_def.rs:627\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9c17ed34c494e6392581db357e9f8f80ca67f30f65d2f439ed8edd46782609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir/src/source_analyzer.rs:1891-1898 | crates/hir/src/source_analyzer.rs:2096-2103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/source_analyzer.rs:1891\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c0adc77ca1be85174ffcd5c3db3d80d14819ba800579e4d12eb563077b0dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/bind_unused_param.rs:27-34 | crates/ide-assists/src/handlers/remove_unused_param.rs:69-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/bind_unused_param.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0890ba189602eed468c02b417633733cea8baa6e4e81282c265dc48290f050c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/convert_closure_to_fn.rs:115-122 | crates/ide-assists/src/handlers/convert_closure_to_fn.rs:126-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_closure_to_fn.rs:115\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8d976e799696b19705d7a50e7ae7b71e6dac92a37b9d0411234ef5573ad687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:62-73 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:64-75 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"174774983ff00ef94c88235dd4c0551ec49b9689d1cfcc0961a7048968cc74f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:290-298 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:348-356 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3031675ff45c1d7718efa82aa4fea6023219d01ed12a15049604dc78db6b0b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/convert_to_guarded_return.rs:125-132 | crates/ide-assists/src/handlers/convert_to_guarded_return.rs:204-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_to_guarded_return.rs:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_to_guarded_return.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc15be4db4815fa6ea947bd8cb936d67da9b5c2bb190378eb20d1ab33e6b47ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/extract_type_alias.rs:96-103 | crates/ide-assists/src/handlers/generate_fn_type_alias.rs:105-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_type_alias.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"629ce9d3c7b63c7e001a54621afcb930296fa85a83e3b4430fdeadbb5d1e2a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/extract_type_alias.rs:156-163 | crates/ide-assists/src/handlers/extract_type_alias.rs:165-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_type_alias.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb02b3b789dc452eee7538a6ee769497c9bd777c6e1bb2669e2c27dbe51cac4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/generate_enum_is_method.rs:58-66 | crates/ide-assists/src/handlers/generate_enum_projection_method.rs:136-144 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs\u0060 and \u0060crates/ide-assists/src/handlers/generate_enum_projection_method.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_enum_is_method.rs:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_enum_is_method.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63bd81ddf6121742bfff8a97131abba0d2e65edf3dadd8a205cee63682f5ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-completion/src/completions/attribute.rs:101-108 | crates/ide-completion/src/completions/item_list.rs:47-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/attribute.rs:101\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ad903b3b0739568913534bc5dd1da260085984e08d2ae4fd1240ca2bfc1f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-completion/src/completions/expr.rs:172-179 | crates/ide-completion/src/completions/type.rs:95-102 \u2014 before extracting anything, compare \u0060crates/ide-completion/src/completions/expr.rs\u0060 and \u0060crates/ide-completion/src/completions/type.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/expr.rs:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e88b84688b1c64d312078eceea1f05a9624b361d62afd78849d17bf508296b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide/src/hover/render.rs:122-129 | crates/ide/src/hover/render.rs:167-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad50d10ca430f3c0caef66ad5017647197920ffe8e27b7d55b01350deda4b729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/intern/src/gc.rs:137-144 | crates/intern/src/gc.rs:150-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/gc.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10a747bc8f1a4b688337b5921228101d72005570557f2ad696f57074852bf8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): crates/rust-analyzer/src/cli/analysis_stats.rs:1505-1508 | crates/rust-analyzer/src/cli/analysis_stats.rs:1521-1524 | crates/rust-analyzer/src/cli/analysis_stats.rs:1543-1550 | crates/rust-analyzer/src/cli/analysis_stats.rs:1564-1571 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1543\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1541\u0060 calls \u0060file_path\u0060, \u0060file_id\u0060, \u0060line_index\u0060 and \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1505\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80cf17d4ef5a27fc0c3e455fe9f6f02d6b8631127fd20bfbd4b54f3120ce31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/smol_str/src/serde.rs:45-52 | lib/smol_str/src/serde.rs:55-62 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/smol_str/src/serde.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"089eb37c65281fd8c5704d0c885094adc67c3f3f79cf181c03929f4745256b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 7): crates/syntax/src/ast/syntax_factory/constructors.rs:594-600 | crates/syntax/src/ast/syntax_factory/constructors.rs:797-803 | crates/syntax/src/ast/syntax_factory/constructors.rs:851-852 | crates/syntax/src/ast/syntax_factory/constructors.rs:1076-1082 | crates/syntax/src/ast/syntax_factory/constructors.rs:1660-1666 | crates/syntax/src/ast/syntax_factory/constructors.rs:1710-1718 | crates/syntax/src/ast/syntax_factory/constructors.rs:1754-1762 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:594\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060fields\u0060 to \u0060impl IntoIterator\u003CItem = ast::Expr\u003E\u0060 in one and \u0060impl IntoIterator\u003CItem = ast::RecordExprField\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"198a930323fe2a15b2b734384be7cc8c54c1f32af125ccc37ce137cf5f449e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/syntax/src/syntax_editor/edits.rs:60-66 | crates/syntax/src/syntax_editor/edits.rs:76-82 | crates/syntax/src/syntax_editor/edits.rs:94-100 | crates/syntax/src/syntax_editor/edits.rs:106-112 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/syntax_editor/edits.rs:60\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6331d0403436dbb2a319877fddd0002a2956e6789e348bc3268ae43d3870932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/hir-def/src/item_scope.rs:391-397 | crates/hir-def/src/item_scope.rs:402-408 | crates/hir-def/src/item_scope.rs:413-419 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/item_scope.rs:391\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc73e04e545f68d88bf1ebd6713c2bdf777c14b084398855c0bf204a8e0c15f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/hir-expand/src/attrs.rs:323-329 | crates/syntax/src/ast/token_ext.rs:276-282 | crates/syntax/src/ast/token_ext.rs:320-326 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-expand/src/attrs.rs:323\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/attrs.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd3bae0b8b9622160d5a04fb181c0e56f25679fe59be5b6b9523d34abeb4b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/hir-ty/src/db.rs:380-386 | crates/hir-ty/src/db.rs:409-415 | crates/hir-ty/src/db.rs:439-445 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/db.rs:380\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/db.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ad60ab51dd0054a3b4ed4936cd84cf999ef47879b9bdbfc68ced8e61ef436d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/hir/src/lib.rs:5723-5729 | crates/hir/src/lib.rs:5738-5744 | crates/hir/src/lib.rs:5749-5755 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5723}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad84c15046bbd645a335e7abaa6d7ed370fc7d86ecc3032961be77c7eace8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/ide/src/hover/render.rs:120-127 | crates/ide/src/hover/render.rs:166-172 | crates/ide/src/hover/render.rs:983-989 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dacaff61cd2c231df259fef195d4f6d848129017ac6b110e6ba6b0ae47ddc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/ide/src/hover/render.rs:166-172 | crates/ide/src/hover/render.rs:280-286 | crates/ide/src/hover/render.rs:983-989 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/render.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31410412a09966b018f4cab8754611f35a611ea10a1fbb142fbf3631e7e8a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/parser/src/grammar/items/adt.rs:149-155 | crates/parser/src/grammar/items/adt.rs:161-167 | crates/parser/src/grammar/items/adt.rs:221-227 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/parser/src/grammar/items/adt.rs:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items/adt.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e3da18c8deefecfe0cbec906181cba61a6040e098cb934c6af8e3a069d3224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:1472-1478 | crates/hir-def/src/expr_store/lower.rs:1512-1518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store/lower.rs:1472\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1cb7ab1a9d0d56a3c8cfceb578c8ee8b734c44cb27e6889ff1cf53565ac002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-def/src/item_scope.rs:259-265 | crates/hir-def/src/item_scope.rs:274-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/item_scope.rs:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3390d6395405a83d6450e43a37930248254299da0354dace15073cd762b38960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-def/src/item_scope.rs:774-780 | crates/hir-def/src/item_scope.rs:792-798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/item_scope.rs:774\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb3b9ad98274d0848efb3eb7e69d2ffce9b609213407d2a19fc16602416a80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/hir-def/src/resolver.rs:198-208 | crates/hir-def/src/resolver.rs:382-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/resolver.rs:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7847564feb95102f1f314be8360cc48076357f8a9c7b9a7e3fdc9acbd1a2a596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-def/src/resolver.rs:230-236 | crates/hir-def/src/resolver.rs:459-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/resolver.rs:230\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d64ad83c12d88ed2c5bdd7ee8731c5f371480f671b1df61ae268f944c32b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-expand/src/builtin/derive_macro.rs:1036-1045 | crates/hir-expand/src/builtin/derive_macro.rs:1098-1107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-expand/src/builtin/derive_macro.rs:1036\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"2049f19f9ae549508f06fa245760329c8c8d4e9a6e979764b2a53862f7b1a242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ide/src/display.rs:995-1001 | crates/hir-ide/src/display.rs:1021-1027 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:995\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"5562d817bbe9398a6c1836c5bd5b861984750531ac335df1cd49bf9ebe403d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir/src/source_analyzer.rs:1318-1324 | crates/hir/src/source_analyzer.rs:1409-1415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/source_analyzer.rs:1318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a33dbb5032085014c6016fa20e330cc2be5bbc0224614eb6188de72eb4b8054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:160-168 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:149-157 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0907a5c52da8bdcfd672d8e50874c064b8321a046c7b62590cfd24070f3cf2d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/ide-assists/src/handlers/generate_default_from_new.rs:98-104 | crates/ide-assists/src/utils.rs:637-642 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/generate_default_from_new.rs:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_default_from_new.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5610f4b59c02d29732c7da8c9f1bcac83f169dce0ed4e5696cd7f5cd7111b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-assists/src/handlers/introduce_named_lifetime.rs:102-108 | crates/ide-assists/src/handlers/introduce_named_lifetime.rs:171-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/introduce_named_lifetime.rs:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/introduce_named_lifetime.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"94232a228317a67c72a6b6a37337a0f325fd6c04959c8b02c701d0bf0cdda867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-assists/src/handlers/remove_dbg.rs:102-108 | crates/ide-assists/src/handlers/remove_dbg.rs:110-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_dbg.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee1f46308648c2dac78b72c3193f27a9d3d751ba49232f145d2e3e886f51938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-db/src/active_parameter.rs:183-189 | crates/syntax/src/ast/node_ext.rs:59-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/active_parameter.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b435362821d65a19bf40367f1ff2af65a06763a4e59a1b010159629d12ba8a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-db/src/syntax_helpers/node_ext.rs:179-185 | crates/ide-db/src/syntax_helpers/node_ext.rs:207-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/node_ext.rs:179\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d0063608398b21a13bbffa934860d9aca3352be2955c56c6a40a772c0ff3b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs:62-68 | crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs:70-76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/mismatched_arg_count.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"885eb45ac2e0630f374841ab99831f1eb3c56d07ace76141ea9785629d81d23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-diagnostics/src/handlers/type_mismatch.rs:392-398 | crates/ide-diagnostics/src/handlers/type_mismatch.rs:416-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf250c58ddecdd289993bd518c08f48ea6e761bd367f6beb68edcfcc0e350e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide/src/inlay_hints/lifetime.rs:79-85 | crates/ide/src/inlay_hints/lifetime.rs:146-152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide/src/inlay_hints/lifetime.rs:145\u0060 calls \u0060path\u0060, \u0060as_ref\u0060, \u0060and_then\u0060 and \u0060crates/ide/src/inlay_hints/lifetime.rs:77\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2135c912dae6cd36bb2754559004dbd1ee73c118406063ce0fed423ef300fc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide/src/inlay_hints/param_name.rs:67-73 | crates/ide/src/inlay_hints/param_name.rs:117-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/param_name.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d9f84bf0628725f79884433563c0df6546b4c46cf5760a3529f32a9a5ba286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide/src/signature_help.rs:595-601 | crates/ide/src/signature_help.rs:729-735 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d537c05cce1288681385ba55d4c88d4d1757d7b2f976763573120cca85c3421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide/src/typing.rs:259-265 | crates/ide/src/typing.rs:295-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide/src/typing.rs:303\u0060 calls \u0060syntax\u0060, \u0060descendants\u0060, \u0060any\u0060 and \u0060crates/ide/src/typing.rs:266\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/typing.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"562e3cbf38ea506ed3f135d6623c012d9e873ee811fb540d675db73da5366214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:371-377 | crates/proc-macro-api/src/legacy_protocol/msg/flat.rs:390-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"be97fb4db3c5149abd7d3eff93e0fbbde59ed4c92aabf45b6b57240db249efef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/proc-macro-srv/src/token_stream.rs:302-308 | crates/proc-macro-srv/src/token_stream.rs:318-324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/proc-macro-srv/src/token_stream.rs:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d149c5d83f99d42015483488e7c3e6c06fa84bb920ee35ff6b8d9a4fdf648b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:1197-1203 | crates/rust-analyzer/src/cli/analysis_stats.rs:1235-1241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1197\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d09cdc5f63c9723713d2d655acd7979d3b69e9f75d2f4ee2f8c13aa924ba68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/span/src/lib.rs:93-99 | crates/span/src/lib.rs:112-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/span/src/lib.rs:92\u0060 calls \u0060alternate\u0060 and \u0060crates/span/src/lib.rs:111\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/lib.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cd11e3122be0f5f3b8f45b56eabe98d9256e0f1bbf0ccbf1bd5d6a2fe93381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:538-545 | crates/syntax/src/ast/syntax_factory/constructors.rs:1626-1632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:538\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4a2c10ad5164bac6f9e5e8cc2c344f756fcf2dcccbc455c766817325bb5dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:783-790 | crates/syntax/src/ast/syntax_factory/constructors.rs:925-932 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:783\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ff118fa76f761a03f78fb716fb14eda6ebf3278e8ba91a96195edc7e584889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): crates/syntax/src/ast/syntax_factory/constructors.rs:174-179 | crates/syntax/src/ast/syntax_factory/constructors.rs:650-655 | crates/syntax/src/ast/syntax_factory/constructors.rs:1546-1551 | crates/syntax/src/ast/syntax_factory/constructors.rs:1581-1586 | crates/syntax/src/ast/syntax_factory/constructors.rs:1730-1735 | crates/syntax/src/ast/syntax_factory/constructors.rs:1773-1778 | crates/syntax/src/ast/syntax_factory/constructors.rs:1808-1813 | crates/syntax/src/ast/syntax_factory/constructors.rs:1876-1881 | crates/syntax/src/ast/syntax_factory/constructors.rs:1940-1945 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:649\u0060 calls \u0060map_children\u0060, \u0060attrs\u0060, \u0060syntax\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:173\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da0e70d890e33e31a476ac25cbab72b9035126676922a4a72e9ba40916a1fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 10): crates/syntax/src/ast/syntax_factory/constructors.rs:212-217 | crates/syntax/src/ast/syntax_factory/constructors.rs:882-887 | crates/syntax/src/ast/syntax_factory/constructors.rs:939-944 | crates/syntax/src/ast/syntax_factory/constructors.rs:955-960 | crates/syntax/src/ast/syntax_factory/constructors.rs:984-989 | crates/syntax/src/ast/syntax_factory/constructors.rs:1337-1338 | crates/syntax/src/ast/syntax_factory/constructors.rs:1351-1352 | crates/syntax/src/ast/syntax_factory/constructors.rs:1412-1413 | crates/syntax/src/ast/syntax_factory/constructors.rs:1461-1462 | crates/syntax/src/ast/syntax_factory/constructors.rs:1604-1605 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:212\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:212\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1337\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5aae75edc4b4749ff5eacc1b8ebedd47e6cc9ae3e2d9d89df63f13aaf2abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crates/syntax/src/ast/syntax_factory/constructors.rs:321-326 | crates/syntax/src/ast/syntax_factory/constructors.rs:1064-1069 | crates/syntax/src/ast/syntax_factory/constructors.rs:1133-1138 | crates/syntax/src/ast/syntax_factory/constructors.rs:1365-1370 | crates/syntax/src/ast/syntax_factory/constructors.rs:2286-2291 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:321\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd8f41533eaae17f652baedb9e04497e1d30836c43148b98b30e38fa55a0c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/hir-def/src/visibility.rs:336-341 | crates/hir-def/src/visibility.rs:343-348 | crates/hir-def/src/visibility.rs:350-355 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/visibility.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e419736fd21c2ea75670174f1fb14fdfedaf2d097db7844694613a3bdbda8655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/hir/src/semantics.rs:2308-2313 | crates/hir/src/semantics.rs:2315-2320 | crates/hir/src/semantics.rs:2322-2327 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff80a7241dec1d605f6d97a1bba53c3ee3e69f4d461a3d66bd36dcba085dad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/syntax/src/ast/make.rs:492-497 | crates/syntax/src/ast/make.rs:1008-1013 | crates/syntax/src/ast/make.rs:1308-1313 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6ded39e7bfd2edf3e5d54354786e890094b4dda2d79bc08ca034a490fb2a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:181-187 | crates/syntax/src/ast/syntax_factory/constructors.rs:362-367 | crates/syntax/src/ast/syntax_factory/constructors.rs:2167-2172 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:368\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2173\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10d5185d3146a05c5c98acf61ac542a76b4ed2bc51e86e94095b3a3d7d0bd8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:181-186 | crates/syntax/src/ast/syntax_factory/constructors.rs:1817-1822 | crates/syntax/src/ast/syntax_factory/constructors.rs:1947-1952 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13236ce84ec97911bd81b82e2a2171155dabfa4de694b8dd8cd157c32b71acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:361-367 | crates/syntax/src/ast/syntax_factory/constructors.rs:409-415 | crates/syntax/src/ast/syntax_factory/constructors.rs:2166-2172 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:368\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:416\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d97ee3f62e2ddb8cd4c59c336c2966351cddbdac49e3aa358d54912b0cb1bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20136 lines \u00D7 5): crates/syntax/src/ast/syntax_factory/constructors.rs:465-470 | crates/syntax/src/ast/syntax_factory/constructors.rs:1553-1553 | crates/syntax/src/ast/syntax_factory/constructors.rs:1589-1589 | crates/syntax/src/ast/syntax_factory/constructors.rs:1606-1611 | crates/syntax/src/ast/syntax_factory/constructors.rs:1738-1744 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:465\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fd5236cdf204932609ec7f0cce95a4e9cd705e05ab0ab3150c46716915b390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:1179-1184 | crates/hir-def/src/expr_store/lower.rs:1208-1213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e8ebb478934ba9b41ca95769b6aab1449251f46c951217a2afb82c09f27b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-def/src/item_scope.rs:244-249 | crates/hir-def/src/item_scope.rs:259-264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/item_scope.rs:244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4247c7ceae5c872e8f84fca9d1adbf6f49037ceada12983478013383492b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/infer/coerce.rs:1000-1005 | crates/hir-ty/src/infer/coerce.rs:1007-1012 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5aade308817a4f14b373c3277b868e33d6b45c0506d8ccc531df427e5593a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:234-239 | crates/hir-ty/src/mir/eval/shim.rs:246-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:234\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13223db344afc168b43987e9c2eb5745e00752ebc03e2aa1c33dc46d8e7d94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:1136-1141 | crates/hir-ty/src/mir/eval/shim.rs:1168-1173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:1136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c71fd8c82e06c83b16a7c42a8209d5273eb2dae38c3e031fa1f181849d35946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/next_solver/consts/valtree.rs:162-167 | crates/hir-ty/src/next_solver/consts/valtree.rs:235-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/next_solver/consts/valtree.rs:162\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"666913c67d565fb04117ae5032eda9726e3eb691a678b7a6b96703fdb7d3208b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/next_solver/infer/errors.rs:161-166 | crates/hir-ty/src/next_solver/infer/errors.rs:168-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dfe9ca1f608ed4b6c1a49769adf1e2b7ca35bbd0000448021fc7a1b849179f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/next_solver/interner.rs:1186-1191 | crates/hir-ty/src/next_solver/interner.rs:1200-1205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/next_solver/interner.rs:1186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060def_id\u0060 to \u0060Self::ImplOrTraitAssocTermId\u0060 in one and \u0060Self::InherentAssocTermId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ea470564b9935e50c6c18759940e729535ab036891777942877d74aa1a3ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir/src/diagnostics.rs:2002-2007 | crates/hir/src/diagnostics.rs:2018-2023 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ce1dcbb68dfbbd4ff9939e52f4462c00c7208088755e939105c59f7a5629fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir/src/source_analyzer.rs:1546-1552 | crates/hir/src/source_analyzer.rs:1563-1569 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf1745583787a3f4d855b79849ce099a34077084d78268dafe36ccbe8c28033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir/src/term_search/expr.rs:130-135 | crates/hir/src/term_search/expr.rs:159-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/expr.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae546ff00070c15f3c1310590560accd76cfd09fafde50b01935fd120d9fbcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir/src/term_search/expr.rs:130-135 | crates/hir/src/term_search/expr.rs:271-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/expr.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd40f0df3f1c1ff259cb2fd2b5f18445339e5cba528d932599e41e020e059e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/handlers/convert_bool_then.rs:86-91 | crates/ide-assists/src/handlers/convert_bool_then.rs:271-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_then.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd52e63bf6a43946bf2dadb5022f2cfafabdfdd52a22b3ff14418768064591b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs:45-50 | crates/ide-assists/src/handlers/convert_into_to_from.rs:60-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"223a12748a13e1ca3742c9a24b943b8f66948c854409baea53277586c3d23d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ide-assists/src/handlers/expand_glob_import.rs:45-56 | crates/ide-assists/src/handlers/expand_glob_import.rs:103-114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide-assists/src/handlers/expand_glob_import.rs:116\u0060 calls \u0060get_export_visibility_kind\u0060 and \u0060crates/ide-assists/src/handlers/expand_glob_import.rs:58\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/expand_glob_import.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6032ca745da60c2467fb6725367c23915e6974881b17b03b8ff70686b775d717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/handlers/generate_new.rs:82-89 | crates/ide-assists/src/handlers/qualify_method_call.rs:48-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_new.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecf57ec7fb27d1ef4c23349f87361befa4475336acb641ee1795d5647cfa564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-assists/src/handlers/remove_unused_param.rs:165-171 | crates/ide-assists/src/handlers/remove_unused_param.rs:190-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/remove_unused_param.rs:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_unused_param.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8003b2e47890ffedc65bde6dab0cdb87a3fff08d467376696a953fabc5b8008f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/handlers/unwrap_return_type.rs:41-46 | crates/ide-assists/src/handlers/wrap_return_type.rs:44-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/unwrap_return_type.rs:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_return_type.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e6531c89683a75e8b957a2c6567dc3fe7c6eb6f746a82edd83104ee1bf24e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:56-61 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:166-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:172\u0060 calls \u0060expr_path\u0060, \u0060ident_path\u0060 and \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:63\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b93493818507e12222b8e75028b610e4072d70f27a7d8e770e6dabbbf78e23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:197-202 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:231-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:197\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2427cff5dfea721aca5d65c00c9ef318a7287612c6d615b0190087f1e2d565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:391-397 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:671-676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:391\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"370148e2d1d1b4afc671f71643d5d3cee404127ef37b5023a0847e4e129ea412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:503-508 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:536-541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:503\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebcecd1cea5bc3ec614121e7c2c5966e810234688db56159095548d9df667fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ide/src/interpret.rs:25-34 | crates/ide/src/view_mir.rs:15-24 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/interpret.rs:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/interpret.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"484f21a216619c0dc5de6be03b1d87291e5dd2bb4e344e9a45f30a14282d78bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/load-cargo/src/lib.rs:596-601 | crates/load-cargo/src/lib.rs:633-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"451150809cda5b5c6e70712a41f49d0ab4c0d5e2835b3ee243c728a3ec39b99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/macros/src/lib.rs:101-106 | crates/macros/src/lib.rs:212-217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/macros/src/lib.rs:101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/macros/src/lib.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"5630cbd0a4f9289a63b1f096adb291e336193404f891a037346ffcd28c7e9635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/proc-macro-srv-cli/src/main_loop.rs:137-143 | crates/proc-macro-srv-cli/src/main_loop.rs:520-525 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main_loop.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b01411bac0e2e23cc227290f22729343baaa2d10dfc5c8617c09976fc0171b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:456-461 | crates/rust-analyzer/src/cli/analysis_stats.rs:1339-1344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:456\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"042708ee9b6d338c3344bc3da68abe0e086162dd7101fb02a8068f852c6675f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:844-858 | crates/rust-analyzer/src/cli/analysis_stats.rs:1265-1279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:844\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"687560920a6b5c62f5b897d35ce39155d998c5c00c89288f83290b17e7a30604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/rust-analyzer/src/handlers/request.rs:1074-1079 | crates/rust-analyzer/src/handlers/request.rs:1108-1113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/handlers/request.rs:1074\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b1c3f6cd39145972087c91e5a27cd1235884df363e4554bd2d13d403f3d669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/rust-analyzer/src/main_loop.rs:678-688 | crates/rust-analyzer/src/main_loop.rs:780-785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/main_loop.rs:678\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"4704de67981b64aa62f7d8e55298363aabc0a3fda55e11acbf4c0596ebf47e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/syntax/src/algo.rs:82-90 | crates/syntax/src/algo.rs:102-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/algo.rs:82\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060u\u0060 to \u0060\u0026SyntaxNode\u0060 in one and \u0060impl Element\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/algo.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0339bca445fe8413d46f9fc102066b6840c6ef2e668e162b0e06cd23f0aaa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:475-482 | crates/syntax/src/ast/syntax_factory/constructors.rs:1522-1529 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:475\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"9302455a3619d9fdd656eb743d118e43718fecd1c23e7097e1d650e7dfa7ca76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 8): crates/syntax/src/ast/syntax_factory/constructors.rs:57-58 | crates/syntax/src/ast/syntax_factory/constructors.rs:565-570 | crates/syntax/src/ast/syntax_factory/constructors.rs:605-606 | crates/syntax/src/ast/syntax_factory/constructors.rs:1087-1088 | crates/syntax/src/ast/syntax_factory/constructors.rs:1098-1103 | crates/syntax/src/ast/syntax_factory/constructors.rs:1119-1120 | crates/syntax/src/ast/syntax_factory/constructors.rs:1306-1307 | crates/syntax/src/ast/syntax_factory/constructors.rs:2284-2285 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:57\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e73f555024efc7af25a04eee9b04c9ea948ec2550d2ca5fd40b95d3c7a8b37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 6): crates/syntax/src/ast/syntax_factory/constructors.rs:124-125 | crates/syntax/src/ast/syntax_factory/constructors.rs:463-464 | crates/syntax/src/ast/syntax_factory/constructors.rs:752-757 | crates/syntax/src/ast/syntax_factory/constructors.rs:764-769 | crates/syntax/src/ast/syntax_factory/constructors.rs:902-904 | crates/syntax/src/ast/syntax_factory/constructors.rs:2011-2012 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:752\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:752\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:124\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"145d96028240411c47b6571bb085d2b339cd74479971d35ab18ea5479a566884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): crates/syntax/src/ast/syntax_factory/constructors.rs:572-574 | crates/syntax/src/ast/syntax_factory/constructors.rs:1090-1095 | crates/syntax/src/ast/syntax_factory/constructors.rs:1105-1110 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffeb2a9d7e0c80a3b78b1c3a74283c4e6500fa53058fdc3587f00204c0e2de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:1146-1151 | crates/syntax/src/ast/syntax_factory/constructors.rs:1165-1170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1146\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f572b738755f0aacdd1aa9b6ca44234f49fc8fdf6ea60b71de7d60b1b90db000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:1192-1197 | crates/syntax/src/ast/syntax_factory/constructors.rs:1225-1230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1192\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4aba8fbe83cd58a859d8fbcd0c3bf3fb527548893b07edbd27fb5220d1319ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:1321-1326 | crates/syntax/src/ast/syntax_factory/constructors.rs:1340-1345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1321\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3972d98c307a954bacdaf82dfb646cf1671f16b257d77bc1af85f500fa935f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:2025-2032 | crates/syntax/src/ast/syntax_factory/constructors.rs:2037-2044 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2025\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":2025}}}],"partialFingerprints":{"codehealthFindingId/v1":"977b1c4d4eb395c82e1f0760f0bf30f38119c0b4e297b8ea8b37afcdd60a4302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/syntax/src/syntax_editor/edits.rs:135-140 | crates/syntax/src/syntax_editor/edits.rs:152-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c1ebafb038845bde5b44a98666900e85e082a761e574d65fa9eecf12b84b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/syntax/src/validation.rs:403-412 | crates/syntax/src/validation.rs:417-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/validation.rs:403\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ty\u0060 to \u0060ast::DynTraitType\u0060 in one and \u0060ast::ImplTraitType\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf21567d42277564b916d53854bab4711157faacbe8e334d0ddb9583bdb2fcc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): xtask/src/codegen/diagnostics_docs.rs:35-40 | xtask/src/codegen/feature_docs.rs:34-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/diagnostics_docs.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67ceadf5862c92083704d6c07d669702473aca4d0d6e8f6a2a977f1030036be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): crates/ide/src/highlight_related.rs:315-319 | crates/ide/src/highlight_related.rs:398-402 | crates/ide/src/highlight_related.rs:505-509 | crates/ide/src/highlight_related.rs:598-602 | crates/ide/src/highlight_related.rs:798-800 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/highlight_related.rs:798\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide/src/highlight_related.rs:398\u0060 calls \u0060Some\u0060, \u0060original_frange\u0060 and \u0060crates/ide/src/highlight_related.rs:798\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1f3e9251155e7c82d5e06e4985fa2ba9dca2803fbb95f91887800572dfeb01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/ide-assists/src/handlers/expand_rest_pattern.rs:129-134 | crates/ide-assists/src/handlers/expand_rest_pattern.rs:191-195 | crates/ide-assists/src/handlers/expand_rest_pattern.rs:252-257 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/expand_rest_pattern.rs:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/expand_rest_pattern.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"287c08f8c5a487d5f6f12e63ccb82a04dc74f85dd21d311ae63a734dcd604edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): crates/syntax/src/ast/syntax_factory/constructors.rs:200-205 | crates/syntax/src/ast/syntax_factory/constructors.rs:606-607 | crates/syntax/src/ast/syntax_factory/constructors.rs:1512-1517 | crates/syntax/src/ast/syntax_factory/constructors.rs:2237-2241 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:200\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:200\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:606\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06e087dccffe529c0f7610bf444fd3de9c93c94c1bc6ead54e870e10ad7236e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 9): crates/syntax/src/ast/syntax_factory/constructors.rs:316-320 | crates/syntax/src/ast/syntax_factory/constructors.rs:1062-1063 | crates/syntax/src/ast/syntax_factory/constructors.rs:1131-1132 | crates/syntax/src/ast/syntax_factory/constructors.rs:1143-1144 | crates/syntax/src/ast/syntax_factory/constructors.rs:1187-1191 | crates/syntax/src/ast/syntax_factory/constructors.rs:1220-1224 | crates/syntax/src/ast/syntax_factory/constructors.rs:1363-1364 | crates/syntax/src/ast/syntax_factory/constructors.rs:1375-1376 | crates/syntax/src/ast/syntax_factory/constructors.rs:2284-2285 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:316\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:1146\u0060 calls \u0060map_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:322\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e03cfb18670804cbd55e063e82138a0550fed84c6dbf7be58b3ab9c3b286d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-def/src/attrs.rs:896-901 | crates/hir-def/src/attrs.rs:1188-1193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/attrs.rs:896\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fedf218726a22bcc7a3c49ed3673979a9b7cd02ba44085947f88e8056639db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/hir-def/src/expr_store/body.rs:111-115 | crates/hir-def/src/expr_store/body.rs:117-121 | crates/hir-def/src/expr_store/body.rs:122-126 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store/body.rs:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/body.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"111a7ba209a8b4cd00d3b21bc91e8d265e3fad5437c418d5999a7115a7c23379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-def/src/expr_store/lower.rs:1185-1189 | crates/hir-def/src/expr_store/lower.rs:1196-1200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store/lower.rs:1185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"952cffd77d8cdeea1a9922b346c31091ce406f24d8dc6e640674ed557dfc269a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/consteval.rs:154-160 | crates/hir-ty/src/next_solver/ty.rs:697-703 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ff5d91893275907741d1de73316578f4098f1a9f17a48bd3cabef039f46906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/consteval.rs:165-171 | crates/hir-ty/src/next_solver/ty.rs:705-711 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"175dd65f259354d2dd76ca65e95b329606524040b1c13b3fbefd16be1ac9e2c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/consteval.rs:176-180 | crates/hir-ty/src/next_solver/ty.rs:713-717 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-ty/src/consteval.rs:181\u0060 calls \u0060default_float\u0060 and \u0060crates/hir-ty/src/next_solver/ty.rs:718\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea02948f045f019c808f58b80a37f9f38a2817a1104c328924eedb05fd6d1cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/infer/cast.rs:460-464 | crates/hir-ty/src/infer/cast.rs:490-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/cast.rs:460\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/cast.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4258210a6f9e54b865810de12df61ed54a2c8d65ac8a962ede668dffe6f801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/method_resolution.rs:591-596 | crates/hir-ty/src/method_resolution.rs:707-712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-ty/src/method_resolution.rs:715\u0060 calls \u0060for_crate_and_deps\u0060, \u0060transitive_deps\u0060, \u0060iter\u0060 and \u0060crates/hir-ty/src/method_resolution.rs:597\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f99c04463bb49f06f208ca701cd374349f6caa90cd8f95c475232a4f2600bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:1828-1832 | crates/hir-ty/src/mir/eval.rs:1840-1844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"101e07d62c788de99305c5de6d5faad7b5a5f786923e45302a34ac4172f511c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:1844-1850 | crates/hir-ty/src/mir/eval.rs:1853-1859 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval.rs:1844\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5a3cf2c89a2093278f5aaea3c43efa1de17d0eb7b769386193179616cabca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:236-240 | crates/hir-ty/src/mir/eval/shim.rs:1381-1385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:236\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baf5314a299aeb0727ca2f970d666707dd906df414fb16dc889a9b54c4f54ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir/src/lib.rs:3909-3913 | crates/hir/src/lib.rs:3927-3931 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/lib.rs:3909\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3909}}}],"partialFingerprints":{"codehealthFindingId/v1":"769326f6b1f4479ec7b62a32760f828b015d9c230a106908467dd3510f5cd374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir/src/semantics.rs:1166-1171 | crates/hir/src/semantics.rs:1192-1197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/semantics.rs:1166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a304f81daaaa71b3d04c8d92b93aa151edd61942aeab3b643adb32c862435d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir/src/source_analyzer.rs:865-869 | crates/hir/src/source_analyzer.rs:899-903 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/source_analyzer.rs:865\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"6848136945020f5dee2e6e21ee64d7f098017ec90715810e26d2260b3c1c9f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir/src/source_analyzer.rs:1513-1518 | crates/hir/src/source_analyzer.rs:1529-1534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3e6a504bf877cd86c0c5b9ae676d3f19f80a7e9872836be1380c25f603c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/add_missing_impl_members.rs:182-189 | crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs:261-268 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_impl_members.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f283b75a98b53c0ab2c89bfa3af43f5def437098b0b3dc8657a8fb27bab7aa17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-assists/src/handlers/apply_demorgan.rs:274-280 | crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:225-231 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/apply_demorgan.rs:274\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide-assists/src/handlers/convert_iter_for_each_to_for.rs:223\u0060 calls \u0060MethodCallExpr\u0060 and \u0060crates/ide-assists/src/handlers/apply_demorgan.rs:273\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/apply_demorgan.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aa5f828cdc7889dd9b919a4231e0ea6b580252e719b24c9fcd6f156c980fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ide-assists/src/handlers/convert_bool_to_enum.rs:494-501 | crates/ide-assists/src/handlers/convert_tuple_return_type_to_struct.rs:242-249 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f265d60095861b2b313b4be8997417967c1b1549d2502a9906c3029a60cdd8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:76-80 | crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:78-82 \u2014 before extracting anything, compare \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs\u0060 and \u0060crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs:83\u0060 calls \u0060as_ref\u0060, \u0060either\u0060, \u0060syntax\u0060 and \u0060crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs:82\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dff2691c5a140660e66884131a62266120be485de98149c27810393f1acb4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): crates/ide-assists/src/handlers/extract_function.rs:1510-1514 | crates/ide-assists/src/handlers/extract_function.rs:1529-1533 | crates/ide-assists/src/handlers/extract_function.rs:1535-1537 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/extract_function.rs:1510\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide-assists/src/handlers/extract_function.rs:1510\u0060 calls \u0060tuple_struct_pat\u0060, \u0060once\u0060, \u0060into\u0060 and \u0060crates/ide-assists/src/handlers/extract_function.rs:1535\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e8a6945808783604ac38ab00bb682333321f3bdbc5fbdac66f0aaba66118b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-assists/src/utils/gen_trait_fn_body.rs:179-183 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:213-217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"96854ab50d5d20550195724d3db6ebafedfd4ff9a3f2b27bd17b3d9351a75507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-completion/src/completions/record.rs:32-36 | crates/ide-completion/src/completions/record.rs:60-64 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-completion/src/completions/record.rs:32\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/record.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"48781265ea071f5e6ba049b8c1705b0f1a0b03aba4f05c2b64b343734e15f527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-db/src/imports/merge_imports.rs:505-509 | crates/ide-db/src/imports/merge_imports.rs:530-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/imports/merge_imports.rs:505\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dce3422105578d159a036781b74f3bf59018e9ca60352b31fcbc4450ce33664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-db/src/syntax_helpers/format_string.rs:254-258 | crates/ide-db/src/syntax_helpers/format_string.rs:272-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/format_string.rs:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b86b0d0bcbf075e500dbd8b1ab40549527185c9bfda53786a2dcea493fe59f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-db/src/syntax_helpers/node_ext.rs:98-102 | crates/ide-db/src/syntax_helpers/node_ext.rs:139-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-db/src/syntax_helpers/node_ext.rs:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c91172b443d2da03fa6442ace473c8dba1fd83e56f6f918118d7af05bad360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-ssr/src/fragments.rs:29-33 | crates/ide-ssr/src/fragments.rs:52-56 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/fragments.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c24b1d3c5581b55f0d99c312fdf65a73e16783e77879cbeca52dc846a9f146b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide/src/goto_type_definition.rs:44-48 | crates/ide/src/hover.rs:700-704 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/goto_type_definition.rs:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_type_definition.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"263819178a1beb52a93bf111cbf1d89848d183bb4d1d88e7c58fd731324b7bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide/src/interpret.rs:41-47 | crates/ide/src/interpret.rs:69-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/interpret.rs:41\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/interpret.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba5b18af42c1c0fc503f51ebcbea644b1758fe1fbd252e7cba4267e7603555a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide/src/navigation_target.rs:713-717 | crates/ide/src/navigation_target.rs:785-789 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide/src/navigation_target.rs:713\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9c52434c2e34a14df9c8c10d0ff1431152f857cff353d8736e2f31fdeebf81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/parser/src/grammar/expressions/atom.rs:326-330 | crates/parser/src/grammar/patterns.rs:225-231 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/parser/src/grammar/expressions/atom.rs:326\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions/atom.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc5f3680a2a65d2364bed15084005ee8be9b78dd57277d45f5495c77fdc8d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/parser/src/grammar/items.rs:377-381 | crates/parser/src/grammar/items.rs:386-390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc159576a1df6e8ed37e64c632c545fc1ac188d79cb69b515a13e846a521df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): crates/rust-analyzer/src/cli/analysis_stats.rs:1500-1504 | crates/rust-analyzer/src/cli/analysis_stats.rs:1516-1520 | crates/rust-analyzer/src/cli/analysis_stats.rs:1538-1540 | crates/rust-analyzer/src/cli/analysis_stats.rs:1559-1561 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1500\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1504\u0060 calls \u0060to_node\u0060, \u0060syntax\u0060, \u0060clone\u0060 and \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1540\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"229916b5996fca5f846a8209b589b469e7e9669ce7656a2e355500e336439737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/rust-analyzer/src/handlers/request.rs:2224-2228 | crates/rust-analyzer/src/handlers/request.rs:2264-2269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/handlers/request.rs:2224\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd9f0b13de6edb8904a92403a7d05f90b94b786a4b26ee81c4c2379ad093e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/syntax-bridge/src/to_parser_input.rs:99-104 | crates/syntax-bridge/src/to_parser_input.rs:111-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax-bridge/src/to_parser_input.rs:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/to_parser_input.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"42828b2fed9e5e946b401713448c2ebed53e98af589d66fbeee02b2d58862b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/syntax/src/syntax_editor/edits.rs:251-258 | crates/syntax/src/syntax_editor/edits.rs:267-274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060fields\u0060 to \u0060impl IntoIterator\u003CItem = ast::RecordExprField\u003E\u0060 in one and \u0060impl IntoIterator\u003CItem = ast::RecordPatField\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_editor/edits.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dd7065267ddd808145c9cb96521b0835c44c730dac4eb26d54a750d4226d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/base-db/src/lib.rs:433-438 | crates/stdx/src/panic_context.rs:42-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/lib.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a49dd7d9c7ea735c47328862dd05d90b13b1a79dbd226651a048ca1683df55b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-def/src/expr_store/pretty.rs:486-492 | crates/hir-def/src/item_tree/pretty.rs:63-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9a6f10d86a7ba737a939477dbb2a1417e203c54a10e410a63454daf8772950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-def/src/lib.rs:860-867 | crates/hir-ty/src/next_solver/def_id.rs:175-182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a21b33f878efc52892ee26712b4d5c418c28e3b08851fa827b27e4707c84e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ide/src/diagnostics/match_check/pat_util.rs:19-23 | crates/hir-ty/src/utils.rs:181-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check/pat_util.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cc1ef9f5905ac607678a56f5d5d2278d9f52d9f70aa8f6c6bd6eb9ed75cafc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/hir-ty/src/next_solver/infer/at.rs:213-218 | crates/hir-ty/src/next_solver/infer/at.rs:228-233 | crates/hir-ty/src/next_solver/infer/mod.rs:1330-1335 | crates/hir-ty/src/next_solver/infer/mod.rs:1345-1350 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060a\u0060 to \u0060Self\u0060 in one and \u0060Ty\u003C\u0027db\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/at.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2efa4a21c76605d796283815f0ab9eef259944e0614e4119674d253a3c67d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-db/src/imports/merge_imports.rs:647-653 | crates/ide/src/folding_ranges.rs:385-391 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/merge_imports.rs"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"277ee11e60a237f0962ff2b4fbd94689fecd99f92e1432335cebb334f6965503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/intern/src/intern.rs:102-107 | crates/intern/src/symbol.rs:181-186 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/intern/src/symbol.rs:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060storage\u0060 to \u0060\u0026\u0027static InternMap\u003CT\u003E\u0060 in one and \u0060\u0026\u0027static Map\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/intern.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f33207d6dc8ca6684bd2be4d056c31417c896697d739e84b66300408ea86ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/proc-macro-srv-cli/src/version.rs:28-35 | crates/rust-analyzer/src/version.rs:27-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/version.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b548dbb31abd746d303a0c4a761cf5c7598a22bfb5504fa6d43549d3a59c3dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs:101-111 | crates/proc-macro-srv/src/server_impl/token_id.rs:94-104 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0347468357130ef8935c8d39a7db99940b647478884fd32d88d97f2777283f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/syntax/src/ast/expr_ext.rs:76-85 | crates/syntax/src/ast/node_ext.rs:1147-1156 | crates/syntax/src/ast/node_ext.rs:1169-1178 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/expr_ext.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb924879df06c9f7e32eeeff4931db99d9a0320be9a19e47e492679b5a2f76e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-def/src/item_scope.rs:977-982 | crates/hir/src/lib.rs:2705-2710 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060db\u0060 to \u0060\u0026dyn SourceDatabase\u0060 in one and \u0060\u0026dyn HirDatabase\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33046f5c84172ddaf15fab3d753aedb8b78c4b89edbc205fc79fcfa8a0bbb23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ide/src/display.rs:2009-2014 | crates/hir-ty/src/next_solver/generic_arg.rs:374-379 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5743d8ef58d505b8bca4432b474c77aabae2dda8c0e2c374004b2633f0e5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/lower.rs:2699-2703 | crates/hir-ty/src/next_solver/util.rs:502-506 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceff4e56db782022161277331920fedf70df800f5da4a002c55aa40aa143c5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/next_solver/consts.rs:69-77 | crates/hir-ty/src/next_solver/ty.rs:93-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d8a6f10f0778228fcf92927afe5618fc1555024f871858658d6769e4069981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/hir/src/lib.rs:2797-2804 | crates/hir/src/lib.rs:2818-2825 | crates/ide-db/src/defs.rs:929-936 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060db\u0060 to \u0060\u0026dyn HirDatabase\u0060 in one and \u0060\u0026dyn hir::db::HirDatabase\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":2797}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bb06999d7aa0cbbc62a2820fc3ea5d4f16671f56210cef1b68ccf8b134187c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:1011-1024 | crates/rust-analyzer/src/cli/analysis_stats.rs:1115-1128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:1011\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d97d3afdfbc7cd289f5e69482cda8c28b49ce56d2c5659722bbd83e2b4e0671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-ide/src/display.rs:1551-1558 | crates/hir-ide/src/display.rs:1610-1621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:1551\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f9547a58123250118a9ee8436b4f5599e47f76fd0008361a5f7ad7196c503d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/infer/coerce.rs:357-367 | crates/hir-ty/src/infer/coerce.rs:828-832 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/coerce.rs:357\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49736535d5a432c53317d49506b1938db427f993362a7a21950c3ccbb993d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/hir-def/src/expr_store/pretty.rs:908-917 | crates/hir-def/src/expr_store/pretty.rs:1010-1019 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-def/src/expr_store/pretty.rs:908\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc684498d6857c29d9d8c01115834053c9c9ec0a0b37501039d3f0e727838fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/hir-ide/src/display.rs:1769-1778 | crates/hir-ide/src/display.rs:1793-1802 | crates/hir-ide/src/display.rs:1817-1826 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:1769\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-ide/src/display.rs:1828\u0060 calls \u0060async_gen_item_ty_from_yield_ty\u0060, \u0060lang_items\u0060, \u0060unwrap_or\u0060 and \u0060crates/hir-ide/src/display.rs:1780\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bb607ef142d5f35c2aa4ec25c0580f0e0c05e72c49e31d84c3593b5a4f3170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/rust-analyzer/src/handlers/request.rs:2235-2243 | crates/rust-analyzer/src/handlers/request.rs:2280-2288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/handlers/request.rs:2235\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a51300ed7bb68f07e4c801d90fa7b05e4d25360627ac6efb55169c50aba5bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs:55-63 | crates/ide-assists/src/handlers/convert_into_to_from.rs:68-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs:55\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db9460240e6c149cfc4587ae795738656bf4a08ded27c3dd3471872a8148593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:635-643 | crates/hir-ty/src/mir/eval/shim.rs:707-715 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:635\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f480d07247622f174e254b5967727ddf4feaea48daa4e1d6bc150f6a65e2ffef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/cfg/src/cfg_expr.rs:64-72 | crates/cfg/src/cfg_expr.rs:74-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cfg/src/cfg_expr.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be347755fd28911f7997d988ac7ae71817eeabdc1aef0b947bce4a6fcb55cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-ty/src/next_solver/def_id.rs:99-106 | crates/hir-ty/src/next_solver/def_id.rs:113-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/next_solver/def_id.rs:99\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/def_id.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5659968398159ca7baba1bea46c6a1b16efe793d310eaf2e6e2489a430c02e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/rust-analyzer/src/main_loop.rs:265-272 | crates/rust-analyzer/src/reload.rs:646-653 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/main_loop.rs:265\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c19d9236ae5d24890fdedbf7f2dd61ff5f7cf6aeba5e8ee7bbcf4ee022639f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/hir-ty/src/infer/op.rs:339-346 | crates/hir-ty/src/method_resolution.rs:241-248 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/infer/op.rs:339\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d316ae9461db4aaec6ff07906e901ec9f15388d95b8685918e94f99c39e0b5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:986-992 | crates/hir-ty/src/mir/eval/shim.rs:1200-1206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:986\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c34395ddabf20117947a6abaf362a47d2a4577b66cff603d7eb1b3a696f856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:583-589 | crates/hir-ty/src/mir/eval/shim.rs:655-661 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:583\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f139607fb58143d3af5c481ee1b947395a6acc0e74d1792b00ee7c96de8b1d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs:33-39 | crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs:41-47 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5118cc27a309b7be07744be1c7f3c563da3c98199377a27a1ac288fbf335540a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/rust-analyzer/src/cli/analysis_stats.rs:459-465 | crates/rust-analyzer/src/cli/analysis_stats.rs:733-738 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/rust-analyzer/src/cli/analysis_stats.rs:459\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a8a5cb08605201eeb97b19b2d117836b5420d6ecd55cc0defa977c6ff79858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/infer/coerce.rs:1045-1051 | crates/hir-ty/src/infer/coerce.rs:1052-1058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c83940c0287e55cc7621033dcf06667261f770bd2b9b67b3096779220ab7a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ide/src/signature_help.rs:508-514 | crates/ide/src/signature_help.rs:635-641 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide/src/signature_help.rs:515\u0060 calls \u0060fields\u0060 and \u0060crates/ide/src/signature_help.rs:642\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a412eddb653078bac0c864f99f78a4496641038669e6bb961a0dfd5bc796b835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/hir-ty/src/mir/eval/shim.rs:986-992 | crates/hir-ty/src/mir/eval/shim.rs:1200-1206 | crates/hir-ty/src/mir/eval/shim.rs:1305-1311 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:986\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"6328ed4dee74a8dbd48fe98f64c841fb56a8910b7ecb4e800c90eac3bc8c8839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:745-750 | crates/hir-ty/src/mir/eval/shim.rs:764-769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:745\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c8040981db33c0e25a93e807df29a1fc92a2016dd171f7b38467917eca9c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): crates/hir-ty/src/mir/eval/shim.rs:825-830 | crates/hir-ty/src/mir/eval/shim.rs:847-852 | crates/hir-ty/src/mir/eval/shim.rs:876-881 | crates/hir-ty/src/mir/eval/shim.rs:887-892 | crates/hir-ty/src/mir/eval/shim.rs:899-904 | crates/hir-ty/src/mir/eval/shim.rs:911-916 | crates/hir-ty/src/mir/eval/shim.rs:923-928 | crates/hir-ty/src/mir/eval/shim.rs:937-942 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c36e21586de72157cc47b539e75b5c0b07dcc5f3dcac9f01e6a5dbee846687e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:760-765 | crates/hir-ty/src/mir/eval/shim.rs:779-784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:760\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33c2fe55044b9a105711e8cf93580f467fb1fad1f8e7638f52b8dc5d9fb685e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/lsp-server/src/stdio.rs:15-20 | lib/lsp-server/src/stdio.rs:32-37 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lsp-server/src/stdio.rs:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/stdio.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98bcaaab91e2ea64995effafe538326b25170228a80e8f1f8dd34d82f60fa6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ide/src/display.rs:922-927 | crates/hir-ide/src/display.rs:1044-1049 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:922\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aec0c84360cf296b5e4fe6a0a8312ccc76d77f9531c934ade723090cb435ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-assists/src/handlers/expand_glob_import.rs:58-63 | crates/ide-assists/src/handlers/expand_glob_import.rs:119-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/handlers/expand_glob_import.rs:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/ide-assists/src/handlers/expand_glob_import.rs:116\u0060 calls \u0060get_export_visibility_kind\u0060 and \u0060crates/ide-assists/src/handlers/expand_glob_import.rs:56\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/expand_glob_import.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9305076c64c3e74e8f74279c395eafa3a1ff2846cefc318424c82b9070a93efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:470-475 | crates/hir-ty/src/mir/eval/shim.rs:481-486 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"10161dd6828b3e58b90053b99fb6469906cc3bd6b5b38a404f96b685a301b5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:1203-1207 | crates/hir-ty/src/mir/eval/shim.rs:1280-1284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:1203\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/hir-ty/src/mir/eval/shim.rs:1277\u0060 calls \u0060get\u0060 and \u0060crates/hir-ty/src/mir/eval/shim.rs:1201\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d484ec1301c638e89af4b69f69d461b264851e8e4014a020e91b693f8dedb3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/rust-analyzer/src/handlers/request.rs:1923-1927 | crates/rust-analyzer/src/handlers/request.rs:1962-1966 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060params\u0060 to \u0060CallHierarchyIncomingCallsParams\u0060 in one and \u0060CallHierarchyOutgoingCallsParams\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"21beec58a8edd753bfff734dfada21a30662024815900932008e782f04864ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:1491-1495 | crates/hir-ty/src/mir/eval.rs:1507-1511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval.rs:1491\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fac6e3cf99408cbb189c6a230440b3ee7c2640e3159f53a8b6f25ee6bc5944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/mir/eval/shim.rs:733-737 | crates/hir-ty/src/mir/eval/shim.rs:742-746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval/shim.rs:733\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ca95079433fabf35edb30393073d1959a1987d7fa61b79029e523d8d34b5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/parser/src/lexed_str.rs:365-369 | crates/parser/src/lexed_str.rs:377-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/parser/src/lexed_str.rs:365\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5134f4d422341097c14db283e519b1603a97bcb2e194a6f127b9294ec82e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/parser/src/lexed_str.rs:365-369 | crates/parser/src/lexed_str.rs:377-381 | crates/parser/src/lexed_str.rs:389-393 | crates/parser/src/lexed_str.rs:403-407 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/parser/src/lexed_str.rs:365\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b40bf7f54b07692540d4e71260e94850941ea6b7b31dd0edb01c1b561e19475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-expand/src/builtin/fn_macro.rs:552-557 | crates/hir-expand/src/builtin/fn_macro.rs:659-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cd0127b7544bfb7fee215d3488b82d8de284c25ae60479c15abde8c4582e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ide/src/display.rs:877-881 | crates/hir-ty/src/next_solver/consts/valtree.rs:121-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ide/src/display.rs:877\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c087c911269c0077038b7cb448f9d9eb63ef66ed91a34863a37bac17e19a66c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/hir-ty/src/infer.rs:2387-2392 | crates/hir-ty/src/infer.rs:2394-2399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ea35c4e746b0064e9744e72cd16f5de9bfa8c02d53004f3035d54cbd865176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/hir-ty/src/mir/eval.rs:1880-1886 | crates/hir-ty/src/mir/eval.rs:1908-1914 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/mir/eval.rs:1880\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26d00bc4e9762c6e6889971fcb6cc54eca02f3b167069cd9a30ebe9122d70ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir-ty/src/next_solver/def_id.rs:247-251 | crates/hir-ty/src/next_solver/def_id.rs:273-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir-ty/src/next_solver/def_id.rs:247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060SolverDefId\u003C\u0027_\u003E\u0060 in one and \u0060SolverDefId\u003C\u0027db\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/hir-ty/src/next_solver/def_id.rs:278\u0060 calls \u0060AnonConstId\u0060, \u0060into\u0060 and \u0060crates/hir-ty/src/next_solver/def_id.rs:252\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/def_id.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3597db6157b64a8384b7c11041780afbe285899b6e0dd1f5ed4f6dd161c1e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir/src/display.rs:393-397 | crates/hir/src/display.rs:436-440 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"184b8a7871ee881f5a8aff29d772c67b4f6fa2aa8efd33082eed95c6158f7094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir/src/lib.rs:487-491 | crates/hir/src/lib.rs:502-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/hir/src/lib.rs:487\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"273726b51c0f5a1fe9850e721843e8c2fad4f4f85366f8928ba8ff3c5a87f55d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/hir/src/term_search/tactics.rs:480-484 | crates/hir/src/term_search/tactics.rs:660-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/term_search/tactics.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3c394efc1be490ce598872d44d4bdb2284b83e140885dd52c8214c8f5dcbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-assists/src/handlers/move_from_mod_rs.rs:24-28 | crates/ide-assists/src/handlers/move_to_mod_rs.rs:24-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/move_from_mod_rs.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf2fb6b04cec2b4680d9786001f5154431c45191915c1b8a392baf0df3b452b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/ide-assists/src/utils/gen_trait_fn_body.rs:120-124 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:384-388 | crates/ide-assists/src/utils/gen_trait_fn_body.rs:655-659 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/ide-assists/src/utils/gen_trait_fn_body.rs:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils/gen_trait_fn_body.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"915ebd9d4bc0c64d358871ae3fae79e46dd496aaacce528ede094e49d9ebfdd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide-completion/src/completions/item_list/trait_impl.rs:296-301 | crates/ide-completion/src/completions/item_list/trait_impl.rs:327-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/ide-completion/src/completions/item_list/trait_impl.rs:334\u0060 calls \u0060reset_indent\u0060 and \u0060crates/ide-completion/src/completions/item_list/trait_impl.rs:305\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list/trait_impl.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35977ff048b9c7555ede789e7daf82710099f0a586f8ab7c8ec635e613e6dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs:69-73 | crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs:107-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00b23f18abf5af767ab882ae32e9df1124bf1d8c7c7327b5318d8c58222c58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ide/src/doc_links.rs:524-529 | crates/ide/src/doc_links.rs:533-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5677d23b5a0e17f4f23d000acdec9a467bd665bdaac21bd89de4c6016a00e6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/syntax/src/ast/syntax_factory/constructors.rs:2344-2348 | crates/syntax/src/ast/syntax_factory/constructors.rs:2363-2367 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2349\u0060 calls \u0060Some\u0060, \u0060map_node\u0060, \u0060syntax\u0060 and \u0060crates/syntax/src/ast/syntax_factory/constructors.rs:2368\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e0d8595a2ce36b435b7733a86d2ed07fe94dce9f7d09c09ff4dae0839416f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/syntax/src/ast/token_ext.rs:310-314 | crates/syntax/src/ast/token_ext.rs:356-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/token_ext.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f1005b04e4527627f5194822b4d91d56048c9de89cbca75324691781e07dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/test-fixture/src/lib.rs:146-153 | crates/test-fixture/src/lib.rs:159-170 | crates/test-fixture/src/lib.rs:216-226 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-fixture/src/lib.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"340dbd674fed3c4642317afc81277f1fd22e502fe2f1a2cd2600f248813ad0ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/test-fixture/src/lib.rs:393-402 | crates/test-fixture/src/lib.rs:488-497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-fixture/src/lib.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b252710a719a03f48e8a7a956bbdc317eefe4a14b852f909b0f26c2a3be9bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/test-utils/src/fixture.rs:220-226 | crates/test-utils/src/fixture.rs:227-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/test-utils/src/fixture.rs:220\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-utils/src/fixture.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aadc3633018128ba5868caaa2272151eda1cd968eb6b29d5d217a79a4bc1799"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project hir-ide: hir-ide has instability 0.90 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"01fe22e4045c9a5633636dc4ab21c3acdfa0c9e5e1869654fdbfcebd3f757c3e"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project ide: ide has instability 0.93 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f20100be290615894111de6ae29fb9f6097942ce93566bea4eebaa62687796ac"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project ide-diagnostics: ide-diagnostics has instability 0.86 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"19cec4b69fae8522d6e7d35c8e61fa9ac9bd1238768617f2e5b1213b00c30a99"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project load-cargo: load-cargo has instability 0.90 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e48d179f8ecb4f4694056563a08a95d29b2f44f9113f9fd000cb2dfa46608778"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project mbe: mbe has instability 0.86 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"632e992a17f5c2ac232013bb8c6f2b4b8ed102a57107ba5592965aaba0715504"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project test-fixture: test-fixture has instability 0.90 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"39201c6ae6e679b7e17dc3042e227d9d65c36e83386f9eb3d21eb817be2fd4d3"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: edition: edition: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8791443bf747d3978fb4536f3f03b9676ffb4bf24c1ccaa59f785a10d71168d4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: paths: paths: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd9e65cfa92adf9a430f37c153a1e24323e61b875b378811b4280cfda9207fd8"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: profile: profile: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8d7185b755b4a6faa9cef4e6a8e759bf93b801d410563808b759e3a73953041d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: stdx: stdx: abstractness 0.17, instability 0.00, distance 0.83 \u2014 zone of pain \u2014 concrete and depended on by 24 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2a6d25a78eda0cac573cabc65708240efc83ccab8d554c2a5c3a7902480788fd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: span: span: abstractness 0.05, instability 0.16, distance 0.79 \u2014 zone of pain \u2014 concrete and depended on by 16 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"18c14f3bd3d91e3d560c7eec2357fb2f5c2b268ae82531efba6e6374d9c8d16b"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: cfg: cfg: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"856a714254d9f7a61736039adb4d918f3c0f9b9622e104ae14e60a54074b4ef7"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: parser: parser: abstractness 0.13, instability 0.13, distance 0.74 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f34d1a282fc883997f4f59f52dee541072bc39626bfa72bd1cd446ec8cd674ba"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: tt: tt: abstractness 0.05, instability 0.25, distance 0.70 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eb93276d5b369fb20774c2da99a9193af33e82753f0185a9757ec9bf3c62ec8c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Completions (LCOM4 14): Completions\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee326f41516adfc31f8ef72f7bbb1254ac8c781218b3d7166f4c175be9653a99"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Config (LCOM4 10): Config\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72b40e025fb5e8eba878a07fbde7d005583ebf4d440341faf56aa6b8fb7fd77"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MacroCallId (LCOM4 6): MacroCallId\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f6304adefb59447f5607df567d8ed2227cac8010b4f92222c094a878964ce9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GenericArgs (LCOM4 5): GenericArgs\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/path.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0eb0297d37453972af2d0c6359725ffe17a1085208aa45950a9d36739ec734"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExpressionStore (LCOM4 5): ExpressionStore\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"12036196809f37af9511752b0a6bc93813edb952704814cd2706f3272c86a795"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DbInterner (LCOM4 5): DbInterner\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc17d62913badc89672ea309cfc351cc524a5c2eb1fcbb81a0d054975e98ea9b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModuleIdLt (LCOM4 4): ModuleIdLt\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa937c0c5c9098f630cb9fa858fc7c00119d2d9631e36786671b66155df18e2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Diagnostic (LCOM4 4): Diagnostic\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0940231ef577fc230c879e17d1c3b2920aaea03539b0d8eb6321370e16bc07"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ide/src/mir_pretty/errors.rs: 5.0% line coverage (8/161)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/mir_pretty/errors.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"483923d0236bf12c3d974e3d788c7b3e2e569cb24ffdd1667bc60140aef06e2c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/layout/target.rs: 32.1% line coverage (9/28)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout/target.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d401d02f6db8bf70081b52e27f4ace8afb9b4f327af59765b7b911a41861e3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/mir/eval/shim/simd.rs: 47.3% line coverage (62/131)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim/simd.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2ceab16346ca66bcc1f02ecee8d654166eceae198a464e9987a8915a9d124e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/abi.rs: 20.5% line coverage (9/44)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/abi.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12a0430db1f68d4e296a4339e0c51ee09965a907597cbf3e21e588c16ea2a9c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/consts/valtree.rs: 40.3% line coverage (153/380)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04f82227d1ad4d863a657e762b5f1dd0460ac8b240af9946514230dceae94ae"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/def_id.rs: 38.6% line coverage (113/293)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/def_id.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dde25a49e315ac70e10e40c8ba701ac197b12f96960304404810cc31e51f847"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/format_proof_tree.rs: 0.0% line coverage (0/61)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/format_proof_tree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"849746ed6efbb008bb7b7b8bab1704cee5cf3a5f524c7bc82635d0b841bed37a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/infer/outlives/obligations.rs: 38.5% line coverage (15/39)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/outlives/obligations.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0804662974e2857fc0cba714c1ebad472dbd3f65d30f6c74705cc5f0ccbdf88"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/infer/traits.rs: 48.0% line coverage (49/102)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/traits.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d42374cb0500710ceb9baa953f51edfa8798084f2050af417803a88c11c573"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/ir_print.rs: 9.8% line coverage (19/194)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ir_print.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f393c5fce583ecd9cf2d6d6e9ebfe40fbee81efd622772054037e5fbb2a282"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/hir-ty/src/next_solver/util.rs: 34.9% line coverage (156/447)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8b133b89855285ceea3686a1e040b623f15c974f1c3611dbc504bbe9af2cbc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide-completion/src/render/union_literal.rs: 44.1% line coverage (30/68)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/union_literal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d7a588cdab11a891773d1397dabc656f053e25ff0da30cf81143ac5f939122"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide-db/src/prime_caches.rs: 0.0% line coverage (0/204)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/prime_caches.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d6dcc54c93df6b27e3eecf0abbf8bb0f11e85263ecb95e0dcb1b530f0c4e26"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/fetch_crates.rs: 0.0% line coverage (0/20)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/fetch_crates.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba44ff133132ff670eb4fa9bbee5d2398fd4d1a45700e6d49f4f3eb8d653ba46"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/interpret.rs: 0.0% line coverage (0/58)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/interpret.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"beca3baf25b3b772a3d07201d206c2cd865543ab42d70252209cb1a9007aa3a1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/status.rs: 0.0% line coverage (0/44)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/status.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d47c9786a4ee63d35e50cc72dcf09ad2110fd15341fbb720ff90f0e4134d2e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/test_explorer.rs: 0.0% line coverage (0/151)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/test_explorer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2a32fbad90083c7640b8a1f377e01be7bc11b60b331f11fbae6486070cc857"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/view_crate_graph.rs: 0.0% line coverage (0/57)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/view_crate_graph.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf610365720c3422133fcf0afbedd12cea47d58ef90f5c94e9e0b61f8d8ff3c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/view_hir.rs: 0.0% line coverage (0/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/view_hir.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a408d0f7278a56d55c5736df64f3f90ed8f78e9283a5baf46f07534e82d08a28"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/ide/src/view_item_tree.rs: 0.0% line coverage (0/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/view_item_tree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1444a9bedf2315b45ed890b7adc8a78a1f71076653a5428085a02439f7070668"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/intern/src/gc.rs: 10.5% line coverage (10/95)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/intern/src/gc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca788bcc3802d6f3acc88597e4d261529dc9d6e302a2955bcf407c394680c1fc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/load-cargo/src/lib.rs: 41.8% line coverage (214/512)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5e15bb3dae5ff0cadef8810ef0caf41d5e657b6ff75cf0b0869e7dacf70a32"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/macros/src/extension.rs: 0.0% line coverage (0/102)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/macros/src/extension.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5806f9874c03ac12b44a749f5e97cd81be8a60e24c45284aa6a2b14ec8ecda"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/macros/src/lib.rs: 0.0% line coverage (0/113)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/macros/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ed798948f28321a6abb7be2cb52aea72f72d1714e4e86b792b7a611bb2cd33"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/mbe/src/benchmark.rs: 0.0% line coverage (0/139)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/benchmark.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4798d765b52b34d0327e9e6f19d1bbe545b4dc8d167491460948180aa08af7be"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/bidirectional_protocol.rs: 0.0% line coverage (0/136)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ea0585ddc05bc5eb006a3d839d169e9f0ca3050c3b4e7014794b5f3a97c420"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/bidirectional_protocol/msg.rs: 0.0% line coverage (0/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol/msg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e480721d841e33af8afb62a2c971cfa56d300a80867187b7bff9e646ce8d780"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/legacy_protocol.rs: 0.0% line coverage (0/109)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef7e9b60f4820f427b0be47ec083e478d989799e1f8f32d5019e88195c503f4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/legacy_protocol/msg.rs: 14.3% line coverage (3/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c7fe5554b66cc3e1c261cfa9a92b211c7ffd1bb4e3d347c9eef13368a93400"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/lib.rs: 0.0% line coverage (0/121)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3211fdebfe989dbc5d6a3112d6f25448d144849f6f0413774fba7745f1804ae5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/pool.rs: 0.0% line coverage (0/57)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/pool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c63531492f8ef980f3957ccf7f1246082cae0b2ff815823370e0a7dd37bd588"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/process.rs: 0.0% line coverage (0/284)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/process.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22f96cb72d641232f16102d99bb1beb892d3da2aca322b5b443592e7a1ee9dc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/transport/json.rs: 0.0% line coverage (0/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/transport/json.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c58d3af39a6660456475e7f2de92894e6981f02862b82cf8859c8f5f9db2ad"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-api/src/transport/postcard.rs: 0.0% line coverage (0/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/transport/postcard.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d7b8a4da48acb353334308a8b7d346eb98b7db64f0dd79509c62c3272851a6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-srv-cli/src/main.rs: 0.0% line coverage (0/63)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fbac23fab38c9590e1d13e554b37a6cc779d882c73979fb707bd1bb6bb5514"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/proc-macro-srv-cli/src/version.rs: 0.0% line coverage (0/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv-cli/src/version.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2fe397b545027d596ac1b520c2bf550e2174e2dbabcdbf5014eeb1fdafbe98"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/profile/src/lib.rs: 0.0% line coverage (0/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/profile/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2304ea57f910ac9e308c4122457305701255fa3ecaf871c7d0aeaa3474c726"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/profile/src/memory_usage.rs: 0.0% line coverage (0/50)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/profile/src/memory_usage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f9aa3cebe0a0d65e8c0b7828d20d3e5d59bfec0e958a23013c5f6f13095920"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/profile/src/stop_watch.rs: 0.0% line coverage (0/55)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/profile/src/stop_watch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13542beea8d0816166b8123b28f6019e6b5b0ff1d1ccc427cfeaecb739718b7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/project-model/src/build_dependencies.rs: 1.5% line coverage (6/391)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5d6bc1a7ba36d199a54b084e1b32ab5d8dfd49b214954ee3a6a804f3dc6888"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/project-model/src/lib.rs: 32.6% line coverage (42/129)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc78d75da4c7724097c0f031f697a424a059a25be966db361642a917762046f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/project-model/src/manifest_path.rs: 42.9% line coverage (15/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/manifest_path.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0870f18a9aad1875bd66f79c0a2ccc7478a9b72fbe9852a76e9a809dbc4297e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/project-model/src/sysroot.rs: 28.3% line coverage (106/374)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24294c3dac0aba05ec0d0673e482095b2cd0f4e3af34037a3bc9845056502311"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/project-model/src/workspace.rs: 39.9% line coverage (572/1434)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20b87d73fa49a20ccefae0e99eb6a793fb3085fc8b4041a956e4904ebf67a76"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli.rs: 0.0% line coverage (0/44)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43b18804c5e719beedf611e4a1ec231f8dd3e286de4ba1c5c4cfd1b785c4f90"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/analysis_stats.rs: 0.0% line coverage (0/1240)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb32666c5442c69d5399d7d6eb654e0514da5c0bd0ef1bdb0fde598f5c4a22fe"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/diagnostics.rs: 0.0% line coverage (0/100)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33f60b7df845eaeb277856a745db0ccb3871f0f87932921b5d2d062aea6c26e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/flags.rs: 0.0% line coverage (0/31)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/flags.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"431477d90f178584493f34aa9299681ceddf6d2937dd55deb61a2f5d07984832"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/highlight.rs: 0.0% line coverage (0/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/highlight.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c19caa2f44150973a55c516f7e6490dcd182fe54c5aa11b96f03c45336bb5d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/lsif.rs: 0.0% line coverage (0/268)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/lsif.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f4e10421bbe3c50b0ce15845b47f64e26b585b6665f770b8ab2f8181ade159"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/prime_caches.rs: 0.0% line coverage (0/41)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/prime_caches.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2983856523560f00575fafee06efd743d46c31180bc969caca1bb82a9306d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/progress_report.rs: 27.8% line coverage (22/79)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/progress_report.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dd0be4d432a0336a5a46d535813707a5a50832f067b6fa501d0db0bdc731ac"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/scip.rs: 10.8% line coverage (37/342)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35370452716222d854f9d3b6b37500f799890b752798da1558a08da4d2ac7dd4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/ssr.rs: 0.0% line coverage (0/69)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/ssr.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e298ae29666818bdb1f69d72813b0882d438612c678c7f7b6863f247714098"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/symbols.rs: 0.0% line coverage (0/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/symbols.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5095fd06aa318be2ee81336ca352e8c0524d3b6949356e38096ea5dbfe3f03"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/cli/unresolved_references.rs: 0.0% line coverage (0/124)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/unresolved_references.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7547bf82ab4609d18ec9ed46d07cb42f35c8f36f7d41d7c22c6c00487cee26"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/command.rs: 0.0% line coverage (0/119)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56e63945d62667d9594949173f8d94bc1419fe884e54a7abf6dee73cae6d1b8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/config.rs: 39.7% line coverage (696/1752)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"333680737d6535a20f45a82b1912fe92e37368ae4a1e65ad7d238b0aa008d781"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/diagnostics.rs: 0.0% line coverage (0/240)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc09d05d800f0abe73b0223542b283bc6002bec2a1975b41aedae23b24f989c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/discover.rs: 0.0% line coverage (0/56)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/discover.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d1a14f74950f9f1e11c7e21ec2b788a0f0e1510c1891348173aad3a418260d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/flycheck.rs: 8.6% line coverage (47/544)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9121e1e3e3f7f65919a89913f55e544df5f24e286885813baeadf6cb8913aa"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/global_state.rs: 19.3% line coverage (110/570)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03523fc4a48828dc54c0e082a7cebf8f16e5f1f05c15bddb60a58d32b943590a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/handlers/dispatch.rs: 0.0% line coverage (0/305)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/dispatch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa3b41e96541d67fb311a7b054eb65d1b82606e9349665d49ea70e4270ea66b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/handlers/notification.rs: 0.0% line coverage (0/412)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d2e3e87cc9c4437018c6f32ed637600a9f804fe21a2ac21dc948267d30a361"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/handlers/request.rs: 1.2% line coverage (24/2053)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"918179bb047a7f47e74353e8fddd308fc1522bbad61802fca9d822eedd059c98"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/integrated_benchmarks.rs: 0.0% line coverage (0/45)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/integrated_benchmarks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea58c596a1b358dbafac7431034d4c457dffcf47f102cfbcb9229650612dbdea"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lib.rs: 0.0% line coverage (0/4)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e789e6f3dabfb3cd70b21d822d872d2c6adea74e85d2b425ed3e5f29b2194020"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp.rs: 0.0% line coverage (0/86)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff149d692a3f691d6cedbad49d0fc972080d454052ce4d14b9640ad790c6893c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp/capabilities.rs: 3.6% line coverage (15/419)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/capabilities.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15c38dc41b1177ae3dda22feb1505f9530fdf0720b6586ad8e79682595260db"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp/ext.rs: 0.0% line coverage (0/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/ext.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcac1cc88ca5d72c7ddb5d0feace13f566340449869f812dbaaf393e3c7b2c60"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp/from_proto.rs: 23.8% line coverage (25/105)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/from_proto.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35dfb06a7837292c8af61310d7572e671c2a648755669629e00c11f1b9a697e0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp/semantic_tokens.rs: 11.0% line coverage (19/173)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/semantic_tokens.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a680634f4405bcb416bb162883543a6e375c8adc0688d6e26a150c111714d8d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp/to_proto.rs: 13.0% line coverage (211/1618)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd1b9893fce0b1dac5f840129aef650d1699f9548f784a8bc77e648a7328763"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/lsp/utils.rs: 36.1% line coverage (66/183)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/utils.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b5f8c5aa1c235bf0b427ff2be8c93fcd1a351e4066afe65b80ba7a291dd48d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/main_loop.rs: 0.0% line coverage (0/1042)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cc21508daaa7676a3312f3a972172ce241be27929e7767f2d1c6caa5c458d0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/mem_docs.rs: 0.0% line coverage (0/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/mem_docs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92feb26caef7caefe3de6e1535bd38bee1ab3ee48a2aa9cf19de1dc503e1cf03"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/op_queue.rs: 22.2% line coverage (6/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/op_queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"defd23ed96bbe6adc747d5ae3577db398af8f0bf304e32d965f94aaf9ae1ac4c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/reload.rs: 2.3% line coverage (18/771)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12559250dbf7f43c79497650f684dcbeb6c18cc6c06d139faa5309e91fad1898"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/session.rs: 0.0% line coverage (0/119)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d07a96d0fa872c9f76b176fabe8a42628dc11bc67bd8f27112d671f418c2c1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/task_pool.rs: 13.6% line coverage (3/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/task_pool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b765306e987523b313bbf17ec366062618e26a61a271cc5ae5381437e0e4aa5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/test_runner.rs: 0.0% line coverage (0/67)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/test_runner.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"014c2c8d15d8cc8b133e6e915e3dcb0bf5aa679d767bc0635212e82e72043eef"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/tracing/config.rs: 0.0% line coverage (0/54)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/tracing/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d050c89cb4312a4189c9e95609565dc0cd01c3ba5cfd067a047bd34d4866c35a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/tracing/hprof.rs: 0.0% line coverage (0/116)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/tracing/hprof.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1e12c7c3024d799206d61f735f12bbc1787b1d268c46510abc451e52f68676"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/tracing/json.rs: 0.0% line coverage (0/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/tracing/json.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f588cb6c2698a3e0ddd831c952df672ba5ee6cd2fbe10383b44c679583288fca"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/rust-analyzer/src/version.rs: 0.0% line coverage (0/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/version.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae6a60e746ba1b597b2e3f8377797b73f383e6dd7017cb8848dd06d3e741207"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/span/src/lib.rs: 47.5% line coverage (48/101)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeafae06dde7a480510df4ee04ddb7f309e6ae590e30246a661c318492576f06"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/stdx/src/thread/pool.rs: 24.0% line coverage (18/75)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/thread/pool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaa2d68de37d07caed723acd21b68ee579fc1b716018ce98b478ff332c518a8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/stdx/src/variance.rs: 9.1% line coverage (3/33)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/variance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d065db60b9da65a5f4187afdea12f1f05ec6145e52c772f03f9dd360c08551"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/test-utils/src/assert_linear.rs: 0.0% line coverage (0/59)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-utils/src/assert_linear.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5256cff37b47dc4870c3100fd127e931899db384dcc410f26f253eda491d6b7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/test-utils/src/bench_fixture.rs: 0.0% line coverage (0/33)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-utils/src/bench_fixture.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dff5da3d16ccf2ad61e272263db25b64b7491ead4b579904bd1477918ac788a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/vfs/src/loader.rs: 0.0% line coverage (0/60)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs/src/loader.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9bc9e9305d9889d663e39f6c5662df9064f538290323911e6141c5530e608d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/la-arena/src/lib.rs: 0.0% line coverage (0/186)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/la-arena/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"738eb5bb22379a480edf5d2109cca23fe26d5cd2458a9e95a9a67135974e28cc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/la-arena/src/map.rs: 0.0% line coverage (0/142)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/la-arena/src/map.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bda61c68caee7783c4120d06470f99f7afbb56a73f4083dbd64dee5e8441cf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/lsp-server/src/error.rs: 11.5% line coverage (3/26)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2fda7b09d29953f52a92518e470740afd637c8ab800fd666c5fe2cc5a667e4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/lsp-server/src/lib.rs: 15.4% line coverage (21/136)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee73ea84409479f1215066d92c9da479cbccbe3aac959814174df37d023f8705"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/lsp-server/src/msg.rs: 17.5% line coverage (22/126)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/msg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"091f8c18626d67c08cb44709b59cc54b0b4143e2cf095794f2f7c6707d0a369d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/lsp-server/src/req_queue.rs: 0.0% line coverage (0/42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/req_queue.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f990ec72d963fb8d66cae4813cd05e12504cd3e4116718cb123d2897db1040"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/lsp-server/src/socket.rs: 0.0% line coverage (0/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/socket.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"578abc1ed06480929d9a36a867c39239c45bbbd1d1c729012f5a73c94f9c3fb6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/lsp-server/src/stdio.rs: 0.0% line coverage (0/60)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lsp-server/src/stdio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb0018e91513a91e470ae67fd5fe40b0a969c486acc154ced8febe628a2ae0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/ungrammar/src/error.rs: 0.0% line coverage (0/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ungrammar/src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"285e81915c7a13b44191e7a2828cbcba6a575cb2fd232e13fb2c97ccce704fe4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/ungrammar/src/lib.rs: 43.8% line coverage (7/16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ungrammar/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b0dff0b0f46317c28c92612147df72b61ba36615a1f26ca36eb7a6f4c632da"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/ungrammar/ungrammar2json/src/main.rs: 0.0% line coverage (0/58)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ungrammar/ungrammar2json/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bf9f51a684e73ea2f8578e2b4de6678e89ff49f72c6b29ff849aa9cf27d2a7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/codegen.rs: 43.5% line coverage (64/147)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b814403a89110fd08488e0d11d4925bc311f958289567d6ad36a3a40103316b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/codegen/diagnostics_docs.rs: 0.0% line coverage (0/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/diagnostics_docs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b3f46331f26d3270bcf25eaf9549ad0e489ffda6e30420aef46458b9de7185"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/codegen/feature_docs.rs: 0.0% line coverage (0/49)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/feature_docs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc57d8ae3fe83284a5fa4f5150b955923f5dc1ff21a9f1393336e9339c9c7c9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/codegen/lints.rs: 0.0% line coverage (0/370)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/lints.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d0eb835295117e3f3b4ebd827ac4d1fea8130f1a98d81818727b40d9bda8d6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/codegen/target_features.rs: 0.0% line coverage (0/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/codegen/target_features.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6dbfd53fbe0f4a5b4f91a82788a30a8cb2ceb5855320325c21e0c06fa83bcb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/dist.rs: 0.0% line coverage (0/171)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/dist.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98396a17b9453f61c3322e31c0744b6ca27ea00c05bec431de2c9f57e3c71544"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/flags.rs: 0.0% line coverage (0/103)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/flags.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3010babd7fd06c8a5e41762d084dbf10610f06fbe6bdfd71ae6a03a878a09e3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/install.rs: 0.0% line coverage (0/106)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/install.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"036cf72959433f7c20bd81b5f26086f5f0cdd7b3cca937d9b8c746fa32100ff5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/main.rs: 10.2% line coverage (5/49)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca7732a8a8f9cb6bb82e22409e56de500047397ca0917a6fa50df2bcdd893b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/metrics.rs: 0.0% line coverage (0/139)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/metrics.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00e73ab760bd6118615e15c33267084419685d5558dffb15cd1f1d82d16684d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/pgo.rs: 0.0% line coverage (0/59)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/pgo.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adeafdefb89d9ffecd3d972e7086c9a4ee0006f5f2cd7399cdf2620c1e8c4a3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/publish.rs: 13.3% line coverage (10/75)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/publish.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"555f5a1d0072d9a0f15e36e6a2e51122002414547a4f963e8f8a8cb6bd42e267"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/release.rs: 0.0% line coverage (0/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/release.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc46aed89e771283b607213183b3dc7c22918a28cfb92d32d3567420bf44b74"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: xtask/src/release/changelog.rs: 0.0% line coverage (0/100)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/release/changelog.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04811d8e640d0d0585bf5dd80140fe6b9443e2f3936404123e9123a37b4189d1"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: ratoml_inherit_config_from_ws_root: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022flaky test that tends to hang\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/tests/slow-tests/ratoml.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf52969b38b8b61bc23eb20fdf3d897d5c5d14ea1af196c2f11f03bf2441cee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/context/analysis.rs: crates/ide-completion/src/context/analysis.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 153 in ide_completion::context::analysis::classify_name_ref at line 967. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/context/analysis.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"e991a8f327ce5274e6a12e1c3d4acb556253d1eb019b5de83c0d4ca563cb0002"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/mir/lower.rs: crates/hir-ty/src/mir/lower.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 131 in MirLowerCtx::lower_expr_to_place_without_adjust at line 370. 3 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/mir/lower.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfafed503de3175cb1f209acbb86408c72b74936de4eeec76a48c1d54714613"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/mir/eval.rs: crates/hir-ty/src/mir/eval.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 100 in Evaluator::eval_rvalue at line 1029. 5 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/mir/eval.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db7751b285cb38befc06b8c4715395468d4dae2533f20c4cd35c9aaab1b1ca1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ide/src/display.rs: crates/hir-ide/src/display.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 117 in Ty::hir_fmt at line 1281. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ide/src/display.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0d19d0bd7b054a37446215bc1ca629985760ff23b756469e29a89feb8ea45a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-def/src/expr_store/lower.rs: crates/hir-def/src/expr_store/lower.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in ExprCollector::maybe_collect_expr at line 1417. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-def/src/expr_store/lower.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51a2e57340d61d7b24ebd9db2bd31d30bf0eeb4e563525f6681849beee795b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir/src/diagnostics.rs: crates/hir/src/diagnostics.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in AnyDiagnostic::inference_diagnostic at line 1578. 4 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir/src/diagnostics.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e816e31eaadcde1ba51a7c6a64dc46cec4ed59b6668b477baa86636c301ea46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/infer/expr.rs: crates/hir-ty/src/infer/expr.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in InferenceContext::infer_expr_inner at line 317. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/infer/expr.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"706a3fe178faf2067247a0463ded7f46590692bf5292d2081215c693ce622708"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-diagnostics/src/lib.rs: crates/ide-diagnostics/src/lib.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in ide_diagnostics::semantic_diagnostics at line 377. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-diagnostics/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"620e52079b198aca37e87b2ba6815074eb40d62a9487ebe882218aa50d1265cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/render.rs: crates/ide-completion/src/render.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ide_completion::render::render_resolution_path at line 408. 8 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/render.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b6ef9c9f6c89945461fb6d48eb06793c587fb253e8ca16925174b30d90bd0c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/mir/eval/shim.rs: crates/hir-ty/src/mir/eval/shim.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 197 in Evaluator::exec_intrinsic at line 560. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/mir/eval/shim.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad89fc7ea3be375e9d5bdc15cea9517da3d95893aa5296d353237d5239265c09"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions/expr.rs: crates/ide-completion/src/completions/expr.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 75 in ide_completion::completions::expr::complete_expr_path at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/expr.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc9c0ac20a4fde335c9e6333df2fdb5f9e1c6486e83c4a103dfcc2fc79edbd2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/parser/src/lexed_str.rs: crates/parser/src/lexed_str.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in Converter::extend_token at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/parser/src/lexed_str.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b20368c82a1e98ab719fe8db8ac21b317e8b383af05c7a6b4b7c8b22d008083"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/mir/lower/pattern_matching.rs: crates/hir-ty/src/mir/lower/pattern_matching.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in MirLowerCtx::pattern_match_inner at line 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/mir/lower/pattern_matching.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc87da6be18e8e6dd7e6e206741ebc0f6d82c3a24b9f66a04f8b60b743dcb1f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/lower.rs: crates/hir-ty/src/lower.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in TyLoweringContext::lower_ty_ext at line 593. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/lower.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e7ea87ef8eb4f3c8cc2e611570ff8810e661272cb1f8117c46177a909bed71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions/type.rs: crates/ide-completion/src/completions/type.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in ide_completion::completions::type::complete_type_path at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/type.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/type.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b21e4787038f5a0eba24b9a55e81874c3bdf4226e38f058a760120cf98ff07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/render/function.rs: crates/ide-completion/src/render/function.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ide_completion::render::function::render at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/render/function.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render/function.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75f4e6226486b6247afa5e0b8c8268d3547aa983e91549c17f543913a9c4196"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-assists/src/handlers/extract_variable.rs: crates/ide-assists/src/handlers/extract_variable.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ide_assists::handlers::extract_variable::extract_variable at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-assists/src/handlers/extract_variable.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb236dc88beb9c98d741cde174a8bb81958f7d985dd38b69dcd321d0f10271fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/infer/coerce.rs: crates/hir-ty/src/infer/coerce.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in InferenceContext::try_find_coercion_lub at line 926. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/infer/coerce.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d69415f8de69dc66b1b88c8c777b200a43dd9dc98c052974284931036403cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ide/src/diagnostics/unsafe_check.rs: crates/hir-ide/src/diagnostics/unsafe_check.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in UnsafeVisitor::walk_expr at line 266. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ide/src/diagnostics/unsafe_check.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/unsafe_check.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0213874ba627f638f2dcfa3969269f9d00b352a528c0fa479d3e727823abc512"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions.rs: crates/ide-completion/src/completions.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ide_completion::completions::complete_name_ref at line 723. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"023a620331373e427dd81031be3265b8e362730e45fb6abd6e24d7c2d6f7ea9b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir/src/source_analyzer.rs: crates/hir/src/source_analyzer.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in hir::source_analyzer::resolve_hir_path_ at line 1873. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir/src/source_analyzer.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8abf268bf86f4bfdc42e2d3c5b796efa1ac4cb601b755b160d768136d4f9593"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-ty/src/infer/pat.rs: crates/hir-ty/src/infer/pat.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in InferenceContext::infer_ref_pat at line 1356. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-ty/src/infer/pat.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bdebaeab51110e104ca89c34e7587e5c038f80f2e37bb9f2172dfa62e1a271"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions/attribute/cfg.rs: crates/ide-completion/src/completions/attribute/cfg.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ide_completion::completions::attribute::cfg::complete_cfg at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/attribute/cfg.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/cfg.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3794d8d8e43a4021085023df4e88f8c2c42f4d1015a9733c991551bbf6a0869a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/proc-macro-api/src/legacy_protocol/msg/flat.rs: crates/proc-macro-api/src/legacy_protocol/msg/flat.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Reader::read_tokenstream at line 871. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/proc-macro-api/src/legacy_protocol/msg/flat.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"84848c4eed6cd99e7dcc5958910bea53f0478075000bf5fddcc6b26872ed0117"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-assists/src/handlers/inline_call.rs: crates/ide-assists/src/handlers/inline_call.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in ide_assists::handlers::inline_call::inline at line 349. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-assists/src/handlers/inline_call.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_call.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79b3b7ac4a23247f66a4fb6f2358a67095cc7f22cd03d400a6d6017d278c797"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/syntax-bridge/src/lib.rs: crates/syntax-bridge/src/lib.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in syntax_bridge::convert_tokens at line 208. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/syntax-bridge/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8733f874b6d5aee08dc71767650989469f5cd7a2772f647c0a14351426112f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions/postfix.rs: crates/ide-completion/src/completions/postfix.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in ide_completion::completions::postfix::complete_postfix at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/postfix.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"704362cfb39f7406198fe341030df9a66f93b1bdc1e83908a6241fb157d023dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide/src/hover.rs: crates/ide/src/hover.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ide::hover::hover_offset at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide/src/hover.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2615824eafed0ccc754ded923da9dcee031946b0358358564130fbc2a9e1ef5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/test-fixture/src/lib.rs: crates/test-fixture/src/lib.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ChangeFixture::parse_with_proc_macros at line 250. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/test-fixture/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-fixture/src/lib.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3435d4ea1f7eb2763d5a3937054fd2123f01c5bf86308db7ff4886654d878807"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/hir-def/src/lang_item.rs: crates/hir-def/src/lang_item.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in hir_def::lang_item::crate_lang_items at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/hir-def/src/lang_item.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d14bba26ef5455dcb8e30f729c2fc7a25fd2d91f76a87ee5348a275fe51e1a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions/attribute.rs: crates/ide-completion/src/completions/attribute.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ide_completion::completions::attribute::complete_attribute_path at line 70. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/attribute.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f582c548a7be9a6504a9eb3d8bf7598bfec70fb8c8fa51d1e84b7ef3f93187"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ide-completion/src/completions/pattern.rs: crates/ide-completion/src/completions/pattern.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ide_completion::completions::pattern::complete_pattern at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/pattern.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0aa78cc2cc5cb48d2776dccb027edbef7d08304b49974addba20fdc1997cfa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/project-model/src/cargo_workspace.rs: crates/project-model/src/cargo_workspace.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CargoWorkspace::new at line 316. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/project-model/src/cargo_workspace.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be7cbafcdd446184622e564447e96a69bb558f6beade60292523ad80dc2a9f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/stdx/src/tempfile.rs: crates/stdx/src/tempfile.rs changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is stdx::tempfile::general_imp::create at line 82), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix flaky \u0060NamedTempFile\u0060 test\u201D; \u201CFix flaky CI test \u0060named_temp_file_new_creates_file\u0060\u201D; \u201CFix NamedTempFile issues on windows\u201D; \u201CFix \u0060NamedTempFile\u0060\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/stdx/src/tempfile.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/tempfile.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c09d613aecd7cce88517004f9cec545b9acc8c71ee352b382c993220c24e8fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ide-diagnostics/src/handlers/type_mismatch.rs: crates/ide-diagnostics/src/handlers/type_mismatch.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is ide_diagnostics::handlers::type_mismatch::type_mismatch at line 22), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: emit assoc item bound only with generics on builtin derive\u201D; \u201CFix TypeMismatch quickfix position error\u201D; \u201CFix \u0060hir::Type\u0060 owner mismatches between anon consts\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-diagnostics/src/handlers/type_mismatch.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a01416581b51b3b1bf061dbd44175c4c3b9f114bba9b2ccf0de98f0f97aaa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ide-completion/src/completions/mod_.rs: crates/ide-completion/src/completions/mod_.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is ide_completion::completions::mod_::complete_mod at line 15), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: complete \u0027main\u0027 \u0027lib\u0027 module in sub module\u201D; \u201Cfix: dedup raw-ident module name\u201D; \u201Cfix: escape keyword module name completions\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 06:30:58 \u002B00:00\u0027 --until=\u00272026-11-13 06:30:58 \u002B00:00\u0027 --full-history --no-merges -- crates/ide-completion/src/completions/mod_.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/mod_.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e562323b726fd0bf94008af0b27ea1954a2afff51c6d65941d2e9af02c4fbe"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 14 significant file(s) lose their only recent owner: crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs, crates/hir-ty/src/infer/fallback.rs, crates/ide-diagnostics/src/handlers/generic_args_prohibited.rs, crates/hir-def/src/upvars.rs, crates/ide-diagnostics/src/handlers/inactive_code.rs, crates/macros/src/lib.rs, crates/ide-diagnostics/src/handlers/field_shorthand.rs, crates/parser/src/grammar/params.rs (\u002B6 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aead3902b208bb815a0f86fdd13e9e48ff9c391ba4150594f9d2b3c8f8b4efd9"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 7 significant file(s) lose their only recent owner: crates/ide/src/inlay_hints/closure_captures.rs, crates/rust-analyzer/src/session.rs, crates/ide/src/inlay_hints/discriminant.rs, crates/stdx/src/macros.rs, crates/ide/src/predicate_eval.rs, crates/vfs/src/file_set/tests.rs, crates/hir-ty/src/solver_errors.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"81ab9ef7193205f85dd4943c0529422f62ee9d486beecf244a120fb51b2dfef3"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 4 significant file(s) lose their only recent owner: crates/ide-completion/src/context/tests.rs, crates/ide-assists/src/handlers/add_return_type.rs, crates/ide-completion/src/completions/mod_.rs, crates/ide-assists/src/handlers/generate_is_empty_from_len.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc5992551a617bb3d9acc472e24ddeb196d715c798792114e91b6b0ba081cfd8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 3 significant file(s) lose their only recent owner: crates/ide-assists/src/handlers/introduce_named_lifetime.rs, crates/ide-assists/src/handlers/move_const_to_impl.rs, crates/proc-macro-api/src/pool.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8ad3804741705411bb56dea9b4043e88663a25c62c69d6f664744a8c63b83f9a"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 9 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (37 single-owned of 751 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 751 of the 1439 production source files in this repository met that bar). They are anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)) (\u002B3 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: crates/ide/src/move_item.rs, editors/code/src/new_project.ts, crates/stdx/src/variance.rs, crates/syntax/src/tests.rs, crates/ide/src/matching_brace.rs, crates/rust-analyzer/src/line_index.rs, crates/rust-analyzer/src/cli/parse.rs, crates/ide-diagnostics/src/handlers/unary_operator_cannot_be_applied.rs (\u002B1 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: find a way to bring this back \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/dist.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fb9cdce0bf6232cfbbee6a206aa1c1966c6ae3901c97cd240e8a242f419d50"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: switch to \u0060--revision\u0060 here around 2035 or so \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/pgo.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aea1f4f64a9291b3c607920ec916d5f6af3ed98d33ab534591b8c21d419cef3"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK for const fn: math on primitives only \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/text-size/src/range.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aea6e3175af57984bb6ab0c679e587b4fd8b364f9dca7fa154aae0a7cf14adb"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK for const fn: math on primitives only \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/text-size/src/range.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc40290904e75e8c4f53fc7002690efec5158c66c53f16ac5c0f659dbe491df"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: fix the lints \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/expect-test/src/lib.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"703910d3258631d16455e349a858b5adf801279147bc35fdc4a7162f7593fd8f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: This is a workaround, when the client has been disposed, VSCode \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e7007c4a2a465b6b3ee391b302404e746b5f1a896a5be7481085d035b559fa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We currently emit this diagnostic way too early, before we have \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e63f48d8d267738e53df29c3e8668cb40a593dca106d27fa62ea755df389c5e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this is a workaround until vscode-languageclient supports doing the SnippeTextEdit conversion itself \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bf7938944ef8ecc056a00290a0bf8277fda280db50aabd922b408c1ea19c36"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Merge this with \u0060substituteVSCodeVariables\u0060 above \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb81dae981d2a00a287a160ce075d0ff8ab9f341d4475f4beb6b9b223849d19e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support for remote workspaces? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05dcaa4abdfefb3cb9387ed07c3ee7cc6514d6107cf13bb259846704187c242"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should re-use the client, that is ctx.deactivate() if none of the configs have changed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/ctx.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0ee373790ca28788b15f0a59079921ac4dae6ef48e23c41b94b6430abd0799"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should re-use the client, that is ctx.deactivate() if none of the configs have changed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/main.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcb674ddec7055f81bab825b2645ecdfc6910b313613cf55dbba250584a598c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove lldb-dap-specific post-processing once \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/debug.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1696f2b1de1cba4acc5682fca2e1e8da37063da206fda6966f1f536b968a5b7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Neither crates\\rust-analyzer\\src\\main_loop\\handlers.rs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/debug.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"80dc0d5c8f826b390eb51824b96aa2f73d08db209b3b43d8f02d9de8600d8595"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should be non-optional \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/main.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f3b0811394eb27811f822d5816e3e995afc919bf3b20bf811bbab0168eba0a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The server should provide this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/tasks.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5b26865ee82e9546b94bc258810b9955539b4c3612b023b977d049b7cab4a1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The server should provide this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/toolchain.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd039573b80db6d46e797b69e91c765875ac0952d8e74a1598459632d8a55df6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The server should provide cargo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/tasks.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cc575866dde629f565602d58f2b6a8e20a1064d630165cf8d9f9f342a2d162"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(hack_recover_crate_name): We eagerly resolve every test if we got a lazy top level response (detected \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/test_explorer.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"263c13beedf118e2639c9260ea4070144c8e4a4a49b0a81ae029c1c2c3928145"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //!     todo: panic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-utils/src/minicore.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"554fe233fdbf22d257cdf7da1d17e3632badb28cf40898ec3ef25470e349d871"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // :todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-utils/src/minicore.rs"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f623afc8927d479a7f015fed5d6f222de1bedccf9ce95e18c2d69f63261234d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is less than ideal \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-fixture/src/lib.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8feb67c64b0791feaf13af65aad1e1cb82bb7ebdb3792ec98ab40ea6ea86558"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is less than ideal \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/tests/incremental.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7fbab448b0bd545db760679ad98aacb1a1517be285169aaba85dda4cf35e00"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX Currently replaces any literals with an empty string, but supporting \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-fixture/src/lib.rs"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ac1a78334cc68b27ad27aa7c39cd24a98bdb97636c07c6f1af8d50e0378f36"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we probably should re-think  \u0060token_tree_to_syntax_node\u0060 interfaces \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e370c6f9f8ef76c6703ece9b0811c28cc519bc1dc47c2cdb286a8974558a1ac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: record an error somewhere if we\u0027re closing more than one tree here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"402dbd1921051858ea1d28b64a9e1885adb90147aaa0ecc3c2a3cc30df9abc04"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this might still be an unmatched closing delimiter? Maybe we should assert here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acf0eae7cb64b391647654fda817d819191ec595525b22cdb6c7ec088aaa378"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: record an error somewhere? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc0fedb1f4ffbcc94c08ad97d46eddb9f0dd843648228e8d88a2979d26e2f27"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Span splitting \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"596a091031b84676a361fa76b42660766eca4f926d4980ca07a831e29a2c9a3b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emitting whitespace for this is really just a hack, we should get rid of it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/lib.rs"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d285063e48700919cac423057d463311f86f39e201c8de61b78c467ad2061bc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this branch is for \u0060=\u003E\u0060 in macro_rules!, which is currently parsed as \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/prettify_macro_expansion.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dace1b4e75acb4d5bfe3f9e6228b19989099ad0581570cf37c35eca954a417"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Why input included WHITESPACE? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax-bridge/src/prettify_macro_expansion.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c90eec8a3499c306f96db67b087a8f584f04ffca6d9985f8a2cdcc67a4aea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment repeated across 16 files: The identical FixmeComment appears in 16 files (23 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 23 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022// FIXME\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/fuzz.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b945950d1d093f77c47600506a7a055e18085a253effa4305b83df29b4881f62"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: validation errors are not handled here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/lib.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7429fa07ccbaad8b3803c95a2a986d21b8f08676751b37218fe3844e6e4c4c27"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe983db1d73954c2090942d10cc0975000f60c126153ebc8d2f4f602b7379c7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/dot.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf952bd2c47f8e9f04016a0f8b627dc7f063653a5be3481c9c289e9d3b9b338"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcb5af5aae47ae1d82b82879a2c082a0d62b9a5bc4d918c9b42558358a74fd2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a296b001d825841341c14bfb58a66e875da7ee10f57f39be48b04bd829f9c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/expand_macro.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ce6683cdf52360f089e423a0d9ed69c726c751eaf0d43f44f9a5d80f5cf48b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"4003a4bb76447b5ac0909c053b29075004104b052c1d7ee0e9d8b7f7605c5e39"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/quote.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"266da5f2153cb5036f1f7b227ef23ce7670b1549111ec26b80db1af5c737b45d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: move this function to outer scope (https://github.com/rust-lang/rust-analyzer/pull/2834#discussion_r366196658)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0558636b37fd91410c3328f53a97a8b39d49d09a5600dd5836b86b09e2445488"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: lift this lambda refactor to \u0060fn\u0060 (https://github.com/rust-lang/rust-analyzer/pull/2834#discussion_r366199205)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06b1d552092f53116394333a30cb8cdd894c67ec0f5fe6590eca209f930faf2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit lexer warnings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f155dfa25d2bd1f219d27e9440b6941923833222e305676c850c5847e9566519"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: disable validation if there\u0027s an attribute, since some proc macros use this syntax. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"a440e5416f754f81bfc5f8e094d9de68615827902115465d9e57258dc2aeaa38"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is not a validation error, this is a context dependent parse error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac0e221751e4ea0dd615b203c53f6c9f942aa068da40345b9a3cfa576d759e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is not a validation error, this is a context dependent parse error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/validation.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dcaf05a0047503bb118951a66c4b5a4e088a1d4f7960b0cff295e8d440d525"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: some test here actually test token reparsing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/parsing/reparsing.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7f2797ee9081b0cdddcb1949b454363e9762fb30a77f8aa30be7e310b4419d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: reparse only int literal here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/parsing/reparsing.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0339d8671d02608706eca70f2d6654bd06e38217c08a3cd1beb8f414f47acc6b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace stringly-typed constructor with a family of typed ctors, a-la \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87f24d21acba084aa9923058c976dbb43d03cfe5fbcaabf490ee1a8a9919320"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: path concatenation operation doesn\u0027t make sense as AST op. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"139082613b83484a4401e22a8da409d2d96e70a188379d88d443ea2497b9ae66"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should not be pub \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bfdf99914598c5d14dd5c3023f449642884d6c44f0f5bfeaffc42275f54d0e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should not be pub \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"e933757ce1c6585d352bab04199ffd54746e3155607922b897aae0ecd637a5f7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: replace usages of this with the mutable syntax tree API \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1475c4a3a5154ba5eb62841e75d658524acd809a6cee37e937ff6313053836"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: remove when no one depends on \u0060generate_impl_text_inner\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/make.rs"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b051026deeaa5de044dfc638a742845395b55acaa5012e85bded9176291c38"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: remove all these methods, they belong to ast::StmtList \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5a2f9dba8506cab21d21d65a4e36820578f0bcb76032c54d3665ad2c0b4fd4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: Calling this is almost always incorrect, as \u0060cfg_attr\u0060 can contains multiple \u0060Meta\u0060s. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"40276193660235df73819d71b9d0a358b8cf954d5277fc9bd14a9971c08580e9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Accepting floats here to reject them in validation later \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/node_ext.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b634f149b39a3ce3147c2e4f69fb5f8994b8ed4b7d9d6f917f3a8bd1475332"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451) Use \u0060expected: f128\u0060 once \u0060f128\u0060 is stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/token_ext.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e6cd5707c63379f0fb78db6be649c0d251c95e3d5446fd7b5da0c5d2baa3a0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: exists make.expr_bin \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/ast/syntax_factory/constructors.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25b8ef502b86fc49d72d5e82ab3c6463bbd912232aacb6d1d7b84c4aef819a4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Technically \u0060ThinVec\u0060\u0027s layout isn\u0027t guaranteed unless we enable the \u0060gecko-ffi\u0060 feature. Should we enable it? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/thin_map.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95e5a9d155ec6e486176ed71fc80ec5610e088790bfb86513bd9ba93ef52f57"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Switch to \u0060Box::into_non_null()\u0060 once stable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/thin_map.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea1a3c696d203ac20afc1e7a8439ebd585e033525c7002b4bdf9a497d83a68b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Windows has QoS APIs, we should use them! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/thread/intent.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c79e7d93c61ae0799425bdcd31032f59c578542a0962b58daee42158132fa1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: If we store the final \u0060UseTree\u0060 instead of the top-level \u0060Use\u0060, we can store its name, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd35a7dac7449f64162e7aa5318cfdff6c04f21c541dfb52bec186fc20476a0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is this the correct thing to do? Macro calls might actually be more incremental if \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"3225aaf87d8e96796726486d8ea0ce8b1d6138e4f2d7344d1962f15455be9796"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Technically there could be an extern block inside another item, e.g.: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/ast_id.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"be719dbe6d9815f12140ce96fbf7d2e7601cc827ffe0b03ebd234e70d947964e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The None case needs to encode the context crate id. We can encode that as the MSB of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/hygiene.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0c0a4b5525ae77e0430025b8b9b3361c69ce2785b45e53945252699c8d177b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Give this a better fitting name \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/lib.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f928f82684d97a9d1d0a80d5e94c39792e7fc30a6bd9f92c2e236d5c244e69"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Does it make sense to have this here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/map.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68e4bd1dc11d1e500ecbd62534becd42844523267f2ca1084fb658126487032"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this might be wrong? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/map.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e6b0eed945c33fc95cc9f6e40e7759b53f5859b58099ecf1cd8ea0144e48eb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: SortedVec\u003C(TextSize, ErasedFileAstId)\u003E? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/span/src/map.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7543992512766069fe8c1ad56a9f2dcf233362500c8683686af4f459727eb594"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This test is failing too frequently (therefore we disable it on CI). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/tests/slow-tests/main.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d40680dd6896dcdd63602649aeb5095768a23fda3b89f9234aab4e76904b07c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME @alibektas : This test is atm not valid. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/tests/slow-tests/ratoml.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a186c0e71a6a6cd20851abe619b53156e055a0367bcbc7832b27f9a1888705ed"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME @alibektas : \u0022locality\u0022 is according to ra that, which is simply in the file system. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/tests/slow-tests/ratoml.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d7934e3f228bd505a59fad593ee39670ab70ef66118fd24e47ba7b42032779"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rewrite in terms of \u0060#![feature(exact_length_collection)]\u0060. See: #149266"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/tests/slow-tests/support.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f2d1528117fdc9fa5b934c524c57c355e4805de37732d1f9be5a9da1fb1d77"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rewrite in terms of \u0060#![feature(exact_length_collection)]\u0060. See: #149266"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/raw_identifiers.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e1808374020eb3896a749a5c45016e3df2d05507979e9fe7067badf7dcde48"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rewrite in terms of \u0060#![feature(exact_length_collection)]\u0060. See: #149266"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_then.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e695e4248ef358e81933b09d97d22d4a548aaf7a91e938322ee2d1f4af4ae5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rewrite in terms of \u0060#![feature(exact_length_collection)]\u0060. See: #149266"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23f037a3a3d174242e4f33a9ee009db16909c52b2b24615595a92f5eb1a7aee"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: /// XXX: remove the tempdir last \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/tests/slow-tests/support.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b336ae74168db6535fce528da9698a5c8743db8d7390d1944f539a58b09041"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(@poliorcetics): move to multiple targets here too, but this will need more work \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"109bc5c50723da4df3733ba82398a678ffcf3f64d8b41d35ae8ec27598668e9f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME @alibektas : Server\u0027s health uses error sink but in other places it is not used atm. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5a27804fa686f49cbf47c326a34659a47c36108325a4be101fdc9820f2e609"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME @alibektas : This is the only config that is confusing. If it\u0027s a proper configuration \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"7657afe26043b811b5b4adaf20a55288700c5b1c19d426fe12a41dd6d0ea031f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Also detect the proposed lsp version at caps.workspace.workspaceEdit.snippetEditSupport \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dc1551639ee8e7d1cbfbd6c26d7b2dd8b835d7da469f47253a0caaeb472cac"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: check alias first, to work around the VS Code where it pre-fills the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":3651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4a69ece8cc6fa888f63ad07be7477fd198cedb54d3dba056a15198f35795fa"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: check alias first, to work around the VS Code where it pre-fills the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":3679}}}],"partialFingerprints":{"codehealthFindingId/v1":"584579200fc9b758936fb35ee5057f96ac93e57cab79029a5e52313a21b18314"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should be FxHashMap\u003CFileId, Vec\u003Cra_id::Diagnostic\u003E\u003E \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e9b4fcd966f45632f3d187cccf206cc59bff3e57155743e16fe5bc91186104"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Doing the merge step of a merge sort here would be a bit more performant \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4478f2eb4fe75c4091aae5615f482f5b5fa63c03f72cf93dc4830e8b00ded5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: are we sure the extra env should be empty? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/discover.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc34b543e7d00f34cd10ff288f586c0d702768a071133931250ea6355c63bff"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: drop order is significant \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"891bc1cfe89a50beaf9405bfa03f920f5c1fdeb5687bb44c281a805c2ebd7df4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0026affected_workspace \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0a1e5be082420af63373af9d8ab3b7559be291f516f53afe242492e5d49917"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// HACK: Workaround for \u003Chttps://github.com/rust-lang/rust-analyzer/issues/19709\u003E \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8aedb1e55f2f027aaa26e103ffbd12707b4405f21dff0f60ddcb050eb4030b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should move to the VFS once the rewrite is done. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"345c5be6469b5c280bf2e3018719ae2bf2a57e016da23fa7490076181f0f8caf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Can we derive this from somewhere else? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce37db2bed956290ec33bb0cd444be74af3ef9d3c5f02083abb65696f2c3f3de"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Consider doing normalization in the \u0060vfs\u0060 instead? That allows \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcfb9cc537e905f53f4964c0db87281bc35ae4d875df9a958885818d63567ef"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME @alibektas : This is silly. There is no reason to use VfsPaths when there is SourceRoots. But how \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c5ea450aba4a2e76a7c33d47e19583abe0923b031b3991ba35dd74419a18ef"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060workspace_structure_change\u0060 is computed from \u0060should_refresh_for_change\u0060 which is \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b751529bf6d1fe10a8951f753d2e92528023494c2cbb7aca36d291f6ebafdf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: ideally we should only trigger a workspace fetch for non-library changes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"0401b2f1f7d71f1e23552f9c3475b6d885a43db59c67574ae797b1ebaaa401f3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should cancel the in-progress fetch here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c7d9e8010e77412799d282f7a1ae2d4583477a7df1748db010e79fe187f7a5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this in favor of a more general QueuedTask, see \u0060handle_did_save_text_document\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"908e348129153247bf84f6e2ea46f30883b543093cb1e81df662feda14c7be26"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME This feels a bit off, this should go through similar machinery as build scripts? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dff2b164173ea305540de1910f9fa604c7793aaac89328429deae5099c8ac6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Check whether these files could be build script related \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4598f30976268f64662306d6fb68947670a4e30b2cfea21b9e968de4e39d63f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Retrying can make the result of this stale? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fdc0ea842e021c8535b4a3e815705041d68ef29a1d5f6af40e2ec10158ff6a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Retrying can make the result of this stale \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0942da0840989ab15dbc708de6ed3a6bbd941996a700872720d75c3fd94355"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Some of these NO_RETRY could be retries if the file they are interested didn\u0027t change. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"463cc6e31fc54abdccf468e34afa68e66cadc79458affb3ef86677bd05961bf3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a mess that needs some untangling work \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47be4a54d05c316cb12c2d221f4ec125174a1fad00ff25aa60f7de0f3c5c0c3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: can we abort the build scripts here if they are already running? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c010496b0816defb30d10dd7f1c1617001ecb841ff16255d0d5b7d5d97eb05d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Move this into load-cargo? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cb8520de718943642afb10b6f019959df50b70b2566db9b709df4fb69ae465"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove \u0060.with_filter(LevelFilter::OFF)\u0060 on the \u0060None\u0060 branch. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/tracing/config.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4739a5747e6a54cbf655ff68d10a4d7b595c46ffc52eeb7a92021e585a06ab7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove \u0060.with_filter(LevelFilter::OFF)\u0060 on the \u0060None\u0060 branch. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/tracing/config.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"318bbff0f14e94d8aeba4222e40261635e74ad2efe291521e8ed8f4ab9828c71"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: ideally we\u0027d put this on \u0060SnippetWorkspaceEdit.change_annotations\u0060, but that doesn\u0027t work, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/ext.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acf02610a36e554df730149666ee6a56f26b0b7accd5c7e7d603934cdca93d5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The cause for this is likely our request retrying. Commented out as this log is just too chatty and very easy to trigger. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/from_proto.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32b4f38a777518a8319924a0f25d105ee323caaf42b552e08d96a285922c1be"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use the \u0060_runnable\u0060 here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/to_proto.rs"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e72c9cd7c33b57a29675dff7f485d2d4091539fd31752808805b49a03f3fbfd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should move this check into a QueuedTask and do semantic resolution of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"addf33727e1dd78d7c99267e7bf697a51483f2e0f8c4e1d0c8d9a5a9a1f247d1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Because triomphe::Arc\u0027s auto UnwindSafe impl requires that the inner type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"f169f8d747f68ad5dddf5b8235185f0591c3ea3a8e6cd9949e7e2092d8cfc2bf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Set deprecation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"0079e8105ada914c9944a64fc910d369eff745f32a5fd85d03096c5e4f1d368c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should fix up the position when retrying the cancelled request instead \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fbbf66057b49ced22bbf6ab36a6ee38be30e54abb29fc3b8d9852175530383"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should fix up the position when retrying the cancelled request instead \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"782ec05e70563980c918c384b7d8f22db1ecbf6c940cb3cdc7ba4757784e6713"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this mapping is awkward and shouldn\u0027t exist. Refactor \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"268c7740bc354e91126cd5a3aac15a0592b435524083cf99e439f9dedaa6d460"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use \u0060rustfmt --config-path\u0060 once \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2418}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbdd25493ee2a99548c20a6c9f70ee32cb1ec7a7071e165c0dd77e7e41a7dde"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Set RUSTUP_TOOLCHAIN \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb9131f2ec021eecff662f86e56e90e0ea6605c637b4347d1384e4885ffd936"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: special case for \u0060warnings\u0060 rustc lint. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics/flycheck_to_proto.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65d7b9c5f6a474cbd6d0de026fbcadf284e6484ba8a25e41d7dec3c05854327"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: special case for \u0060warnings\u0060 rustc lint. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics/flycheck_to_proto.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd117fd51f13d2a20f706de93da60dcea098a5d86addf120b645f8d3e39629b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: current rustc does not seem to emit \u0060\u003Cmacro file\u003E\u0060 files anymore? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics/flycheck_to_proto.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76cb59c4ba919ca17abfc8bc07f5425240718206d6332835a4391cd029f4717"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: there\u0027s no good reason to use edit_map here.... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/diagnostics/flycheck_to_proto.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dfdeeb97c854f0762305d9e57e4e17c51b269b25e1bc479ae3489206782f2b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(salsa-transition): bring back stats for ParseQuery (file size) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec10d2eaeb54cbea7bee82501cfbb9e7c0ac3cb9d47754ffe9f9ee5eb1589c8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: In some rare cases \u0060AssocItem::container_or_implemented_trait\u0060 returns \u0060None\u0060 for trait methods. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ee3161596a30a22ad89d841e463b54c101ca0c819281ea61c6422ea902c0d2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We don\u0027t have access to the necessary types here (nor we should have). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e4cb2647fe9f565078cee563e9d4be89ef3b6da9492a4cdde964deba43886f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(salsa-transition): bring this back whenever we implement \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab16ba55b7d5b0b351bdeb64dac3ef84efa6833563e587b4f79a4e1c1d279d9d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME @alibektas : What happens to errors without logging? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f33e3ad5e8855103537c3306d2f0915355e3006b79398532f9d9fdfa10d5409"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: See #18772. Duplicate SymbolInformation for inherent impls is"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb171586158559e52c79b59fdc0735bb3c8f09a94f5f352c96be91a7de1f823"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Known buggy cases are described here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f09316f99a8151cb3ed4aafb0d36e8ca2542379e644747040ee88370b63aac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This test represents current misbehavior. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2aeacb1f5418942f943bd5db93993d08e49c0137c1ca32249e957bbabc1b4b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This test represents current misbehavior. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"26116aa85a994d91cdd2b072dc7378dad28965362eb2024aed7a2fdded6ea87e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This test represents current misbehavior. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd07abf3db5da01217c51fbc88590d0ab3db18f686864314503e91151b9ca98"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This test represents current misbehavior. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9da8216471481b0727f931931f46b6aabacc96dfd5a6cc6a2f96ec401f2dd6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be a local: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3709ab50a2df5fb952273011619514bf04b47864f84ba70d90f19cbbc8cc28"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be a local: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cd13181903c0053c7fa81715e06ffa48411a07909a831246a33727c02b6f37"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be a local: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d1f856a56f7e33863e001ab3716c3e3bd8270dafd3fb1a726b83635834310e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be a local: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c668e5242cba17e902cb968452230fc5b107d2f110f06ea062fdbeb8bbbf848"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Find a better way to know if it is a dylib. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4c3694b33e67ca219911ab6a8fb3d415e39ad6e0c0d329c2828ba6f72109c2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: ask Cargo to provide this data instead of re-deriving. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/env.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b347bd799042f17abb52d8788cba88f8b8440f11fe1f794e1eb275edd8b4e7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Missing variables: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/env.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32f1b972ba7a761d6a4685789d578cc21ebbac9d86531ab1103e6f130b015b9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this, that will bump our project MSRV to 1.82 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"e847dd2a1fbc994b655d74db0eec857c305033a4bbb3f2b240ed0e48884666da"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make this a per-crate map, as, eg, build.rs might have a \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fdf383f481603a65d211e36d3abff57315730356000ac9d4f6efbf48139d0b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The primary limitation of this approach is that the set of detached files needs to be fixed at the beginning. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d957de2cbde0a3098b585402af48d371a301e574cc2a8e82494cdb6dbb6ff4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This looks incorrect but I don\u0027t think this matters. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cfc1a8a6571fdef033966428b69b7ab5ed6bfb52f1e857c07180a74b9aee27"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this once rustc switched over to rust-project.json \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"2806f2ff298d15054f4ad15e9d55e50e7ae304441c2f380e0260acb232be8199"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This looks incorrect but I don\u0027t think this causes problems. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bd40b23220fb32c651e4a98a561a919ae351218c7d3a64a27313fd0aac89fb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This looks incorrect but I don\u0027t think this causes problems. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccafcf6e212f2a478bdf78d7b913a8dc49e772661f1a1b98ae9f5d62aa2e1b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: There shouldn\u0027t really be a need for duplicating all of this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"df317ca041db45c971aa3edbb88baf6f84bef4b73b427e0d263cdec776b50dd7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Passing extra_env is somewhat dubious here, for the same reason we don\u0027t pass \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"1917c63c95e554ca4e1858b5af56f0ac45b86415469960ee27033a823046864d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Once we can talk back to the client, implement a \u0022long join\u0022 request for anchors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/lib.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d25d37bf5eab8366363d1131c5551e15c100ac508c45adf1b5b93f6950e4dc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Error on edition \u003E= 2024 ... I dont think the proc-macro server can fetch editions currently \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/token_stream.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"38de45d08ee3dbe9c1229f0bc1d4753d992b7ff47313b625a63d82d89c040771"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME handle diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"875e5bb24ad140b5c6b5200c3e0aefc72a4c9e85d436a45b6d88e50fa3b31548"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: requires db, more importantly this requires name resolution so we would need to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"722487db467445b491507e2e7506282e398f3de1d96f6f27d289c61759892d2c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME, quote is incompatible with third-party tools \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0759e33ba2727c613502824f75f7d0108526849c3f9bb68dfb850c89c0cdec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME, quote is incompatible with third-party tools \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c2a4d6c8d8165e4f69b5c90f2d3f2039e25ca7635eaeabad653a1d7cea533a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: nfc-normalize and validate idents \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9096fb19ef7bcacee65f56f0f9c0d6842f0329fbf2ea7090e7719e5daf31c0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: nfc-normalize and validate idents \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/token_id.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cc0f3a24c91e785c3cbc972ccbcfacbe2e8a748b7eee4f4d82cbfddea1d00c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Avoid \u0060AssertUnwindSafe\u0060 by making the callback \u0060UnwindSafe\u0060 once \u0060SourceDatabase\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/bidirectional_protocol.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"96960d4a7d05b70be7e018d139815f232242f9928bb50157adbfb82e90979145"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(ChayimFriedman2): We don\u0027t handle forced keywords here yet, to be done after https://github.com/rust-lang/rust-analyzer/pull/23152."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"332ce680e81588e81fbeaa4a713b9b1902faff4a5131973aac499c90809313f1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060count()\u0060 walks over the entire iterator. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfb745dc3a1174803573542864c52d4ccf2300faaf26c7ea23272edbbb8ad52"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: we iterate subtrees in reverse to guarantee \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f671a4120a51ed881375d8d886e2cd79b3fe1bd197c2ba225eb6d9bc208163"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: we iterate subtrees in reverse to guarantee \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"282f8954b02883e5bd41d8cd43bb8cb8b73bc477f803707dc59b7e131303e74c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The protocol does not yet encode entire spans ... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/legacy_protocol/msg/flat.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a50a5a058f3654695da3a3b5eb14d45188df397e5033622047967692658b17"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Ideally this should be handled in fixup in a structured way, but our list \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"d426fe497eee1d6cc6cdb1ae48174ed482416eb9dfc0c1e90e63692007cd7657"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is not correct, see https://rust-lang.zulipchat.com/#narrow/channel/185405-t-compiler.2Frust-analyzer/topic/Mismatch.20versus.20rustc.20parsing.20in.20foundation/with/632168944."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a981dd8e99f2a5261fe0988e7cf95f1b62b94f0b9ae934a21a358945d1785d49"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc does something better for recovery. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/lexed_str.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"626f11cd75d023cb28a202680381d057eedf1a6cad442ed34c36816fe554f9b9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: panic!? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/parser.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb51cbb64935e4c9251a08304e1632eea4f36a327c0002e8b8a9964fc74e904"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: this should be much more fancy and support \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/parser.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4a9af4c592216cff3ca3564b9fb2746fce16796f87770cac79206f0d512c9b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldn\u0027t be accepted as path actually. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/tests/prefix_entries.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef027c49d8cb9bebb9905b08555c3f34a899fdc467354a731b9fa8b46aa58da4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldn\u0027t consume the semicolon. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/tests/prefix_entries.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cafad7809b91d54cdb7486e828cddcdb0104eaec5883682dfbe5d4e3ca8eb6e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Trees are not ideal, but like #23477 will break things like MACRO_STMTS"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/expressions.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"21434bfa9bf1e002f18ed9a50a467b4704fc9b1f9aa74f00922966af4685827b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: not all box patterns should be allowed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/patterns.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5e87df03b9fc91a698b55e4b070f62e6bcc33da717a651284e0af1db9edcee"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME: special case \u0060(\u0060 error message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items/adt.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4dc7ba284b9c75a9d08cb1d64143b2b52b74fb724c713f41900c62de6d598f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Recover on statics with generic params/where clause. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/src/grammar/items/consts.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"12001b74534113573da6ca4eafad792a7be588e6111a1b5e7bd329e436d4c946"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Showing these errors could be nicer. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/lib.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9875815962de0950b15f7a6c2a378df9a184b0b2310d21574994bd1044430b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We need to split the tree properly here, but mutating the token trees \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/lib.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"36be1fc5bf5b00750e08b1568533ff4f18d9631677d973e68c89541c4c4b7416"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add support for \u0060attr(..)\u0060 rules with attribute arguments, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/parser.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d870cff032037076bfba9c775b397dabea8a271640da4ff2daee8749bedaab59"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Move more of the nameres independent tests from \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/tests.rs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a85b1832999fe35cb2fc37cb0b60e96f04b50f0fafeec62915cdf341b5ed85f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: here we use \u0060meta_result\u0060 to pass \u0060TtIter\u0060 back to caller because \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9279890d5668c34646d4f7d8841d9fc6dcf2088db368585fc4f93c32401473"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: here we use \u0060meta_result\u0060 to pass \u0060TtIter\u0060 back to caller because \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda4c5a916363cb4424434d2c53fbe51a5718bc40383b47a5d0ef111de8380e7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: If there are multiple items, it\u0027s definitely redundant (and it\u0027s hacky! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"7499805b47952931223b27af3b024a6c1180f48edcc6c245ef015f077a1a9f9d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Macro expansion should not be done using \u0022rollback and try another alternative\u0022. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/matcher.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c8e8f3174dfba5319fedf4ad3e926c7eb5c779539187852266d210de67ad45"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Meta and Item should get proper defaults \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0e6bcf465cabf8df24faaaf91d685243845e738767a0064cd84e74f0fee4a9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The error gets dropped if there were any previous errors. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0da629bc7721be2d4d60ccacf42b262b758813c13827c7b93aec815bb8ceecd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0befb73e655fd6560f9e3d7ed893178183c9d94937b0022f2d183db30ff61a27"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Breaking here and proceeding to \u0060count()\u0060 isn\u0027t the most \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca8eb3e9d70bb9748a7ea7a5f9df13838da222737f8abe2433c603b7a8d3cb9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This isn\u0027t really correct wrt. escaping, but that\u0027s what rustc does and anyway \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7df1b01087b5b6cf65d2db5fa7188252a51457ed873ca9dbc6f175e8923705"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do what rustc does for repetitions. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"65903eebffa9e3c5b46876548c950e61e26ec14040993a46174942a2b0bdb8fc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: NFC normalize the result. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ba0b8795457f45049b7c4ab5e1edb0c6603b056136a988229ba40d39f88048"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a bug here, we get here when we shouldn\u0027t, see https://github.com/rust-lang/rust-analyzer/issues/18910."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mbe/src/expander/transcriber.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa84dd4cce4ca9eae74ce45fe3c6a4dac3861564135b2131c1340ab1be9a2b9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: implement this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"66224282a792a8ae0df87ec87c3bebdd2dfb308bb0ac1b1b5df059871a24bd79"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should ideally have a test that checks that we edit local roots and not library \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/search.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9aae5915894b956c1d2ae068fa45c52ec2774f6de7a24c8f8d3affa08603fab"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Properly handle use declarations. At the moment, if our search pattern is \u0060foo::bar\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/search.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b2d09efd83d7a11c7e3336255485809063f3e76b946106b00f6ae333841c68"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Take the scope of the resolved path into account. e.g. if there are any paths that are \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/search.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4d50d07438dd0cf43894cdd4a9f1b9d589a439b675a48834796e7bc777ade3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Whitespace is not part of the matched block \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/tests.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13e9e41d5b5ee72597a30b068e86687186bfdd49b38639c1b9089840fabd503"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Figure out why this doesn\u0027t work anymore \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/tests.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9f2238e1a2d7ba48f82977cf4917376309378bec9074191ceb033945b39a2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Rustc lints are not always warning, but the ones that are currently implemented are all warnings. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a97d155d5c76ef9f6126ecf617035af5fa890986909f5b70b0c8eff96f3cf9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We can make this configurable, and if the user uses \u0060cargo clippy\u0060 on flycheck, we can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e33c3e8832b14532634611740b97ee4f29b96ae53c42b0cd82ff3429649432"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We may want to include a whole \u0060AssistConfig\u0060 here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20c327dbfd200c99804f49cb0e8ff9b7f8074288c3138016308725b92753985"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This iterates the entire file which is a rather expensive operation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0c15b6610ce996101af9ee4c0e1c06ad50df409bd457865a5db4a006829712"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Point to the correct error span here, not just the macro-call name \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"d610a8286f634bb736caf92811fdf62d9ff90a4a7f50279671e99a4cfac58837"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Autogenerate this instead of enumerating by hand. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2576d70ef1441a4009d7524fb510d5a6a448699c7966f6ce59175ac3f263e6bd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Switch this to analysis\u0027 \u0060expand_cfg_attr\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/lib.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd0a9973f0434bc2ba855d0aa3734e0c7640c0026b491698dd792f55b78308a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should panic on duplicates instead, but includes currently cause us to report \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/tests.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fbbb33700545a1c7c143a9c622d2edb3583691b8eeef6ae46d9991903d3eba"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Maybe we should merge copy and clone in a single flag? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/tests.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba39740bdaca450c3698260c49ee48a78fa8a6c20c4bdeb9e6eed94592a85d5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle macro calls. Rough plan: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"299a0df2b59efdd26a55a7e4f7ee124cb16966562204005bab2ce3bdcbdf5c8d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this work in macros? Might not be worth it, as this is a niche way to trigger this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/explicit_drop_method_use.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"db62da896cdcfb18299402d161f69206e589a63d1f25109a022b31ead92bf635"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldn\u0027t be a diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/inactive_code.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d031004f869e758d13d4ed681553cae55274677b803737b903065822cb6497"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a false-positive, the file is actually linked in via \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/macro_error.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43cedff661dd3492c45b0686eff13b4413e02ecc213d24b07880cf17815bbe3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The diagnostic here is duplicated for each eager expansion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/macro_error.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7e635bf1d2430e5e13fdf065fc738a268ab05799065e7ccb7d7588f176df24"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this also currently discards a lot of whitespace in the input... we really need a formatter here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/missing_fields.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb694a67770d24576d7b96efdc187e331d2dc07e3605334cf5388bcfc6882baa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Ideally, should emit generic default forbidden as well \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/missing_lifetime.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6764c97945b6f7f03260b190440842df485af063a357e777ea4a4bc882dea1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make facilities to test this directly like \u0060tests::check_infer(..)\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/missing_match_arms.rs"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"527c701fe0093d200a301eaed88bdfc0575cc0962b16e2a8b06c71e111aa8be2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: quickfix for pattern \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/no_such_field.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2eb559ecbd8aab7aa25ca18f3deb274582a549ab59c9394c023a32dbc1fa99d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: check submodule instead of FileId \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/no_such_field.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec4360ae01e3bea4741ff903293ce3777611500d9564ffaa9257f41311ebe04"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: add quickfix \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/private_assoc_item.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"361228b932a17c4014f9befe38c34cdf170ea9fe7a01e05813380a328c032647"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: add quickfix \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_method.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb4a6f4ac8299265d70f6fd61463bc72c8938ea1f083710697fd8b4c8a7213f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Our infra can\u0027t handle allow from within macro expansions rn \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/remove_trailing_return.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a81e445169fef5b29a57c5b6317c925623f69458467069232e9ecd7fbdcd89d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Our infra can\u0027t handle allow from within macro expansions rn \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/remove_unnecessary_else.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a3115d48b22fa0de679900bcf07fa36a69f6f2de8b80bd90b050f8ae72f894"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME cannot generate generic parameter and bounds \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/trait_impl_redundant_assoc_item.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"308f3c582b4e5e99cbe35dbb10585401f88dca7428d63209438a3ab7fc062826"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: support inside MacroCall? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9caf4b8242a0223e83949970d97cb565260e8d0b34fdf962499611a55ca0cf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: support inside MacroCall? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"331a7134594f0d76daa2d3885456862d3f6318577d2a34c59f7e607096e2759c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME do this properly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc83cd436b33241c920371013b20adcc4cb6d2cc9003b0db4407ecf9da0b622"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: maybe should check if ctx is async \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"1824a0f6625f8607bc309e5efbb75daa04c4ee1d38e8d2b0cd9dc4e0e2b6ba2d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should suggest making the reference mutable instead: \u0060\u0026Foo -\u003E \u0026mut Foo\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"126c7d0e27f54777dd79f6913891623687be97c3e45cad444b4f3dacf5751bb1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: add some error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_mismatch.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"021ddb78d4fd95f6a090b26002dd09afc459dc2215ab04833974ffe36dd962fe"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // Do some adjustments to the node: FIXME: We should probably do that at the emitting site. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/type_must_be_known.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"239446e5301cfa9c78a9cb25ef90701fa4fda6bf3a4fff7809a4049da0260922"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should trigger an assist because \u0060main\u0060 matches via *coercion* \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/typed_hole.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f93a1956f2a4fb507855debb5c9f4d0bb54eaa0abadf2a647e0ad8e8f707651"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should trigger error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/typed_hole.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"425cfdc63f7a7c93e234d3c7786d285f166fb76bf82e8465d1cfba4649ce56b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a hack for the vscode extension to notice whether there is an autofix or not before having to resolve diagnostics. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unlinked_file.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93a7639e20569d025f350704661cae8c5364ec5c09aaaf48bb62d8a15974cff"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldnt need to access the crate def map directly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unlinked_file.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61eab4966655ce68b47739d7877a988dceb6b6bb02c333c1cf71e27bd1100cc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add Snippet Support \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a91ae14345fd05f4f9d9da3d9863cc2f3853d36300236d80fc246cf82ddc7d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Allow for choosing a visibility modifier see https://github.com/rust-lang/rust-analyzer/issues/11563"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20490008247e5d7ebaa0c5d4688596d57774af4fa9a0e5b800453ee3c040aa8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Allow for choosing a visibility modifier see https://github.com/rust-lang/rust-analyzer/issues/11563"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b064645d61b0ab8b7cb3f0eb6e830bd82f8d47b1fe0d1d85a7684611ba4ad5c0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add support for Tuple Structs. Tuple Structs are not sent to this diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1798820f6aef84dd05d9a9db1591cf27befb81192ccf757f6b34c32bebd60d1c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should fill out the call here, move the cursor and trigger signature help \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_field.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21d4e1413b2684bf4631448da024d58b2c7f6f7b11eadf6b3fd993cd5a8cc38"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: it fails when type of \u0060b\u0060 is \u0060Box\u0060 with other generic param different from \u0060receiver\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-diagnostics/src/handlers/unresolved_method.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5bfc31afd40c905f603baf621e14b976b788db7d8e4dd07b0f4c0fd8b33acc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We don\u0027t record the resolutions for this anywhere atm \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/active_parameter.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14205584735c41212c733b21327941e26100c60fd3819b8f6323e818ab20a2b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this badly needs rename/rewrite (matklad, 2020-02-06). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e577f747daa508bf69cf1342523afc28a7da3f687cc0fcfc3e5e4c344c90629"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: a more precise name would probably be \u0060Symbol\u0060? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa74a9e5d9e164080a9fe1417a8cc8d73bf56a432b9e5a726a4c19da67b9d75"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: IdentClass as a name no longer fits \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/defs.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"7699c1c5e4eb059ecad5f4424958223cdd4955e5395771c80afb4c0144e13d76"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a weird function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/helpers.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8281dbbce12a5cbef1a223f334fed52dae8a772cb0d8b995be982d38fe4d23e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a weird function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/static_index.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e227d3ea14e9df44e4b10f7d54cd46a78b9cd6a4f3a0cb6417a4c8ae3981725"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do callbacks instead to avoid allocations. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/items_locator.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6771b184ecf6d466bdda347736b79f62e3e08eae9f72c2897c28a7df7e273263"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Revisit this commit now that we migrated to the new salsa, given we store arcs in this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/lib.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"785b8b54bcb0732dda9f4b2904c9c0981434635c3d2244acb132b4f3df188b33"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(salsa-transition): bring this back; allow changing LRU settings at runtime. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/lib.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3609c3b12a26965de4d39de62bef5a8bca20e4590297325cb9c942dd2604f793"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: expressions in curly brackets can cause ambiguity after insertion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/path_transform.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc499af3421686fd6d4fd0776aea28492e6200b6432c64364dad0e56e61c92e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It would probably be nicer if we could get this via HIR (i.e. get the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/path_transform.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecfa9b0ba00d9d29040ed330639baf7df0239d33873ccb33b1561ab8e154310"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should do it unconditionally if the configuration is set to default to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/prime_caches.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1e7e3e81745ead580552c8f4d6382aa20f5433e41675dfb75f3311de580125"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be doable in theory \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"813dbd0165f73195d1bc90de43c3920631460ba8dcba1ef77e77cdab10b4a40f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We could maybe skip ifs etc.. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8976c8e7d4e23e984c24c80af625653f87afdd29d48a1d5fe1274dfdabb2756c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: instead of splitting the shorthand, recursively trigger a rename of the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/rename.rs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7e2d31af103127f65562af39deb8d0811c220f7eb80a2177f7f4a6481260d3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add this variant and delete the \u0060retain_adt_literal_usages\u0060 function. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a44ea3ea5609bdbb982ce96da39fac93e5a89144317c361bdce4291239c968"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is just a temporary fix for not handling import aliases like \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c8d1bf8d46c34020c7884b5990c9ea46bfee924b1b95d08e1ab28e32681fc0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Extend this to other cases, such as associated types/consts/enum variants (note those can be \u0060use\u0060d). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9ba189a6998fc889b0e01e60653c64f27fe4f611ee13f29234b016603f4189"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060use\u0060s have no easy way to determine their search scope, but they are rare. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fde5bb31649aef432f6e15b7bcfd6eb7df7283eb1c5b0875a147be088b5d53"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Maybe this needs to be relative to the project size, or at least to the initial search scope? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"7820c093bec71361a56fc95cf879ac2775931960381a643e7b4ca6f1defbfbda"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: If Rust ever gains the ability to \u0060use Struct::method\u0060 we\u0027ll also need to account for free \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"63188807128f7f84593990d4d9b635c262b98390c91643aa1424f309d93b2297"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is the trait scope needed for trait impl assoc items? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"5305cee80861ab5db0181a061915530de542e933a52c0d789d09706a1e5aa677"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This assumes the crate name is always equal to its display name when it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d313424934cb35d93efea9dcbb2d70417dd5435ee68c56c8d2099df14eaf33d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should probably depend on the number of the results (specifically, the number of false results). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"de17a679825ae27c84455534dcdcf7f08e9b3c667648b763a8b559c694add055"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: special case type aliases, we can\u0027t filter between impl and trait defs here as we lack the substitutions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18437db84bd12520e3ff3b8e141f2e2d3e6b53771b589d270b2dd041e373a9a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: mutable patterns should have \u0060Write\u0060 access \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e41dd97a99d1120cf92aaf85ae2c68e7ac5c72dac5b933397b612dfa8c72b22"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: only until we can resolve them correctly, see FIXME above \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"7453f5b7b0aafb7724097a727307af60e1d177a550c220819054ed95b3e8c95f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // (covers fields and locals). FIXME: This is not terribly accurate. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2bbe356391858e33862b1367cbaeffabec5d1c3991319a011921b659852eea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This can probably be re-implemented via the HIR? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ecb249175cb71d5cc60b010e39143ecde50ebc3050c95fcc56aef64ac5af67"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this, we can use rustc_format_parse instead \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"643de416ffc94411f27d98c56180086dd64ee868ab87d5a10595097139c72612"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME Remove this, we have this information in the HIR now \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/format_string_exprs.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22d9c8bad81aaa1d02d79ef416d832627f461342bd357a4dd77d6e31d5dad49"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make the control flow more proper \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/node_ext.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb272ef028fa36a3d7008a898179b6ae2285e0e09c28a00bd1b007349ffca5c2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this is horribly inefficient. I bet there\u0027s a cool algorithm to diff trees properly. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/syntax_helpers/tree_diff.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbb1dca76008f59845340d79bd38d000f3a89b5377d730104f757383fb8e75d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Distinguish between attr and derive macros. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b954615d39b52a8a6e904c103fb1c594157bb4b61114434241bca074f9e04b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// (the structure is not entirely correct, since there can be situations requiring two imports, see FIXME below for the details) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed4a27c2234f80e53c886264628e26672391d1fd1121bbd536abd40675606e6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we could look up assoc items by the input and propose those in completion, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b1d9cb1553c373ed6594febd95fe794772a21427059a53f88b692a7c2906ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This doesn\u0027t handle visibility \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"47389983cfde2e0b3c8ef811ae30e51187328e38543892e4a5fd1f3cc63edddd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This doesn\u0027t consider visibilities. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff1d7365ee86ea6e554edc4fcbca984d8e19174f41cad9f15d8f7d9007a4497"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: A trait can have an assoc type that has a function/const, that\u0027s two segments before last. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa0377c4eff412cb893d6c9f547028b6269a06d7ec1910332e95acd4a6779f0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Support extra trait imports \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/import_assets.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"29236b2bb0c3dbbc019397ccb226ac307b930dac0b394466de29c1ca1dca1e9d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // or FIXME: annotate inserted imports with the same cfg \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a9b12651b59b61e1577a43f8fa1f72077403e2782e654c4ea526c0abe738e1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Maybe it is possible to infer based on semantic analysis? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aaf889a59c2283d5dd0d446a9be526efd41a85edba3990c79aeb1e5dbbd797"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is suboptimal, we want to get \u0060use std::fmt::{self, Result}\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/imports/insert_use/tests.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f71a1a26edf9c5e0e87062a88f6fc42b6264da620819e0f61daae5999729dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add try_tok and default_tok \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3a318e973ad5a43c932400f0f530d6410077e3e929374bf99214d9cdba3bfa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should probably be the crate of the current token? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc2ee5cd43db0b751b83f62909ef8359fa6e7a98a338bf5adaf6bbdf5419b1e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be part of \u0060CompletionAnalysis\u0060 / \u0060expand_and_analyze\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cff0d4f18de196fe5fcc80a6c853e0f8205bb7ea3b7bd95222e67d27edae3c8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Find a way to keep this up to date somehow? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe357c6879e0be4b4be00788fb5cac8adfd150761dde5fc2b7edd74c997598"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this with \u0060\u0027db\u0060 lifetime. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/item.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf73268a7b7283341af4741102163b905a872dc1979600fcf7e6773c1f35463c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this with \u0060\u0027db\u0060 lifetime. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/item.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c391bb21b81ab6ef7213ed686926bbf5a99f862eeec4b1ce8b408287ab295ba"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We shouldn\u0027t expose Mutability here (that is HIR types at all), its fine for now though \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/item.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99ae158eff43be0f2d4473b5c5143abf6494e52bdd7ff87656a054bef348c72"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME: split the following feature into fine-grained features. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/lib.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de98d61e33543b421962315d5a245567dc89eadd8285068699e3c6e07a4c4a6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: remove this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3fcaf74bda8fcdc1c167e9a02026f22ac2d709dac6fd3ca5a45a02bb0f4ab3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Temporary workaround for handling aliased import. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf65ac8d371d10a3112af7414067dfbfce37e9dd77efcb5603fdbbce4b14342"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This checks types without possible coercions which some completions might want to do \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5745dc9dd979a2fd7007478c5dde1ba8fbb3332e3ab60e24ca87f86b13f6a02"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This might create inconsistent completions where we show a ref match in macro inputs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fb8a4acd2c3ba582b9e2971036196f0cdef26cd5a39d3f4ba008e439e944a6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It is best to test \u0060S.in\u0060 if speculative execution is implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":3126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e19cd09996ba15972e41da5a2bc37ea5bf962a5fe253c200d5bb7e9d880990a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: There are many \u0060S\u0060 here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":3524}}}],"partialFingerprints":{"codehealthFindingId/v1":"433764ddaaf938d505ea09761b0cef8afd527c6dc89f744df659cb953cdfc61c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME baz() should be an exact type match \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/render.rs"},"region":{"startLine":4457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce82d65b3d3c3ebcbdbff52eebc65768b828a1814501c3a985dcbbbc05d6203"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: support else completion after ast::RecordExprField \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/expression.rs"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f49e3fc6347c12d306e6a6dd05e0364ab4e30ef782fc52b795625e4444b4d32"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This does not work, we need to change the code. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/flyimport.rs"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e5fcc530936397b4619dc2fd214f26c1b5b022d4fb6d664a2052e136a882fc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldn\u0027t be completed here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/item.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b39bc0f3348da121647c045ce4d84dddb4e456e7ba064bd6fa3f2c2d552484"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060for\u0060 kw \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/predicate.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a1c381754c85123471fa8627081e33c87cfb35356062d457dd61a5db482a24"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should only show lifetimes here, that is we shouldn\u0027t get any completions here when not typing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/predicate.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d051ee27d4c9665071dfd70a3fd74b972687d1fef5c891eb41325cce09e490a7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should filter out all completions that do not have the type \u0060Foo\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/record.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64d9c97c1047a5c99c748e15ea9f26d441f9440dae1cb688babdea624135023"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should probably also suggest completions for types, at least those that have \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/tests/type_pos.rs"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f6a02cc4540adff0b9b532d2c7b9b8280d7b3637751fca0fd1bdbc6b39aed3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Support speculative expansion with \u0060cfg_attr\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea49f97598251020047d831f2f164f253fc83e607c5731350b655c7e4d4b2407"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This check can be removed once we use speculative database forking for completions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2f74288fe34df2f886691a88ec8ddc42734a52433dd4ba8a120e9db8e8a389"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Heuristic hack for PathExpr in ArgList \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c5329ce592bca51a096d27e40fa1255a4467631ee0a9224de3d2b8444d4be8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This operates on the syntax tree and will produce incorrect results when \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/analysis.rs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f469536f81a63e9612a3a3e8a4bd310ded7007ea263f4de2417fbe124adb90"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME make this work, currently fails due to pattern recovery eating the \u0060:\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/context/tests.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdcca9d702e0cf865e8655c88e40405d48f459610beec22603fd96ada444581"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: For parity with Rust bug #22519, this does not complete Ty::AssocType."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ca22c3b9495c6f040383d6dad666d9ce7267efe5e640c9fad669fabdc721c7"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: For parity with Rust bug #22519, this does not complete Ty::AssocType."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/type.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f855fa923bb983de1a1730297b51403b206e4202ce60360055db91a1d5b161"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Render the assoc item with the trait qualified \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"887f4b4e38cdb87d3a0c9835cd6505d1b957e734eac33aa182cf9e1491f15107"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Append \u0060::\u0060 to the thing here, since a trait on its own won\u0027t work \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5e8cf1d319564c1fbe589a68a1f63428d4d6e6ff6a79c11d88f1ad3047d499"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this a submodule of [\u0060pattern\u0060] \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/fn_param.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f56be54d5690c57ed9cf083d02604e970ae72a9f3b3d0b76c0f4010eb13e920"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060#[attr] it: i32\u0060 -\u003E \u0060#[attr] mut it: i32\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/fn_param.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9286685a91d6435a78d92cd5fc1e3ed492961dbbe491045a09ba37b28880ef4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME binary modules are not supported in tests properly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/mod_.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"3794376b44afd35f25f74328a5db7836720f7baa448d9406e1b332678082318a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: ideally, we should look at the type we are matching against and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e15853ba62a5cf914ba364cbda9c05795eb0e7d1685162ca3084800e300c6b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we should check what kind of pattern we are in and filter accordingly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/pattern.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3496bbf352faca0b2e032b6bc963597b26cb9ce08ae28282380743221d25fe3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // fixme \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65db1287ab121993aad5be9efd3e4fd5d3f6ae222dc899a56d9d91bc7d17e99"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Why add parentheses \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/postfix.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2730fb019671a2e0bf7235d15be4b6d059c1eb0106f831695441e3d3b4c83bd3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should make use of scope_def like completions so we get all the other goodies \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/record.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5c8f2a2241da08e2826145c81f5fdf6b176b2e8548e175e59d372f967b9801"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Paths in nested macros are not handled well. See \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list/trait_impl.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c984496c4571a93f57c9a6bc1f245ea7f4a0ef39256893b50a1196a8af6c49"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Paths in nested macros are not handled well. See \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list/trait_impl.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e6ffa2355b3aa695099355b35f743b9b22b560703e6dd8d8a21722dc38ccea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Paths in nested macros are not handled well. See \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd82cf8cf7a67cd54ef04b914806f74ea57ee4a822df795ba53b151a928f073"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060T\u0060 in \u0060ty!(T)\u0060 should be replaced by \u0060PathTransform\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/item_list/trait_impl.rs"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6193cc214d708c7ab61039d224f5289ef1581efbb78da5e6a6243f8186ac97b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060T\u0060 in \u0060ty!(T)\u0060 should be replaced by \u0060PathTransform\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_impl_members.rs"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5f55cb8fe538fdcc1d71e6bda42d14758b0a9157805aef3ad7eaff5fe8a4fa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Move this into context/analysis.rs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/cfg.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee12ef51f3890d9187e0ed88513ce7cb9caf86b47a9caf037a28d24c1a60c36"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: change \u0060Lint\u0060\u0027s label to not store a path in it but split the prefix off instead? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/attribute/lint.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef12b0ca345127292d581fbf583d821e394e28bee95e7823570205b5fdedfc45"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: instead of having a separate function here, maybe use \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/tests.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b658ae545845f1cc8a0de936ad047af55ab965cd8ac2e226dd5f75657245e2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: change the new fn checking to a more semantic approach when that\u0027s more \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0580fc39cd6da0adb6588ccb10ef48ed80bb18f4cd97c5d4c269f8a844601284"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this partially overlaps with \u0060find_impl_block_*\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"909cd40bda9cee982e5981ebb457aacfdc2b35aa4c61f42bf8ad3105a3aa16a1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: handle e.g. \u0060struct S\u003CT\u003E; impl\u003CU\u003E S\u003CU\u003E {}\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee458cc967a6d165e1db78e6e5b49ff1d55865a396de24531cf43865031a43f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It should return a new hir::Type, but currently constructing new types is too cumbersome \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"befcc4848170639f3c5a0e124886e1644709c74c0a9af7bc309cd0afb10cb346"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: #20460 When hir-ty can analyze the \u0060never\u0060 statement at the end of block, remove it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f968f44109c04fab393de42c57919fcd9cc278a6884c28533f0493f14f7d9117"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //         todo!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_impl_members.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2332c4dc491d5d764814becc6b155abfde328fb594d620af1778e94e0989fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //         todo!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_blanket_trait_impl.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"240bfdfff4c39499d995a0f2781d3d8c5575c8cdc0902425b436fa301038d4d5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Hack for syntax trees not having great support for macros \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca2a0409a1199fa1848d6e2d1fd9ed7cbc887e2970679bfff1a1611976880b6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // Fixme: this is still somewhat limited, use hir_ty::diagnostics::match_check? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d6f4dcd9944616010737a6efe05d1b0042f88c9c11ea72fdd37b6760202389"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // Fixme: cannot handle deep patterns \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"febc2f6bf3af88cff37419ac6cd5b80d756051a75b8f5bd61c9399f6a858db9e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Preserving comments is quite hard in the current transitional syntax editing model. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"3841e0674262950b269a3ad2599720f95782b5142ef3bd00c261acab671b187c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Preserving comments is quite hard in the current transitional syntax editing model. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_match_arms.rs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"974cfbc0df6dc4bd68d4fd38b58893e58d097597d5edfdc346d03dcca79e872a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Expand this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/auto_import.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5c5604777dbe43f4850efaaec5f158825e1ba5b1ad347078537938444a3d48"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Expand this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/auto_import.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d04c3debbd3912296590259f754effab18c512f70a0f36cdacfdb733ffece5f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME wrong import \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/auto_import.rs"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3f4a8f4b4c2b3b96763665f051df1583044d1a62bb94cc2b9587bae2da1d59"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME wrong import \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/auto_import.rs"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ca2a8aa381ed1a72cba8dcf2d909fc0dd48d70be60cbc60ffde7cf9f0f4c6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME applies to match as well \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_then.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7f0bd6c5aeb6d7545b0bb297154eefea37afe5988e3db69ab319e085eb9bc5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The import is missing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_bool_to_enum.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cd94b98feffcca14d948ef8179e521412148451b1f1fda6754f1b351e1cb10"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Allow configuring the replacement of \u0060self\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80b0b55985dd7e86ce8131724f581bf449a24be9cd7fe9b8946ffcd7011de76"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Maybe we can indent this properly, adding newlines and all, but this is hard. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cca8c7560de1b4f2fd44baede493e347ee6376be94e8fe3d1351018ef61cbe8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Place the cursor at \u0060fun_name\u0060, like rename does. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3b4b12945815f5a370dc9dd3a7b640147a4ab837ed97f6400debca79078a84"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Consider generic parameters that do not appear in params/return type/captures but \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b57baf3d23e8794bb07cd6826245533697b68724a54bd1add11e1fde6e874df"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This text manipulation seems risky. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_closure_to_fn.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c18329da31bf14900ddc6d5243aee60d8b3e09ea192c6639c2cc8d4ced2550"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should be a diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_into_to_from.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"95733df09febfa936974dad7f95c556cb2541f701c48a2c4aedc566009db97e3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do this with \u0060SyntaxEditor\u0060 in \u0060rename_variable()\u0060, it\u0027s just difficult right now \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_match_to_let_else.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"20525ea7420d9934350519bc8ff92e9dc114efce134fbe9c92d75ed83bbdaf29"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: We don\u0027t currently provide this assist for struct definitions inside macros, but if we \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"724669065048eff8a9b8d3a8507882edaf2ab4a86e0f8383adcdb87b59f313b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Processing RecordPat and RecordExpr for unordered fields, and insert RestPat \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_named_struct_to_tuple_struct.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cb37a81d3444d8626786398c4cf19fac90eb1e9655da267c9a83c434720452"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: SyntaxEditor cannot insert after deleted element \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22916ebb02155b3e381b084ba549e2fe37e3526fda334e84efefe7a7e3725d3"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: SyntaxEditor cannot insert after deleted element \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_tuple_struct_to_named_struct.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"31159034d02c42a213e16d72150efac0d35b36fffa6e212475288442bb856807"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: After removing ted, it may be possible to reuse destructure_struct_binding::Target \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/destructure_tuple_binding.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cc15f0adbf5759847f6716e39dc4e253e56e8b560e2ab9009daebd3a794b57"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: macro allows no arg -\u003E is valid. But assist should result in invalid code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/destructure_tuple_binding.rs"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac3dc7d2b2d208a1d377854a603c9680624a63c0004282a98f0a41406de9abf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: doesn\u0027t need deref * parens. But \u0060ctx.sema.resolve_method_call\u0060 doesn\u0027t resolve trait implementations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/destructure_tuple_binding.rs"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92a1bec0ab021e5281c74a6c65537eaa81cfbbf999ee13fcd7fd6a47ca9d6d1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: wrap non-adt types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9508ddd5adb5ea9adfd32a4f0d28fc651927dd99623fdec8b423ed8548faf47c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: ControlFlow and ContainerInfo both track some function modifiers, feels like these two should \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2bb0f0310b4345cded476b1d2c78932f95b0e46063425ad3562150a8191211"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use lang items to determine if it is std type or user defined \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f5c0939d2872c0daf42a956ab3f9037c1db2679fbd00fddc532e8d5144f1ef"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make trait arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d49a91a1165aaf429b59b6f1f839ba2c6d3d4108fb6925dc92c1b0367c62da"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do unsafe analysis on expression, sem highlighting knows this so we should be able \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f1ce41c744a3956e9d7f025a0e0510c69e4ce21d37c92c81ac540c0c5d6108"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this quite an incorrect way to go about doing this :-) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07f7331fe57914b6c2b67e15a43bee716c3c323c5f9a0a2e27e22308bdf55d6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this doesn\u0027t work well with macros \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e7f3636eb47a66ffcdb74a05261828f26cddf083ff37febb0017aeaa841385"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should emit a \u0060\u003CT: Debug\u003E\u0060 generic argument for the generated function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4345712c89d9d536561c521d79e6b9612a18c8c12717f94b04de9fb3f9be7f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: double semicolon \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_function.rs"},"region":{"startLine":6200}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcde988b8797bbee7fa3bd9829c3f28700e282ae033fd63660d3745575119249"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace with a \u0060ast::make\u0060 constructor \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabbb072c86cb78e9cd4c7e817800df9fbf9d521a917bf029749406f924b04b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is not quite correct, but good enough(tm) for the sorting heuristic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b6fed970b24e5713e823b48f1c5fb58fe2cf29956e833043f64535241cb056"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Extract to inside the macro instead of outside the macro \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/extract_variable.rs"},"region":{"startLine":3079}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf718a73121ba90e7a3684c60d8c9a14e78e165fe0f05ee172f9c9c4f4334b9f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: broken test, this should fix visibility of the re-export \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/fix_visibility.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b281381536831c66cc9d607a3cf20634e530afc58ab5a5a030f1a1b4975b933"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME :  We can omit already implemented impl_traits \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7b2b91a98b49d2ba929eb88f0f9f25672399ac652e91aa2f72b2a41222ddd1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME : Handle MacroCall case. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"638265d6660bb10b248fbc32a96540f901f0ddb0fd5d562e75221c2ebe621a1a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME : We can\u0027t rely on \u0060make::path_qualified\u0060 for now but it would be nice to replace the following with it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_delegate_trait.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20de998f00e96f25313fabc37a89a89ea661fa082d431618248741e7a0d94bc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): it would be nice to not be *required* to resolve the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_from_impl_for_enum.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8e69606d8e736e81fa0397e20fac9fb65b831f9f62bea7ffd41b349bdc07ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //     todo!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e68f0072125e50dad6cd48e1046cd0b996d36072570d3cdc4a90a550d9759b1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //     todo!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_type_to_generic_arg.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"968e2657cc73a3823de788110d50f58df347f6c2e73d33e3d36155f23d8edbc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //     todo!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_type_to_generic_arg.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccf157e60dfb1ee67fd82d369b5d59ec5341e5409f58f3b90cd65c070be8ab4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME : const and unsafe are not handled yet. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e80fd09a54d08e22c1eaf96a6762f89f36d9ca684624c0ea87fd11ca82184da"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: adt may have generic params. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b775be3b1313de75201ff9fa12dcf739eed52115fb6f6da4ec676449f7ab450"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It might be a good idea to handle lifetime parameters too. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f216600777bf22dfda284ba435c92d28e13aab7116081adf4d839dc065b7394"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// (FIXME?: The latter clause might be overstating. We may want to include the bound if the self \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"8905eb4f854ba534f1881827cf33cb766ed9ffad0a8cf3d520cbd29d09324355"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Generic parameter \u0060T\u0060 should be part of impl, not method. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55b350588fd332d5d40777e7876a2d24fb2efe3ee2e24a678140f058e35c217"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: where predicates should be on next lines. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fd56b438bc8b5f6ae34c60cde6276f43111e149ac9f44c39109cf45539e600"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: where predicates should be on next lines. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_function.rs"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"67527acaa70feba5ff05fce8f282ef500077dd4c73b582e8161ddbed28fab345"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Generate proper \u0060index_mut\u0060 method body refer to \u0060index\u0060 method body may impossible due to the unpredictable case [#15581]."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_mut_trait_impl.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1753a0721d47abce4aa92860d0a0fbd63d7381f0fbf29161ce9af08e292ce283"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: do not handle callsites in macros\u0027 parameters, because \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_call.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8fb1a31bee64ecba2216e4cde4843f5b1d013153769bc43abe343a28136110"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we need to fetch all locals declared in the parameter here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_call.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95daf41c05cb7e4acf025bae6b8ff108b72ebb323b2283d6f131e812e7009be"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add support to handle type aliases for builtin scalar types. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_const_as_literal.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dfca6b7a218b9af55223aa8802fb18e7291f9abdfb918ce0207bac8bf9f45d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Saving fuel when \u0060\u0026\u0060 repeating might not be a good idea if there\u0027s no TCO. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_const_as_literal.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"388093c180eb112c96c7b5f0a58160af9cd53c97072f0b3159567331777447a5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add support for nested ref slices when using \u0060render_eval\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_const_as_literal.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c170ef59d367ca27091fb4f4e56e3ead793d3e6dd587a31188dbe929a2235e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add support for unary tuple expressions when using \u0060render_eval\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_const_as_literal.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"306194ef5b7075cc81ceaadfd53519ba37fca27e29ae2f4c9bfd089fa58d67c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: process let-expr in macro, but this case is very rare \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_local_variable.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcf470a61f64e5bcffef759054b3488a81972f29eb80baebf924e06d5f083e8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a bug. The macro should not expand, but it\u0027s \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/inline_macro.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5973b710bab2b841d1072d82c189a67fb2cb56fede4726c29c6aabb23078ae"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: How can we handle renaming any one of multiple anonymous lifetimes? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/introduce_named_lifetime.rs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d776c3881c9ebcad5c43943953c6540093ec6ce18cfbffd08afc3252f1304f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should also add support for the case fun(f: \u0026Foo) -\u003E \u0026$0Foo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/introduce_named_lifetime.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c7d2131848785c0701b8a7a697e49469bd8eb959e53f8cca62e5800a61b9e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: non-trait assoc items completion is unsupported yet, see FIXME in the import_assets.rs for more details \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/qualify_path.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"063d0b7ec985ded0977c90ece4fdd8a3037661cf7700159a5972cb9cd2f03e73"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make this work in macro files \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ae9979d4225b6e4aa770dc17abde9f79bf3554feb89674dd849d9bf52565d7"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Perhaps we can extract a let statement to improve \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_if_let_with_match.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a2625a2d6ba11cad159702cf822f8d038e1f6f530c096b77d5d38209f9d84d"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Use descend pat for sema analysis \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_if_let_with_match.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"44782d5d6b68c585753b4929a903e1ffe62f444b1706778ea026f1fb6252de6d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Check that this has the form of \u0060() -\u003E T\u0060 where T is the current type of the argument \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_method_eager_lazy.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba774151a95ec1c170c44f2fe3d615ff4b5c41ed55cbf5dc63ed73670363875"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Check that the arg is of the form \u0060() -\u003E T\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_method_eager_lazy.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c0eed4a2fce26bd0c4c03c930472b064d56c34061dd073db7df98fc381db3a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This isn\u0027t true due to \u0060super::*\u0060 imports? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/replace_qualified_name_with_use.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7feb33ac3b839ed1f553c418f7577f4b4cb71032969f85a7bb6822fbf8eeac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This ought to be a diagnostic lint. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unnecessary_async.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1de48c19e1030cb42aeecb247b4839459146abbe9fabd52cbbd948baeaf56c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use the toolchains channel instead of nightly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0251ce2e221b0aa10311da2a7455a77e38ca4a01facaa6ae689b2c397be51c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: These should not attempt to link to docs.rs! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7058e3e21dcb6a9b0a8cb31e52c6edffd49cfd748f9a8d7d990da9366cc2075"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: clicking on the link should just open the file in the editor, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"159ff17373dc49a8157d5d47b5e353b19a77212bcedb4215ff2ab02373fe73e2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: clicking on the link should just open the file in the editor, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7487ef2f253050e5709918942db5035e0d3963685315d85e7bd46005a825ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(trait-alias): url should be traitalias. for aliases \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b0823ba2e9317d1f3fd79ecd24ab3eaf89e0fea9f6e3a76c8e3d248b0d4a65"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME fragment numbering \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d3e9a26d07ac1b26dc78c1f3fef7c1d5aef361e964e036e6f5ddb3704292c2"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack until we get hygiene working (same character amount to preserve formatting as much as possible) \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/expand_macro.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"215a4206cd14a5a5f541ebd8961454f06f473dd8ce296cf8345200b2156dbbe5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use \u0060ceil_char_boundary\u0060 from \u0060std::str\u0060 when it gets stable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/extend_selection.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"31230461588ebb859a84d00cd78b5ca0794f9691fcf5189cb55033b7f1ab20e5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Support \u0060Poll\u003CResult\u003E\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_definition.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b6f893777bc73bb9eea98da238752119831083de092add618d31dae9a4d1c0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: requires the HIR to somehow track these hrtb lifetimes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_definition.rs"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad754eba54726c3a7b5e7229c536568ddc18fbf391d9bdf33c0d76be9bc27db8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: requires ForTypes to be implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_definition.rs"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1a7c7b6fa4a091c96e0dd9440c96998560d932be972f52c5670e7747fb5537"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): it would be nice to be able to also point to \u0060\u0026Foo\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/goto_implementation.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"129a6f0415f78f641344b85c8e07851d4207e4e8a65bf57f6d29b7ccdffaf2b6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This needs to be more precise. Reference category makes sense only \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/highlight_related.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a141c4b0ac39e96b1f14f50f96151099a1f2b3c11d283acf50ce55fbc24644f0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Definition should include known lints and the like instead of having this special case here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a426463ded2a41c38c2089b4e645527537131b93247b137aecaa54c454d71b9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make this work in attributes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdf3fc583c9e3f61369611103c940d211d961d45b6486663f41c5294dbc8259"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Why is this pub(crate)? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bec59c1d033a3ec77a714bfe884c1f4e99fab0e91eacab16e72bab05e8399bc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This can miss some hints that require the parent of the range to calculate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ff51c5cbdb0770b8832bd7cfeee55f7957bdb320da69ca0228b0549496456e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: At some point when our hir infra is fleshed out enough we should flip this and traverse the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a84815744e2b060e7b720aab08abbc2acfb4935f08f0f7c5ac4ca685c3ae26e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: trait object type elisions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2031c2ea1d6dc0b32c59f04de4126d51841e1bb61af87f16131a55b3aa4dce1f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Limit the length and bail out on excess somehow? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e99ddeeb7b85943b199d6a1c465bd5d9a94d892b6760e1712027812ce9d772"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We trim the start because some inlay produces leading whitespace which is not properly supported by our annotation extraction \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints.rs"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b48e2e176e6d0315470858c941f3288ba2b4dae0e28e09a81bb6e4dfefae31"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: cfg options \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/lib.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a135f82c76d3776b6ec687bd795de56439e1239992c3c63857e87db4e64f1d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME edition \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/lib.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"db734ac3de79f50e735fbe50fa2bacb9e57f5af3408f4b0fb0793a9244f6c854"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Edition \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/lib.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"b566478e99ef3e4a402b2df9d62c02136b3ee27cba54a7179d09c0fa24386b2a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: ///   \u0060BuiltinLifetime\u0060, \u0060TupleField\u0060, \u0060ToolModule\u0060, and \u0060InlineAsmRegOrRegClass\u0060. TODO: it might be \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/moniker.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac591568564a256cb924cf3e8b74edffb2cff8a5630dcef343d1247a035882ed"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060applySnippetTextEdits\u0060 does not support non-empty selection ranges \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/move_item.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff22f87fe6925cfecff581e4e37ee4075f5568cddb85ebeab3575314a5b0e979"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The focus range should be set to the helper declaration \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc95d5d2279fc7b27c530502d8163d6b6653057d1f60eb98a6898e949542de8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle owners of blocks correctly here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb683ba1cfe5db85eaa74db89d664d0dcf5bef08e3a1f9965a0221f8e5412e0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Also make use of the syntax context to determine which site we are at? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9eb741e3759e92a41b85f89d70eebe55c61ac6de1ba7643e86b814760441ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do this differently, this is very inflexible the caller \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"0219ef5e44d59c5eef47b1f7559c09ed7bd59c96305c341ebb5ffe757833f3a1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This can be improved \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/navigation_target.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"86123e78ac75a697016c185b68e2e72297ac90809dc96c59ac3055070bcb9495"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The ranges here are volatile when minicore changes, that\u0027s not good. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/references.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8623a031b38ed50b626fd545a4a34821113fb237a37c4f1123e56fa85e65ef5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: import is classified as function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/references.rs"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"216469901b257e1586785539562738a339e1f5f50e12d459f7e884be8544942b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: import is classified as function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/references.rs"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfeb258213d253e8ce14763277078304ff96e57004a569b1611ad742d77165fa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This can use the \u0060ide_db::rename_reference\u0060 (or def.rename) method once we can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7baf1ec0553bb7762b8c616c0a2a6950a1119260b33883c9f29617aaaef29e7c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: hack - removes the usage that triggered this rename operation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"606b22edb77e10eaee61355a67d8090a26ff31e245dced74f4ce0870bba52fd9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should support \u0060extern crate\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a6a19c68867cbfce8c303eeb4bdb22ac01ec0a98e14edf3e8f259cca91afb4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: uncomment this once we resolve to usages to extern crate declarations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8277087d5346f6ace2ca21c623c7804f1f08a241dec9f44bf9da5789505bb008"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: uncomment this once we resolve to usages to extern crate declarations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"091ee7db7af0fd1d651850521ae218f5a8459ea4097d13ac964246c2df4338ee"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We always put it as \u0060Trait::function\u0060. Is it better to use \u0060Type::function\u0060 (but \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"232b882d1f9b2a4e77a823114bcfd420bfd0f21b609a3e726e9268b30e3cec28"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace above check_prepare with this once we resolve to usages to extern crate declarations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":3365}}}],"partialFingerprints":{"codehealthFindingId/v1":"214d19cf5d99930d6816221efd2227a696003666b83990cd1098eabdb83ee3e9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace above check_prepare with this once we resolve to usages to extern crate declarations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":3418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f10b1732d56597a3bb3aa31889c69084522d98156b34472f2bd8b119dacc88e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace above check_prepare with this once we resolve to usages to extern crate declarations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":3443}}}],"partialFingerprints":{"codehealthFindingId/v1":"68137802f758fc1f96a9edafa51d2dfb0a307c7eed6691b4428c9dce22a50412"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace above check_prepare with this once we resolve to usages to extern crate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/rename.rs"},"region":{"startLine":3392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfcef7fe484f60cc1d81eea3b0d7f926f98ba6c43d59b8228d4cc43b30cbeac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: why is this using references::find_defs, this should use ide_db::search \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/runnables.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c6bd7b804470cb41b07962854c499b300b5bcb08c8a081906a692c34f6c4aa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Render docs of the concrete trait impl function \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10424a767a4b720e0643ea9fa7849d9ce510b9a4bc1dcf3238fd42a7bab7b71"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // (see FIXME in tests::impl_trait) and falling back on any unknowns. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb234f2b177b0ac8726da0c5d96dd46a9d9353049319a1e426a8c078a474286"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The ide layer loses the calling info here so we get an ambiguous trait solve result \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0dd8ffebc0c36f79c6f79ef0c2145e310764db20f71028ce58cf19b778ee6c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Substitute type vars in impl trait (\u0060U\u0060 -\u003E \u0060i8\u0060) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbd69f2421e3db5ffdcc9a9cf76258b2bfa3f7816d353bdd0d6aa5e1941ec48"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): There should be signature help available here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a4c855acfc148fa1c84cccae70546a2565dc0dff4310cc6d56a12731a31f1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should typeck report a 4-ary tuple for the expression here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ae3c7f0f7d54222def24d2d6c17efd602a23634b90224244e40a69b2e3d293"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is wrong, this should not mark the last as active \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":2418}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2f099443b10d1a6925308710f7e3c1e91ad0f1c1ada6b9679daad0a47dad4d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should typeck report a 3-ary tuple for the pattern here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/signature_help.rs"},"region":{"startLine":2510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18201ded8f6eefeb59c2695f06b9488e4b83539f9702eb2b22825ff4c3fd298"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this have the lifetime of the database. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/static_index.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb9072f12177524407832a26e18b5c1986960e06d8d828102fcdf60774ae369"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: accommodate range highlighting \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f019ada1552b88e77a792ace11445cc9048fe9ae4763e2035e798db9a08044"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: accommodate range highlighting \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9680301bbd6ef0a78a37656d324078f175e3d0ca0a115944e1b329771f55e6ae"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: accommodate range highlighting \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"462220681a93b618f8a26e5479cb8ddbe8709204993cf1fb117d6307bd44195b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: these are not perfectly accurate, we determine them by the real file\u0027s syntax tree \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2836bd4d845ea9bd3fbbb16de4b9dd926068d17bc22ec93f0368d73234aae650"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: ExpressionStore signatures and variant fields \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b664e1cbca963ec5c3bf3a9549e49bd6250fbca9369f9f7b3830033f173aaa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Consider checking ctx transparency for being opaque? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"acec9dedcf4a3ce3a398fb6dec238f98f469d4b5c9c8e59778b6381885a499d4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: use a snippet completion instead of this hack here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/typing.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3565731d1e9d098e1e887373f476c09fdae8c9e35e83d7e79465d11357eec0d1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Replace this with the HIR info we have now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/format.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"02383d229039a07a852f705afa8ad93a5410690df7442fc488d89175f0f2dcd0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Fallback for \u0027_, as we do not resolve these yet \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e360fd9e46780f234ca496c138ded6302b903eb82d8d380814ed6cdfa008711"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is required for helper attributes used by proc-macros, as those do not map down \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95c429508d0682d1f263fea1c4d4b8a5be172e70b21f132ebba10ae23fb3af7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Passing \u0060None\u0060 here means not-unsafe functions with \u0060#[target_feature]\u0060 will be \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7192756200ad6f7a42ff213773093c3998c7d30c8de2be9db583cb9115545d27"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be the edition of the call. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/highlight.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b43c31b56529a07595256ba7ed0e3033843846e518bc1789139e0a72d0a109"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //FIXME: like, real html escaping \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/syntax_highlighting/html.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"886ad128ec196069bd384ab49b7cd6d511ec420b0781b0a7f22cc56ed12b9695"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Support general path types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a087daa846a5389832c27fa3cc0339e85555764468e1c46abdba356d089b66b5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: check path types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/lifetime.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6eb39b8a3fc786a79ffdb130692fdf31e69e8ba263f2465c1408b7e642ebb5d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Show the data of unsized structs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/tests.rs"},"region":{"startLine":6402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff70c4ab3d29cd67983d76bb92c6c8f0be5fffde7ce28a8cea0f9e57f9f0fc9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): this fails to normalize the const, probably due to the solver \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/hover/tests.rs"},"region":{"startLine":6486}}}],"partialFingerprints":{"codehealthFindingId/v1":"35deb0cf880dc5c8f879fa78f57fafe40f000afc2a50622ae3016d0459dfcbd9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME #9694: [\u0060Struct::Type\u0060]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/doc_links/tests.rs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"3639ad0c5b68630d584095d781eacd4ff704e7f1b94d6a4ff6d145e3d9709ed1"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: The recursion limit for \u0060Autoderef\u0060 is currently 20, so \u0060Vec::contains()\u0060 shouldn\u0027t \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/autoderef.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb14480dbcf0ec7e2d6bc54b5b6caaae6e072c6b0ea2a0807e02bae6c194c102"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Fake the param. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/builtin_derive.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b4d2f2577a0c2abdba84e015e64b9e27c6ca9e740edb133402a1c16d24e22a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/consteval.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5167f4fab32fe614729204609f5a975fe968f734ada0efa35f22815f974062"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Collapse \u0060mir_body_for_closure\u0060 into \u0060mir_body\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/db.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3979128f3fe40318a6a39b412555d2df4d131b7cc93ce675b69e72686b28a737"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: We need this for MIR intrinsic \u0060type_name()\u0060, and it can\u0027t access the display infra because it is inside \u0060hir-ide\u0060. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/db.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8364ebebeecb2566065f680bb151b2f539cb8a767867743513b38f1edcff96d3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Coroutine witness. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/drop.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1491fbb4bae056e5daf0845a11f3cab45b67c02026b2397d67f6f234cd524c36"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: That seems problematic to fake a generic param like that? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/dyn_compatibility.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b562c1aadebf508a0546952fbc39ddfb05c89177a43b3211d4d4e850afd0b40"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be emitted in body lowering \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"953cab0d7a3afbd04bb385b18b1bdaba9c0335cded305973019b6e634c70bb07"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should use this when appropriate. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"77718766dc5b9789d4b701b41fa5c439daf255a7160dedef15b5fb8f11db7ee2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This isn\u0027t as useful as initially thought due to us falling back placeholders to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"62330800b21829ab9d5b40461ab36973e95389f0ba2b0fadabfc0a8a5a5b3a41"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this, change it to be in \u0060InferenceContext\u0060: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"d265efb96e9bf24c0256110ebe53d2068609b7e0a634907574f1c17699c6058e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error if needed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2020}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfc2e90ca586c1cc860083542014f58ff8616005a110dd52bfc9dc619a3ef6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report errors. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25457e1ac917fc4ef558875a7653b09a1e0307cec7b8d6b0bfe0a2eb31ea932"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: fetch the limit properly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5a79154bb406bdb06a2fa6ff17c5e70ec0c7d4311189875ddf22247dbd68fc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit diagnostic. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"7496ac665aea7f783276677a006809155e905bb4119beaea622a135e3b2fc1fb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report error if there are generics on the variant. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ccca6a6c32899667b855003a61400c9fd43200d2350fff43c68430df6bbe88"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9e86131f8c3db86e71f788a575a0836c9b77e79003f2bb882b8f275901473c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"27590ad30ec00acd214cab915e42c15cf67a43656a579671f1e601003e428b0c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c63b60878cfc515c3387f28a5b3693287d758cc9c7117bf03644ee274332ec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"17159a639c2ccd100448b7b3a95c05f00f768ea7c7341e6ec31197ad7b786e0c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f32be35703e2a18f64b6cdf391bf35a518f10ee768cbcfda418d6c05eafde0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"0395dea1f09cfa892aff944e2ca2c35c8ea26eda6c4e1d455854bc4e6bc21b68"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ea4788270734496a57068c7f0864cfec0ed3bfe080e0a7691d9b763244043e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87bb0e8d662524dda37c887be0e900c45b061b2a321f0199da4eeb19e3109df"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0752e1a879714af7514f965ed529902565ec7d6ec8c3716bd4dbc78ce8ef7f3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b660acf3bd336798e7334fac6b1b19d150e04f0680e99ba33b625274433dd54"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a3ba607f96299e2cd7c8a2f2b6cb3765c6653f0cb57c05fd65379f7f219ab2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5649aaa44352af2413f9df130775ab8791a76b4fd7bc6eed337980ef01503f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90b3ea8204923e872137d685b0e934c4e0e3bbb08b4b4fb235391de56decca5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe900c1a24f018587c1acfbdd7fc45d5c917e3c2b337ecb9fe1f03ce37efedc6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd16eacc0404f91b0edbe57b1474ebe7b04b2dbfe320248172cee7e34065e32"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: with \u0060inherent_associated_types\u0060 this is allowed, but our \u0060lower_partly_resolved_path()\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b314dbe36ed6770e39aba12bdb84095fcc154f6ef6f40ada9e6c6d89823eedd9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME Error E0071, expected struct, variant or union type, found enum \u0060Foo\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4128a7420e1dc5afce93c7eaedeb668b5edd26d53631ca4b51ff040f36fab1f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME Error E0071, expected struct, variant or union type, found enum \u0060Foo\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2517}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2565a5fb6cae1993a66c81816814376618ec230adbcb2a43ad6c0ad7ba20260"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME Error E0071, expected struct, variant or union type, found enum \u0060Foo\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44f6b8c8d658d6a48e7399c99f4d23bf0cad6c3ea8d6bbae972f95fed9daba1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME this could happen in array size expressions, once we\u0027re checking them \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2538}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8068b313548ac9f80e20b61fe596ff192600aea8da4f988a1d2054e916ccf4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME potentially resolve assoc type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2273f8c254449bae3e3830dc162c1ba6a14d169e49edb5607f94a82f0bdd17"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME potentially resolve assoc type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e126df62d33b0a5d89264bb177d8b51d63a36146e92e84fdb97682f5959a9fc5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"0560e487ab489f3d4d5fa95feaa649ee9ac3f054dfd51d6dbaca38b3c25395a2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2559}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef57f8dccd37abb2de8e097aa974657ad0e97e87f83daf0e3a50a80b2372654"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME diagnostic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2599}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a37133659c080a2eec4ad97cee487a89d7c7ab9ac4c84b439eee0650c4341c3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: get rid of this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer.rs"},"region":{"startLine":2640}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9c31561731ada6b72729b4d9dfdcbab1a4adc676f0e7b4e97f142fa5b586ff"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Turn this into a query, it can be quite slow \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/inhabitedness.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2848503fd0e7abad677e4b2c18b7ff0d577de15198299af1c871ae3a35dbf0ae"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Turn this into a query, it can be quite slow \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/inhabitedness.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc07cc030d3b68b360050b8d97defd53a91370c363281260bf98df40285c4a7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove more variants once they get added to LayoutCalculatorError \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec12d8ab3083486579787d0de46160ed3fc6696530dffa5917fbe0bee1dbe4c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: move this to the \u0060rustc_abi\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5ce331f22b0381ce1352a42404c5995e68974ec0077da56653039f8db974cf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"476a7004ea31b444913cfd23016aebd494ea624d064b34a88a43efcad54d5034"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfbd177f4a76567b53eed5b266c189ec88e5ac649373b80134b35fdcf80fb17"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"0565589767edf073b30b0d8135bc611df31af5dfb015356072e1c2486fe93872"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"92128ebc3425ab61e2d24a8ab95496dc7f45d34613fcebb28021544cc0036ac6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8ae7b3040256bb1a573821feda5de85529361cd4a743e421c9ac9b33cd2484"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(pattern_types): create implied bounds from pattern types in signatures \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/layout.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1adf8c15163a28ee297f37f9961ab5f68760a73f765d61d006f0f727b03b1f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We used to import \u0060rustc_*\u0060 deps from \u0060rustc_private\u0060 with \u0060feature = \u0022in-rust-tree\u0022 but \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lib.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4047d5d09c6cb14b2f7eb2bb5f2f7ec3089d798b223c3d9dbd619edc7425efb6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(splat): handle splatted arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lib.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2c74d15863cc28afe73404dbb23d12a071ee02bc9e26180b6fe7dd8cca8e0c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(splat): handle splatted arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"265b1b54a00716fc0c9b2f92baad789e8c10c555cc6f5bbe6f27aa97695bc64a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should use the elided lifetime here, or \u0060ElisionFailure\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f938bf673f0be866cf992059882605c132c1f45785238c4c28cdc75fb9d777c9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It should infer the eldided lifetimes instead of stubbing with error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"c080457b63f3287aba74482a9fac672c0bd556b9ff59d2f571de73618cad1319"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bdaf6126c8da0919130db46ad4665be6f92e75b0cc103adf0c1885fef07449"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1716c1f90de8c3aab6557fa8d347b4b85d7a4f4a928919d5dd133838d07fa72"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d884af75a03c2d42384c623b6c787d504650374ade087dbad5b8a3a8ad2dbf25"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(trait_alias): We need to handle trait alias here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"47839ceddc8042cef4521f482ed0ed7fc7ba5a8b10af4ba647d71141f1317b85"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(sized-hierarchy): Remove this bound modifications once we have implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b55a7d2dd57741d4288beb82d681d99ba392d3a880f67dbc41d78137c5cb33e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report \u0022conflicting associated type\u0022 error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3009aadf71421785fe5876783fb99a2db5cf9544275f6e8f9689d47d775851"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(negative_bounds): Handle this correctly... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed3707b63ad2a8cfbb3c2938e3f1fea3dece365af290f6d47ccaee749262226"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(mgca): We should walk the const instead of not doing anything \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"5335960e00e647c7dcd136f869d0e2d81549f4c6e13298da58336a27f07e01bf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should normalize projections here, like rustc does. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":2756}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a35fb607552ed3629e53eab5fb60f477ddfb297ccce4e4d111e8778e0d64ef"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4085261b4e92d7ded9d6c82722d90e4484f314ea3638f6eb69eab62682d97a67"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should stop passing \u0060None\u0060 for the failure case \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddf3a4bb77b875cb8e0eef1a9d2b2b02b39582dc4482fa64857a4a281f2a554"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: decide whether inferred regions should be replaced with error or erased. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"df18b5ba1fc468a0ed8ca75e726fcf3cfe04903ae7800126f76fc2deef8016ff"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Reservation impls should be considered during coherence checks. If we are \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffe54bddae964676dcececc5eaff5a912d43051fd04b80f868fdee0fb2e32e2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME : This should actually just be of type \u0060MirSpan\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8405918be55322e6607e5d1c5b6ce2e26b5ad539f8886fbdf4020a9a070d92"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// glue is special - this would be part of Rust\u0027s memory model. (**FIXME**: due we have an \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f316d76e30aeb402ebbdbce89913cae56f7955a918b693d09afb52c5f25fd616"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// **FIXME**: Document exactly which \u0060CastKind\u0060s allow which types of casts. Figure out why \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1550a4ee2683d1be1b7b195c0976c6b2998b5ecc3564ed84461816290604465b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME link to \u0060pointer::offset\u0060 when it hits stable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8edc306436f7ce290163f019b9457867125541051f48581e6d197630118df70"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME TyKind::Coroutine... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e28f1d664808faa3affff17284d32524953443239b13730d08158eebbe92be"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME TyKind::Coroutine / TyKind::CoroutineClosure... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir.rs"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4fefa6d9a5588805841640128189c9c3c90d5d1027ccbd23e5f396543a5c38"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Collect opaques from \u0060#[define_opaque]\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/opaques.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f92dff17898f4cdd3ceaa9c309f2e5b470df78697e657c7e0d48f25a549d22"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Support general TAITs, or decisively decide not to. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/opaques.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bceb285f4f0a38ed53292ecc6cb73b6f706b4912718673e54e86e2cd90e0a05"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#11924) allow zero-length arrays?"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/representability.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"416a24802f24738e741cea8d2abf7b72bcff3afffc89807dab5546c3feafb38b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle more error kinds. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/solver_errors.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a07cdc19927216bc02540532ba028501d510e1b355edf0c5cc263ad846e1de7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Check impl constness (when we implement const impls). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/specialization.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"544c12ba774b9d8c32c19985a8facb755e612a3e828c4debf045446e5b0cac55"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): I believe this should be \u0060PostAnalysis\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/traits.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb51566575e0d1dc4ac87714214df21bd86251afb659d693964f86e99f3901bf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: param coverage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/traits.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b7f1e1470ed0f738bda33f472840c924b3533e37253383971156e7052b10bd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Probably not correct wrt. opaques. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b291272595ca4ffdf9868adbd8a81ecff9a3ac99b07436b87f6e5fb17be770"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: See \u0060ParamTy\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"0906fe7cd22d72975476e343c6cfefb9e85fba7f103665054bdb5839370ca0d2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: See \u0060ParamTy\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/region.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a58d5383382edc4577da015e37ef2e423ad98df87cee8b094c96a954a35a44"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should use \u0060ClosureSubst\u0060 when possible \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/generic_arg.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7a21420b6427275dd8ec3f851df22ab39ff9cfb67120a043def1628eef3f28"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We ignore the expected term of \u0060NormalizesTo\u0060 goals \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/inspect.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a947f751dfd90755d25689ffb6596d705e20a852e6cdd05d43a19613c977ea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(-Znext-solver): This does not handle impl candidates \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/inspect.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89a57da8b8d053cc93833cb5ed301643b4bdf6df38d1554ed9d4cc1f70f4ecf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This transmute is not safe as is! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"015b59fe0d95832bbe31f9833a998fb5ff91844bb9d0f26621b4a7ce8c71c8a5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: very wrong, see https://github.com/rust-lang/rust/pull/144808"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"4382020479f352af148b03aff2781678f821d1b6a2aac34cac22f11ce7e40da3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): remove this method \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"41db47ebbcaca1e10a1a353282ea0f103d789774d893087868c17c52aa17dc06"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): track variances \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d265beeca3c4bdfe8a713dc6771e5a899008149697b97028718f5d0be4c53cd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): This uses the types of \u0060query mir_borrowck\u0060 in rustc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a74ebecda16332fac9a68bf34fe78209582253fcddf1cd879641a3e6985f94"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is this correct wrt. combined kind of assoc type bounds, i.e. \u0060where Self::Assoc: Trait\u003CAssoc2: Trait\u003E\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e201562bdffe2def232198850a2c2d94450f66652e2419826697f289b43776b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: For integer and float variables we have to manually look at all impls \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"597fd5290c252bf3379399a56288427e6721f81cf2c7d07aa4bd233fea72809f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: These should ideally not exist as a self type. It would be nice for \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"847f4a3826906be50fab7b3643014c4b26f13db16fbe506d7961a13acbe71394"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): should check if the associated item has a value. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a5f0d837a3f7b9dbca55dc53fd815c8b265be3f0ad311ea4e22849b89c3aff"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Actually implement this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2113c7bb0807f8c0c64f63d48b37c76d25a44f4c4670746511c74fba3288a7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: add splat support when the experiment is complete \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"413937b509c95a9b0429d4a72a4b4d2ab20ff6d8fece5f37f4932c13386849b3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //  - We added all storages (FIXME: it\u0027s too easy to forget to add a new storage here). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd3ae0ae7c9d69611f3a5a081ee124f5abd09dfeee3a37fe0c08bda8f6f89f1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this is actual unstable - see impl in predicate.rs in \u0060rustc_middle\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/predicate.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda5f66d6d925b9794c73fda707634616ab987887fbc261b1634110c2e4bf2cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implement Debug by hand \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/predicate.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb793d58bd285c7e494deee93b448a66e238f60e7a30f0d9adb34a1b49ec12e3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e056349c5acb105a17c0a166b9af9c6a5697575ac454cc91efaa261e626c2a2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: add if we care about regions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdef6753599a2049159dc207137ebec4ad0daf7c27c34f49e4dd1879f0db23af"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Not all evaluation errors should return an error const, rustc returns None on \u0060EvaluateConstErr::{HasGenericsOrInfers, InvalidConstParamTy}\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb37aed6f8b6e453b23edf744c4be9b261403ec6b61fc6b9b8703a9005b2a78"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Properly consider opaques here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/solver.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"df505bb734fe43d5e152f95a064c8fb48ed977009e08c7db176d0715c8b7572c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this be here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5f5e40440afd6464b2e44c577a93c9952d8de8bea1694962279ba623b43a53"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We shouldn\u0027t use \u0060param.id\u0060 here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed2f515367d54407b3d5debf8d81ba84e7b9a2fa108f5444770b28fca5470c2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: Get rid of this, it\u0027s not a good abstraction \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593359783c1fc793a0ce9988caa1296494f7528518af39495352046d19a7427"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Coroutine witness types are lifetime erased, so they \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49cbd5566c981251abe7d41953976dbebd59016dafe1282315615bf3378c1b8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: I\u0027m not pleased with this. Ideally a \u0060Param\u0060 should only know its index - the defining item \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/ty.rs"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f596481b3e73176d3424877e5764b605b51c4e070d79f885f817b8d1e728623"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-trait-solver): uplift \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac915c7acc4cb21bc869700e19a1c757a3a418eed20c2da4a95aecf841007c76"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(sized_hierarchy): this temporarily reverts the \u0060sized_hierarchy\u0060 feature \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/util.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56c090b1603e7706396a846ba2e1c182a745f0c4fcc16a8e82f5ec222991726"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This could be a \u0060Sorts\u0060 if the term is a type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5df861bc6996f7337a888b9e6b461ef0bbf184229975285e2cf7459df9dba1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should probably just look into overflows here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b388b50be930abb424e71f7964ec41fb59a6e96b8f718971281294da0dd179ea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we use a probe here as the \u0060BestObligation\u0060 visitor does not \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eb41a25de8aafa8a9a329e5090201c412180a5916a90f8a16db6d84270d71d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// HACK: We walk the nested obligations for a well-formed arg manually, \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f75f7f22f3461b042c5a56553721a27d10b2c266e29206bcc177bbefbb98b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc does this, but we don\u0027t process WF obligations yet: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3f4bb0be167ee986301ae1b277024a302d498edee92899b2bbe3d838371565"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Also, what about considering \u003E1 layer up the stack? May be necessary \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/errors.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad444022caa4e65417e325e134745547259b9678715e108bd41dbe35799ccf3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this in favor of storing this in the tree \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/select.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffd74224a90c6673d1ee7bc9a3c776d7b356da8beab48d62332e388b43a110c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME(@lcnr): this function doesn\u0027t seem right and shouldn\u0027t exist? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/traits.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e65f9a4039af77222a276a39fd9c8a8f1a617c168f5634ad5f2ad61cb4d7a1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#16847): This code is non-ideal because all these subtype"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b562b69bd6c457ea0f53ecf71aa726498d8e4f59989d84b209781c498406df3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: ///     todo!() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"70713e5003cb061cb7759d0ea73765d70bfaf733413212d949bcdf4ee26b40e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(generic_const_exprs): Occurs check failures for unevaluated \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac2cf9c92dd15748ba304fc14e39b433c9c8d2dfcbbb4cf05aeecca310ea532"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Unevaluated constants are also not rigid, so the current \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab94d34accfcf41e0bf43161cf429c60b91d6cb5040bdd69cffa1227314263f6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: remove this branch once \u0060structurally_relate_consts\u0060 is fully \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a88bcb7e10d9fcfd9e75c6227d75713382dd54d1baf80ddd015078231a37ed3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: currently we do nothing to prevent placeholders with the new universe being \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/higher_ranked.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"84776667f657d5531fe6cf301215c6814e87b9a1b4bf0b05d60324587eee65f8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#41044) -- not correct, need test"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/lattice.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd937a2c068716e5afb87bfe5b7e880999842c7817991a6034c028526d7e0b49"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(deferred_projection_equality): This isn\u0027t right, I think? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/lattice.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6fd2e8ff2870bdb131c57bfe87e027a6b73e3454f55a0430c80142a3b754d7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is only necessary for \u0060fn take_and_reset_data\u0060 and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8bece65b5d09adef9f542c879e6eebec0f8cdc82c681cdd4966db0d64f9501"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#120456) - is \u0060swap_remove\u0060 correct?"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/opaque_types/table.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2bd5bf7d3776a90034d95fe3662fb5bc3b7e7d2e25ef7f039353012e656d6e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: perf problem described in #55921."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a09556dde4492dfb6b08963a1ff90e784fb52223513bc7d100b229f8bbafc1c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: perf problem described in #55921."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42dc5e56773871ddd45c37aa4aa1d8a6a1551ac960832afe81ef883901decac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME(-Znext-solver): This or public because it is shared with the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/instantiate.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f03e9f685ffc33882d81967a8b6d73a82756a7991b73dbafd57c6fd5ffd3bd5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We might need cache here for perf like rustc \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/instantiate.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"beca6baa6ae99aefb5be069c28817c25c156d4953dc4c88748f93b496112d868"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME(-Znext-solver): This is public because it\u0027s used by the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/mod.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba98023fd53ff8c001f4c3814e564a02a40af02d32d61fa2194eb04ab93428a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Unsized ADT. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff4b5cb7deb6ef9737febcd24f4a17b9a7eee6f9847ea7350713a4fb75f36be"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This requires \u0060adt_const_params\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c3df15753b8a5a507309035d4fc9de441cdd0eca0626e722142b3ca9e1da0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Fn items. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"172dfe8b5acc58d06a0cf3ee2098d941cf9db9b43f830acc9369d011b06d49cf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Unsized pointers. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/consts/valtree.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5e4072b9b6873726dfab58782dcc533526d609efdcb4635fabeda4a8cb2e87"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Switch to builtin \u0060f16\u0060 and \u0060f128\u0060 once they are stable."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce184bf066585a3419cd645a648f1d0779319a902eaa60607fb24028e47e2ec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a workaround, see the comment on \u0060interpret_mir\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"039ec36799fee3586175f3b652deda4f4719deda2af122453dcb86cc08d8d071"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should be folded into ConstEvalError? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9a454949f8a2cef3dd33f8ce451633d58543f2dc7036a7ca6f73d72073bbe3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: Fold this into InternalError \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0a1b9300e06ac1d0ec2f1ba47316c8d3bc19fe170be97e0f349a7a9e8d4756"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace parents with parts \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba5261db09acc559f34286d444b7edcb03f14c2a317385b071e843cedfdc272"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is workaround. Ideally, const generics should have a separate body (issue #7434), but now"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c87785b1d1cf826cdfda4dcfea63e6932eba7e5eda9c1ae2decbb5993927842"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: there is some leak here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval.rs"},"region":{"startLine":2869}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ec92415f7e875b8e296bd48c8cfc0ff84d409f07374ddd300ee27b897ae577"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this smaller, its stored in database queries \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f48b115f20dc5056c37ee06faad1fdc48372744e4159c6bfd64c4d95433983"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): Is \u0060non_body_analysis()\u0060 correct here? Don\u0027t we want to reveal opaque types defined by this body? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"25033922554b36797ed801d4fe67533c80344bb88bad8714b63da5e6e2d35f98"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: make these short circuit \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6f81ca96a9cc1afa34ac40ac51fd45d0f70ad8d15b8839a1c5f98a0b871ae6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle more than one span. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ded86c4f89cad14ad1eddbe9d91865da0fd7135dfd1a6fa3e981ac95d68ef9f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc\u0027s ty is dependent on the adt type, maybe we need to do that as well \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0befe43768ee94d1dff5c55265abf426a395ba70b6da67c9495792aebd79f1e1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It should never happens, but currently it will happen in some cases, not sure when exactly. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"5102aa34ed1a9fad2888ef3cffa167e923315cef475c5bfbc4f47e38afff3744"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This can happen in fake reads. I believe this is a bug. So we change the fake read\u0027s meaning. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower.rs"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af0b3f453e28e8d8b6e6db7db953e74aff243794ff4bce3783c9cacd64aa1fc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do we need to fill the memory map too? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/monomorphization.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce2045da842b550efd137e53ec60a702a011240dd0f3f18fc33f7bc4a332919"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: MIR lowering should be skipped for bodies with inference errors. Once \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/lower/pattern_matching.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0d75304f4833825f9cefddad3972f72ae854417dfc3c1cdd67b11cbf9aa9f6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Add \u0060f16\u0060 and \u0060f128\u0060 intrinsics."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8519205f86eb8b032eab27e828215aad7400232f774f9f307941ba15b34ce6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: these rounds should be different, but only \u0060.round()\u0060 is stable now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c42dcd252fac761dd58fcb072df9e4d98dc59afac665953407e6e0d51b3361"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: these rounds should be different, but only \u0060.round()\u0060 is stable now. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e355b80db0fb33c00d3b1f6a6dbbdf2fe154edd678b6580eb8cb576b765bc87"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this is wrong for const eval, it should return 2 in some \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1710bad63a19f6e5e5e6fe5da36c97fdaebbf793b606324b4beac1eaa90fc26"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae114dce2807b632a0fc19a3fae9430825f2debbf76161b7ebad18dd6dfcfa24"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"674ccfff56b38b7c9c76a802480b9fceea0b05ecb752d1824797952c6898c66e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"04586842c317706e9cd083edd95e31c8d1fc9a8acf93fe347dec78e272299357"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"248b8ab8de51f3ab190b5966542ecdbbdf2955d8051350184ffa6eebc91cbc70"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4f0866e33cfde0842f887f1c0534c89dfe1c702725f93328697e4ae96969b5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: signed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50a845de72a0098f4c4048beeeffbf7a9a6724ac0427d97ce75d22499711840"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should actually implement these checks \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffb54dd2889a0b378203f613e5968b68748a8a92f523dcf5a44578e5e562b99"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: wrong for manual impls of \u0060FnOnce\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/mir/eval/shim.rs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7520f7853b7689004912736d8a24bf57bec56f3cc37f1499a25f18869a2766"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit the lint. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"262a8ac60c86718b5e971a32e3ad65bd8605d35df6f390d932d9de78756baf74"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit the lint. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1eedcc33880669608fee35fae959cb331beaffd63e150be44a3ef111a9fb5b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report \u0022type annotations needed\u0022 error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e09b0d979c18d55fd0ef77763de58021877664a46d1d7aa3417339aee513d5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(-Znext-solver): We alternatively could check the predicates of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6a00ddb03d9645f9bafc97518e16154d98c27aef0e403760a3cb7122c5557b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Need to leak-check here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"505ef5d25021be4ef849fb1adde09b79e9e350065f40ca22d3574cd9b2eaae10"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: check the return type here somehow. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e05f4f5d7b8b959ee6fcc533a86fe4388e784f022178cca98dfdcd97753b6a7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME -- check for types that deref to \u0060Self\u0060, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a9421667e44f70f6fb0ad9f7038cc654949dd02974254f83f483fc2a0c2519"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME report error (ambiguous associated type) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5284b3c8e665ab408bb89e751a65c979f8fadc3f04bc38c152fca50dac561c9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME report error (ambiguous associated type) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d465b5f5a8cfdbbf34f34bc3b10df04207a5919f459cad728e5ddf1e3d19bf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060substs_from_path_segment()\u0060 pushes \u0060TyKind::Error\u0060 for every parent \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98607ade78d94c9570818e61edd45c0b39ec1d4acee0805cb7bea82eeade745"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060substs_from_path_segment()\u0060 pushes \u0060TyKind::Error\u0060 for every parent \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1922007d9f483636004e860681b0bc72987b4d8430539977bc213ec3d1392f4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060substs_from_path_segment()\u0060 pushes \u0060TyKind::Error\u0060 for every parent \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a99b7b9095ec2066944f79c68cce7f2dddfc594fbc8a02632faaa5c741de10"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report error (associated type not found) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdfa7fb814555766de755a4a3625e65892aaa40b1e3b0c81a9fd7d1aa80e0e3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle other reasons. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"690866f1fda559949335a7a1a41b3ae3c68b572c776cf03c930927ade3add7ad"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc generates E0107 (incorrect number of generic arguments) and not \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cdb205f19130ff4ce97d76e35804f39913043fb8666b61603a489bed59cba7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This isn\u0027t strictly correct, enum variants may be used not through the enum \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e1ea5bbb7579dfa40859a039d8517cea4000d45764a85805fe3f001cb56986"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Check there are other lifetimes in scope, and error/lint. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fda89960cd364eaea8c5ad1cdb0a486f7355c038ca307930d1c54abab428a2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report a diagnostic here, rustc emits \u0060E0404: expected trait, found struct\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6c5457772cc60ebd92a40fdb181282008697dc60554b110546939774ec273a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: With \u0060AnonymousCreateParameter\u0060, we need to create a new lifetime parameter here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower/path.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a66f3a668db05cbc273f4bf482946d76fb3616956adc5d4e7216c89d15f18e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc does some ABI checks here, but the ABI mapping is in rustc_target and we don\u0027t have access to that crate. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"746665a1cda740037f317345146982c39fde7359c83411d05cc93661b68e3985"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack: we know that there are traits implementing Fn for \u0026F \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfde69280e268214b6554d5a68f33b1e2e9b2eb94b04fedfbf582afac391d96"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK(async_closures): For async closures, prefer \u0060AsyncFn*\u0060 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e12d123b7eedfaf2a650c7412610cf1d96a35cfd21a3c9cd6673f5b7721a2a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Actually lower the expression as const. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db0016e5628a002f426f486f39c72cf6707d3a22922b767b215d18148a6fdc3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: evaluate and unify with the const \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e51bdc4efe40de578c736e531e64e926ee5ec468d3903d4a22cdaf52a94c2ec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(const_trait_impl): these arms should error because we can\u0027t enforce them \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3d25e9bb14f204efc3cfc12c7406a28fe253d808c6f2cea822a9b3f5fa082e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We could probably actually just unify this further -- \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f7a9550ff9f384b73b2e1b796e67111913bcb4b42fb183ff493c7755c8d146"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: lift these out into a struct \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fc31d8df794f1af590cf6499a2bf0012bb4e58210936db2d4faa2d0fc59d26"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report diagnostics. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6632663848f8ec984a03fadb580f6d5ba70c6a2e8b81f8508a60ccce9f5c7f4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We may want to elaborate here, though I assume this will be exceedingly rare. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63df878441c227c07823648e533c8636e8abd110e41af84ec6058bb1eec6701"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We probably should store this signature inference output in a way \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c620bebba3dd451bea1e9dc0009e797ad7fd8198d367f650504c1d22ece9b6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#45727): As discussed in [this comment][c1], naively"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb320b77e79da537cb4e142a397b07dd407db2b6f7855c04622b8608cc416858"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: def id needs to be changed? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7a0d489c266177f3b0219ff09f61edeafa7aaa01a439b5084f2d3f4be7dd99"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Target features. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"537474b8494b64b89d80566d18572e7c3cd2f9bc19ddaacfbb023acb57a77726"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We don\u0027t fallback correctly since this is done on \u0060InferenceContext\u0060 and we only have \u0060InferCtxt\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa1296fbcf9a861b93a8e690ef644936084ca1a4b96c4c392605cbea17f7063"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: structurally normalize? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78de35cca9fe6a25863a2ec2031469d401984a6210d1da0cce709f9a41927df"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(tschottdorf): this is problematic as the HIR is being scraped, but \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6799cbfeef967e943c33713dafcc64cc04bffaaf8977b75cebcecf55da3da8ae"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060sym\u0060 should report for things that are not functions or statics. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9ac6b6211464a1f36a7a871237184873107296eaa233ed13bac0aebff0060b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"6215aca925c103b8f4053baa22b53e758b27ad24692cb1e510e15d1fc35b8d8e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc238d5fc80665b1898993085afae812feedac2ed011a5c3d07d09c7c48294a7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c6e44c1056a8165894534b1a36922947c29e4ac06ee7189dd622423da7520e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":3273}}}],"partialFingerprints":{"codehealthFindingId/v1":"756418b18048c22f3a02b9d5e639688bd4ce2d6f9770468af861d30fa214c825"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":3296}}}],"partialFingerprints":{"codehealthFindingId/v1":"1837094fa27e78bc756d2b5b50f3b870a9072a8b0eab40956a69cf55a7f456d8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/format_args.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0b17c3fc7bc153c386d2e0bb69c2c56ece1f9c9583dbd39f3aab093cc5ae7a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error: missing fields. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8756cbdcf7bd0c28a143c5f388b5ee4dd4c59e3270ba947008c58ec3d2fbf5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Emit an error: missing fields. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef76d6c02d58531f00493ba802c3f7243cf7ea9fc4f0ae8f335f3a7b90aa40ff"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We are currently creating two branches here in order to maintain \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"34675affed456c4d6a8a18b29e6064350702f8a293116aea1d7c4278fbd28ed5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(tschottdorf): don\u0027t call contains_explicit_ref_binding, which \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1416a52ecb20d16ac79a90d1f52498c29ca55708a8beae63743d8c05aed4665"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do it here like rustc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19a6503ba90ed41554c425d84c11afc1b5a7f6bc188e854611e742c9d7937f0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: the element expectation should use \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ca895a0544766293eb6222ba823c1125f3d624cafbcdebc95d43e42663f60b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Merge this diagnostic into UnresolvedField? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9c237a3e181e876aad8094ae57929af33e470d006ed668404f9e4e973443c1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Using fresh infer vars for the method args isn\u0027t optimal, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"063e2908848278edb5ba9815d939ce2f27ab6bb4dc8e787d21928687e8c49713"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc does the following, but given this is only relevant when the unstable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ccb5c0738bb0a40178f1ec5f4b26801fdc785d963fefaf96d0d17deea24017"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK(eddyb) Bypass checks due to reborrows being in \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"744c1e35d765fd0c365844f09980e1c2c3e28577e9bcd2a3cfe6103d7d56468a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report diagnostic. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe5292f3cf4c2096bbc38d256e0172f2c8b6b3205a029c7ff880da819af7b28"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should not use a dummy span. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/opaques.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a621ad2ceb1bd41f87659a26c2af945ebf5c4ceeb621a92edc18b58e06058da1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should not use a dummy span. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/unify.rs"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1247ebfb36df34780c95af751a1babfc5d9df716ef4c1e8ef5d693a130d8b14"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(deref_patterns): If \u0060deref_patterns\u0060 stabilizes, it may make sense to move \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabe2e652c3cea86bf61655becb2152ba8a675dd4761f0b6cdab6fa6c34e70cf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(deref_patterns): If box patterns and deref patterns need to coexist, box \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d7757157cece64ecf6505260517418515a9f6ade12f2853bc80c4e97e312bb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(deref_patterns): we\u0027ll get better diagnostics for users trying to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89b30abaef108c598eb74b5d0700b3fba405ac53c2ed31400121e0b3d3f09cd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(ref_pat_eat_one_layer_2024_structural): If we already tried \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dc8d2797e8ef5bc7f5ef6b4774256a620cc3ee44f77c86c6461bc31ff23c77"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(ref_pat_eat_one_layer_2024_structural): If this results in a \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3039975d6cb510ddfa8336a57967cfdd8611e07263200c970baec67e4aa17d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report error, invalid Self reference \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/path.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e9e91010971bc9eb0d7e29126be9909a67aaf7396f8303a0df45014a22b623"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report error, unresolved first path segment \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/path.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35cb1350ced03b063dcca5bf24bd2e8046e451f9f6c0cd12becfe68e7728632"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#18741) -- this is almost but not quite the same as the"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a18e707e18773d87e2a87d81bf5272e57a9d9981978a3528d48096972d7f4e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(trait-system-refactor-initiative#231): we may want to treat"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab077a16e3449d83bc1570b674fedf5a0eaaba64cc4ab3213ddee3c5615adbdb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc does not use the type of \u0060index_expr\u0060 with the following explanation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"050291689546267637fd9509988e297e2ab6384d2c84a145cdbbb0442e530821"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): Handle \u0060goals\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/unify.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b372ec0c09d3473db5d9e01605cb18ad06ebbffcead8fc1de64281811cb87ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: Rename this to indicate the borrow is actually not immutable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b628aad742ae90b8c09ffd7c55c332932fd088438864fe5e13039bc09e12c6ab"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(async_closures): This could be cleaned up. It\u0027s a bit janky that we\u0027re just \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"93526593c12afeafb4d1626e45dd5cd68a50d89e880efe367c018005388f2cd5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Insert coroutine stalled predicates, this matters for MIR. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8f274dbf9a6826c66106ce6cee294f960955ff6eea720f7aa87b4e984f9391"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //         // FIXME: throwing away the param-env :( \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"7898478c1e54b8fa721f6ae12ee59846ca1d33df33b2a79d33e5d023cc91f86f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should use the edition from the closure expr. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"a612c4bf220aa79af0f3d283bf7a1ff56a8245dfbce30dbfb811f7056219ad4c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: \u0060ExprUseVisitor\u0060 has an entirely different opinion on what \u0060FakeRead(ForLet)\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a933e9ab1f52b6951a724131e3192bf02a1c74b664cdf9653eed1d818fcec7f5"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: this could be a fake pattern corresponding to a deref inserted by match \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"218f624f79700d98e355a29c261b272ee01109e270b7fbacb04bfdb5efa90542"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Does the MIR code skip this read when matching on a ZST? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"355bbcfcac7fcf891238b93ad6ac6b60aab57bea68243c20915c4859876d6db9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: What if the type being matched only has one \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"d775e76bdbd8fd50630140d49bb67f04f4730719ce663e861f26bfcdc2fb543c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME(never_patterns): update this comment once the aforementioned MIR builder \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40475463754379b9960f6761685ce9ad8a3c534c3da7033e4f583080f7b48b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: To consider, ref and dyn trait lifetimes can be omitted if they are \u0060\u0027_\u0060, path args should \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"be027b57f9ea884c949536c28297dd030c2248803bd786c47164f8c18f77b816"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Also named lifetimes may be rendered in places where their name is not in scope? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d5cc829340bcd43cdbc3c88a810a4e34f50171e67983d5528b6c11aeae49bc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We shouldn\u0027t use \u0060param.id\u0060, it should be removed. We should know the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fdb57bb183f21b5bd1ef58d69922d521fada995fffd05985301295e7b99d53"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Replace with builtins once they are stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"91df5e44d6615ac962a8ae60e2128dfe1a58296b99997203c0c70f806d5ec63c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Replace with builtins once they are stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8656d959a281c5849c15959aaaf8bf9c30512f4d3f7b42cba3c0114bbf7f9f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Replace with builtins once they are stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"68de782988e67236bc9e978716dc6e97c4317710552a945fea352930923dfa25"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Replace with builtins once they are stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b1eecd4336a8dcdd33b4c43223805d45eb0646ac5000dc1cd95c2834592aa5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: ADTs, requires \u0060adt_const_params\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dd9d71a0ce43935b8b7c39f36a10d43556fd23b86613ef188f32003792531d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: no_std Cfg? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e0218204e3ce28c317ec3115990e4f191f5bd28fbb31ad9613e743a1bf0609"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: it would maybe be good to distinguish this from the alias type (when debug printing), and to show the substitution \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"414d18706b17ed5fc722bb85dc1017d4ea2371e070528e533a8e7648f17c3ab6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should not access \u0060param.id\u0060, it should be removed, and we should know the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cf74187d63dfee59a921c9dd9524250977d945af225212be3ab62c6cd99578"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is not correct, really. But I\u0027m not sure how we can from the ty representation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ffcccfbf92f33290db1cfa75d248d57d960ec73d168dc3c53763f8b27780ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should use the dependency name instead if available, but that depends on \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/display.rs"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf35c543dfae1e9aa6236396ba4ac43de27a68c2ace56c2b503065d3884f267"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Deduplicate this with hir::Local::sources(). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/closure_captures.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5925fdfd962588f23386d6f282e75c6f217679dbf5846de4b1acd27f92bbff24"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): We could learn more from the \u0060\u0026S\u0060 -\u003E \u0060\u0026dyn Foo\u003Ci8, _\u003E\u0060 coercion if we followed the rustc model \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/coercion.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b032d211d08213a4761eecac7d856a9a6ecdefa535eb12339d0d465716c78d7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: rustc emits the following error here: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/coercion.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e45675e57d853890db7aca1b79e83f842a952db5a95a3dcd2fc41f3fd997458"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should also report \u0060SizedSelf\u0060 here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/dyn_compatibility.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2346d161c9253e051b51b3d37d48980cb0686ac999b65f9262d61cc719109ab2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): does this test make sense with fast path? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/incremental.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5a8735bc2362875e5fed2fde5cb5fccbb7d754e7de08d8350639c426bb356a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: What does this test check for now? trait_solve_shim is no longer a query \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/incremental.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd61519ebf310c2ba95899334fcc79efa22f3b8975b5dca86d42d5886794a09c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Add \u0060f16\u0060 and \u0060f128\u0060 once they are stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/layout.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1bd249c246b1c9a607287f4b3cc04506a4cedc448c3023ec2a69a185931ac8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this test current now do nothing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/macros.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a69f2da110e357fa38bc5715db16d02a6b779fc17f074465ce1d556de35fcb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME, type mismatch should not occur \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/method_resolution.rs"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"660222255445889440c67b65a79c9f87266acd48fb978b8ed5db969f76791f66"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This isn\u0027t nice, but I guess as long as we don\u0027t hang/crash that\u0027s fine? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/regression.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0760e3b80074e75c0a431dc060c5a18a813ce7aefd4746536af5bf32689ea748"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): Though \u0060Repeat: IntoIterator\u0060 does not hold here, we \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/regression.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca8884d19aec8e8b5eff84c5939f8e41f483b9389536de1f02718f7a3f2a81d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): it would be nice to be able to hint \u0060IntoIterator::IntoIter\u003C()\u003E\u0060 instead of just \u0060{unknown}\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/regression.rs"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"4776c4f9e388e98232eba9b08ddcfe788f2bb39f286dcb482e644bacd57a64bb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): \u0060\u0026\u0027? str\u0060 in 231..262 seems suspicious. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/simple.rs"},"region":{"startLine":1985}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef299d77811b2596916eed67288f8fea53bfe1ae209f42141c646b2209114ba"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME make check_types work with other bodies \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"731844aaf53c32cca1c1e067832bad789508e08e6b518308b20266d9165d6a3d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: the last function (\u0060fn i()\u0060) is not valid Rust as of this writing because you cannot \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":4230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3536a3ce51a5836ceacde5c00a1330da640ef311f989d27194ec167675c6944c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: reconsider how to treat these invalid types. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":4275}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac29d7ce8ac17f6259ff947cba0c1eeded6ae6cea839b0988397648350ffa7b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: All annotation should be resolvable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":4417}}}],"partialFingerprints":{"codehealthFindingId/v1":"315d189b1176244d229dc174cf18860ee1285fee9ccc70f3a2dc7f15e3d81c81"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: All annotation should be resolvable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":4453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0d166aa7757ca59cc77bbfb548803d8da97de016039022cee6c5a94f569563"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove the comments once stabilized. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":4419}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc49d6add774c0840723b106e02eaf50479ba61f5ab616e2810485229d4509a0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove the comments once stabilized. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":4455}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb62521a554db67f5cecc5f588d149dec870cac69d8d8fb8ea68579918ddc94a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(next-solver): Was \u0060\u003CD as Deserializer\u003C\u0027de\u003E\u003E::Error\u0060 but now getting error lifetime. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/traits.rs"},"region":{"startLine":5015}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67e31b717550eba618e32f4234cca65ab2cdd2f396acde2d40c593add737e9a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: RPITs have variance, but we can\u0027t treat them as their own thing right now \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/variance.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b8345de77cba08712ec3163cf6e3bd0f29ebcd593317ce23ffec1d6fc509fd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5f71802d3d4a5e8963425bbb77b2e466d21ed748d88183ac6b6ac5e30e0a96"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab25efa4e0ed378941290b98bd3573e73afbc65e72c133940e10b5350777b0b6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb77fcbd4e071ec4ee26f86079aa19f57aa15c3833da6d843e19f9fb4833bfe"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d035473985edc03b4a8cc1ed9386851e76c9f5474bf4d816ee20592f6a521835"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdec3996b4766816a49defa1dfee6fcaa0e9316014d34f187f086d431186698"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a63936e2dcc23b9d7ddee7a2d5b828b71ff3ba917502af0ee559f99ebe0fbf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e580fdda305e62dffc7a391a5744a79ee1b7e6897eed020a544dc8cb9011c47"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2fa762cd0a4af153a7a5fa13681d6f250e1a66d9824f82000b26a99bfb8c3d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3b5ff46a2151931d424c6bb6abcfc5df98e35cc6b54ffdc5845698d2dd21ed"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"46164c79b586f3fdfc1f3486365232be55d538b585db66ec616dcd39522169f2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ad9a690014c82735aeb72d71b00ab87ed7cb30b462af362288679df566e0e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: replace this function with panic when that works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"571f8db52a0b140595b8599b5347beb99a22df461e5d33f6a978cd23880ca4ce"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should be 3 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/mir/eval.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"498bd9adc1a17872bed89c59a7486366a86117ae0772a3da1ae4187264839c96"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: These tests currently fail, because rust-analyzer hasn\u0027t yet implemented the changes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/layout/closure.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0937c9d68756a26b17579bcca5cbea506fb1f3766bdd434baa95b00979c6bac"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: These tests currently fail, because rust-analyzer hasn\u0027t yet implemented the changes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/layout/closure.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9397adfbfccf720997c5fc6814ac23292285639ccacb18f692dcab19841c73f0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Add \u0060f16\u0060 and \u0060f128\u0060 tests once intrinsics are added."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/consteval/intrinsics.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe48b70e0d90d6e0f8200e0508ebe6ff6f1aae830a652cf92c5372520f771c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this should be an \u0060expect\u0060, but that currently results in \u0060lint_expectation_unfulfilled\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/tests/consteval/intrinsics.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d498a0cb3c439a99405bb600506a1a101b1fba2e8957495df24d2cbcecac85"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: only look at source_map if we do have missing fields \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4174ea61d0efc623dadfc9a0ace9b9d65ce4e213b96a91525752e8063ff4050"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Only look at sources if we do have incorrect names. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"573bd0b97d8074f5cbb171e1d637637426113b4cd6ca3828b337784dabf5e60d"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Only look at sources if we do have incorrect names. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e723c9606d1468639d1f8f63b8bc70d41eec6a248c9a62355f5bc26bb3e3ced3"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: only look at sources if we do have incorrect names \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab7f549d99fa4d8cb9887c0abaedec15507d58ff61064696b465c757df6dd16"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: only look at sources if we do have incorrect names \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/decl_check.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c32a9b4b44722b47f55dbdda721a7b7434e203308dbe16608aebab62a912e52"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Due to shortcomings in the current type system implementation, only emit \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/expr.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9549126f7f1b496ce179df6a4cf1b8b94a28469621c3cc2ac221b2ef5dba7e35"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME we should use the type checker for this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/expr.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a09341f0a7c57cd973dbb6150d1b387fbee1215ca6d14d175813ea1b42218f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME Report unreachable arms \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/expr.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"36442028d247f05b07eed294bb6990ebdcc562b3d18ba4f6250972d34f2432f6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: for now, only bool literals are implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab84806ff8557260853b2aca953d62e127b501055e355bd64928787abbc64440"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX(iDawer): Collecting pattern adjustments feels imprecise to me. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fe865de9966fb6ef9fe7b99bcb283e6ccecac42cbeec4f49c0b992c55e2e09"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX(iDawer): field lookup is inefficient \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68d6730db0403c893a6b049c5d5c351f0ccc63388146b621db103fb5077c172"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This needs to be the edition of the span of each call. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/unsafe_check.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"14555bee05f6f5e265747b9167f059c55590560c4a7ffcb11d5fc1e3c4ea3e7d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(deref_patterns): This could report an error comparable to the one in rustc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/diagnostics/match_check/pat_analysis.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf86b88ca3099bc5f59155b0f9518c94929e061343ce00062a9b43e30725b08"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We only report a single error inside of eager expansions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/eager.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4b5cf597d23208ebc915e5ab84304c6f9a9268782119a4a825dd1debf3542d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We discard parse errors here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/eager.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7636b884667a864e9bf502b44134cfdc7ed6a9eaa3870df7e86720249e621a41"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Figure out an API that makes proper use of ctx, this only exists to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/files.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c9fa5f879feee4f2a5f4a058c94c9a6caf01ccb639b1b9d0df0503ce747a90"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Figure out an API that makes proper use of ctx, this only exists to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/files.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a88992a38a632ba295959f94090c9d055c1537cccda1405df65f0cf1a3fb35f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This heuristic is brittle and with the right macro may select completely unrelated nodes? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/files.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae46dfa588f49f8ac8edb424e01f17772aceeac3246f4bbb94561adc1db2b39"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should probably instead check that it\u0027s a valid punctuation character \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/fixup.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c091df0fc9fb4bfdd7ab24bfa6f4e6b064ad1475e3b95c2e457d56ead27afc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: https://github.com/rust-lang/rust-analyzer/pull/12937#discussion_r937633695"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/fixup.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0689b53f72a5018bc071afbb614e7b7d8a269c023e268da997dde186a79a53"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Move this into the span crate? Not quite possible today as that depends on \u0060MacroCallLoc\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/hygiene.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"00da26adb58dc03609a61d917f4c75ee8da6b4b22c35889691cae4ac4a7a4959"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This can be \u0060true\u0060 once we always use \u0060tcx.is_diagnostic_item\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/inert_attr_macro.rs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4baac8961610eb5672f05c684980135c38b046e3abd766ce8bec26af3b388f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is being interned, subtrees can vary quickly differing just slightly causing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8266c8fb9b65c01752dfdf365b76bd7963f86e0ea97969ff1b0f0da623e2724"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldn\u0027t be here, we can derive this from \u0060invoc_attr_index\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"da377e89802817e932849bd5f4f1e8b2186f078be92b36f7c159b07b1900789e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should verify that the parsed node is one of the many macro node variants we expect \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f1389c9650f9c9b8d27a266ebdbff055e6102748469043b9758d6ca774e78d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should report both errors! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c59a156d7fbe40a71a1ef09f3dc874c32ac3aa6838b8416cec1772a929cc25e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(stmt_expr_attributes) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"298b8f6af388d76162a2be8c7e55ad00dc8d132c968911ea38fe0a01bdbee6a2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should be the range of the macro name, not the whole derive \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e7a33f1c0596ca1d9a3b7b3789c82e9f02a6c15a316057c029414f01b113eb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: handle \u0060cfg_attr\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"286d4ca6fff7497ee9c40e2d1623808feb4872d086c4599f90d22581cb90e586"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: can be expensive to create, we should check the use sites and maybe replace them with \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c3ce10de85596d79906d0a43388d0ea861e22f35674682ed5ead83b824372e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Consider adding a reverse map to ExpansionInfo to get rid of the linear search which \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52cf34a907ca0141a21d92ecdcee318b794d5eaee04f6e6709cde521aed1571"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is only public because of its use in \u0060load_cargo\u0060 (which we should consider removing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"283a15fee9a16bc2ea35e57adf1d9424cb5d246c941cfc17976305cc0c24f626"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: macros in statement position are treated as expression statements, they should \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/lib.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a3d385210531e00bc66b47e5207137cd9d1381f1544dbe33ab0f293d18a086"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Can we remove this somehow? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/mod_path.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1736a2e468e26a28e022132de58060e31b34f48ed57aa2fbd5d898df12aa7c4e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is only a guess and it doesn\u0027t work correctly for \u0060macro_rules!\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/mod_path.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0f4e6c45f71e8dbacde5b1375fa214f1b7b8d46b0584b2781c5385a7e3aad0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This needs to go once we have hygiene \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/name.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5b8eb9f7dc1fd2713d310bd3b56b3a15977651674356c4e505b051760732df"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should take a database argument to hide the interning \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/name.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf79baabe721544f52fbc210551a47e1b0b049c94e870e7c1844a859c89f403"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this in favor of \u0060display\u0060, see fixme on \u0060as_str\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/name.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd22ee6543865502ec8d29ef6a7718cbac34de7d94bef18c7c5842573075ad07"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0027\u0060static\u0060 can also be a label, and there it does need escaping. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/name.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69ef9399f875034350a097a01a79b80d0bf1580b9c1dc7e40c6179cf7bd4486"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Can we avoid the string allocation here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/proc_macro.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d66cf6876253244a755cb9a07150f2bb40d56071720fae5e8bdb3986d5f879d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is it correct for us to only take the span at the start? This feels somewhat \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/span_map.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f1247df20fb5175ea7e1ede2c17a40036c79d97d1677b5d3327c93ef8f3fa0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This whole thing needs a refactor. Each derive requires its special values, and the result is a mess. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/derive_macro.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"209326ea9043d7244d0e73e2662945f49c723cb24dd161894ab60f4d4f6c68a1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: RA purposefully lacks knowledge of absolute file names \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf147ccd1005c0752ed97f61fb18d20f9eb37bc8f5bef3924e4e0975de695e5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Record allow_internal_unstable in the macro def (not been done yet because it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b1bedcad0a5279f44e19defd1a705001f59f102c7da1c9fcf52b7c66404cba"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: hack on top of a hack: \u0060$e:expr\u0060 captures get surrounded in parentheses \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"2137310dca35d6e08494e4d725715632255822e23e513c88003b767fed760f24"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Ignored like env!(\u0022NAME\u0022, \u0022compile_error message\u0022) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa44424359ca7a26b5131d7bb4349dfb89340c57342c66bff0c6646cc19af604"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We wrap expression fragments in parentheses which can break this expectation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"db63ec483aa215c09fb3860b81ca779f0efe5edd7a1333ba1f0bed488d583bde"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Parse errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd03689ea6bc0edb32dcb029ec35a32f9a4d5112869edca1fdc4475ceebb3d2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: actually read the file here if the user asked for macro expansion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a707b19d9a8dc1b68cf7d0a594a43f61139f6235bbbceadd98db767c92c1d7a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we\u0027re not able to read excluded files (which is most of them because \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/fn_macro.rs"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"609bc5539975dbfce4b054638d0cbb47e760789ebacedcd11936fefd7dd61259"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Not all puncts are handled \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/quote.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4374989a32652509ab5053355cc4ef710918f5a54458a061d0c084ad0d3157f6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/builtin/quote.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d191ad1252492e5aa68a559e888249b9b0920edcb807850956cc8fb60264e3ad"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \u0060IS_TEST\u0060 and \u0060IS_BENCH\u0060 should be based on semantic information, not textual match. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d527bae95cbfd3f25ccc4f0b662cbcdee2490f7cbdf489ed18a196f2379931"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: /// XXX: AST Nodes and SyntaxNodes have identity equality semantics: nodes are \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/dyn_map.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9527688f719d0966ea7151d07ce36a70937296e0afa141c101be3685de6af8d1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Change \u0060node_\u0060 prefix to something more reasonable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d12b3ad4531758a07eff97503c6c31f7d06a6289666a7038f677b69180d35db"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We could have multiple applicable names here, but we currently only return the first \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb618b493c7865f7308dde6c520dfad6f784fdb7a9d43b76194d409be806e289"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we should guide this to look up the path locally, or from the same crate again? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f019fc9d4c17464c31df20f3998b4fdc6d1022b00509a1335a465bb546b7c5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: cache the \u0060find_local_import_locations\u0060 output? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e6fe0544bc7cf2ed37507cf5f78f7fb5dfdb1ec4c1fb5195891d9c7d5a586e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(#17451): Use builtin types once stabilised."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"17992853bb0213493049e483a0c87c06ac45609e5699f0b9567c8853eb7844d9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This should check all import infos, not just the first \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/import_map.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4ad3a6e7a19302e68bc19182c85d6d2803f3b3ddc1edea0c8dbd8174e61e17"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: The rendered paths are relative to the defining crate. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/import_map.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4934632ae41c76686d5044278b61c723cfd8087dbe9f0ea554506bc6dbc23ca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Macro shadowing in one module is not properly handled. Non-item place macros will \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e2dee11b9737c35174036b2f6eb89e60199f745b00eea967034be618352e1e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: shadowing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a9f09f51e676832da8d7c4d91f101b8335b801d374eb6cd3db1efe5d2db478"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: shadowing \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5794a1c1ca3834da3901e46f87a5feb2852ec55924cc317d87886841df3742"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: /// XXX: this is O(N) rather than O(1), try to not introduce new usages. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeee09343b9065bdba10e38dfe26257f664ed1552846401bd86a634d60041506"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: /// XXX: this is O(N) rather than O(1), try to not introduce new usages. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"123ddf9d53d0c75ecb23a3e9d2d9985c5e66959496ed2836499b5fe209a287a9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is only used in collection, we should move the relevant parts of it out of ItemScope \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"840e793443eb97d0d9dab9f3ebde4b9759c5d3dca370f191aeebc9b745d2fd9a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Document and simplify this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_scope.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"6292c3267d6f921cc350b9fac0ab04ce8b1e43218785b63e7a8c70d7ec5f89a8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Would be nice to encode \u0060None\u0060 into this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree.rs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a972a8adbd4a972efa321b249bd2a6ebb233c55729e0f80b828a85356e1d0e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should we remove this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbccac3bdc4e58d2304144a404b95fab85be76c2cabc79cea28c58e1055b2d6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(swatinem): the following lang items are used for async lowering and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ad678f0fdc64ec4770722d8dce4812ba69f3e5b9d4832ba992a110b4c380e9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Store this as an erased \u0060salsa::Id\u0060 to save space \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cdfbe027a7273540472557565973205d046f92f39156bdacef7a02a21cd2c0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Store this as an erased \u0060salsa::Id\u0060 to save space \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd80677530cf344b3852dd7b2670855315f7f071d726932acdcaac6c1bcb4ec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Store this as an erased \u0060salsa::Id\u0060 to save space \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"258e45ff6d75d35ae2a8a01d6cea7f7fc46fcc1d5f582ea0a3246ea85029f49b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Store this as an erased \u0060salsa::Id\u0060 to save space \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8f261060c071636137c06810e5e118f342144d011a34c8004a9bc3435874b8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: not every function, ... is actually an assoc item. maybe we should make \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4871a4c6f08cde1ad48c7373ff4a9eb758efcf588ee4e184cffc0f90fbdd95"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Check callers of this, this method likely can be removed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lib.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3fd38fb82a0a958422573133a5b57e6fb79f643e39331f42b6cd5b7e22c559"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// HACK: In order to test builtin derive expansion, we gate their fast path with this atomic when cfg(test). \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c28fc5851acc97b18874dbf560c4b8cd41f38415d3bf69e39397554d1a2e570"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: There are probably some other things that could be here, but this is less severe and you \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a412a5af3931d100c72bdcbf7f4c53e2b12d4cbe31a6df687da5b251282857"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Figure out a better way for the IDE layer to resolve these? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f96d65f941c0ff423f7e9a188e192166429865ca0e2a509a59a80000c0c2d6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this can use some more human-readable format (ideally, an IR \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb72b89fa66c9921f34284b4373493609dca3994088dd8c965099089f3539ba2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should we provide \u0060self\u0060 here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43b049289ac771b01916b0348bb4cc2e8838e5767e47ff158bfdc71a2f3f76a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(trait_alias): Trait alias brings aliased traits in scope! Note that supertraits of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a2c22abfe3b67e5b747447090a6ffd260f2ce950c8b419b3220029d7129394"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This adds as many module scopes as there are blocks, but resolving in each \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"658d1f1cb1f24913dbddce134a396d7d96892a0f0e1f64954dfe33f83fe8e778"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This adds as many module scopes as there are blocks, but resolving in each \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b57841def5322bf00b698913a08cb7c8e065fc9d48de9fbb4718d7abdd6d993"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: hack, account for local (and only local) shadowing. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/resolver.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"493e7665b3c182f1acd077842794309713975b1b168358db5e72eca27de6097f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: handle \u0060mod\u0060 inside block expression \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/test_db.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49178e4c8beeef48434f092e76e01b087bae9139cee9385dae7969d17b24d6e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(trait-alias) probably needs special handling here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/assoc.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec1df9d1e8e27cf3c65c015686465f05d4e7b9d1e5050ef33b892278c4b8b70"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Expansion error? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/assoc.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10ad6b2f5634f2b8afea00d3c2008504095153166bd42d3ac84624dc085baed"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should error on disallowed item kinds. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/assoc.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc92d918613b5e9fb61a012233d0ced9692cd9ee7eb4bd8e666fe83b4338f1de"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: tool modules can be shadowed by actual modules \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/attr_resolution.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"078b58027d36dceca1fc057cefec1876b234b4bb1847fe7e0555bf27087a5987"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: There has to be a better way to do this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2739284c4a1261f3dd16d76ee519ff04135dedd4d41a5d2f914ed537b4792fb5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this clone \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2555343b7254fe04078335b761e326da04d088b6d524d3170306e9ec21a1d68"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report diagnostic on 404. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"873d66fc4d3a06ecc817daccb5676db827b62a2d23a4765c2efed6a1e580ada8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We maybe could skip this, if we handle the indeterminate imports in \u0060resolve_imports\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e07ef8219ff60e074c9275ea0dcf5bc01bec6535d83ae8b71808cfa00ce2895"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Implement this correctly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb8aa2d7d372ccbab3ad2ae0aae29246413f920e645d58f7c1c707f4c241ec1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Implement this correctly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8029ade3cc494f5239ba8787eef63d600bbfbb60bc0a5caa4711044d2a5bf9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Expansion error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5899cbb1e1a1e19fe412ac8f327a5fb3d82c2a8663e2d24f16e562b7533b5cdf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This code is almost duplicate below. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfb504e8c68ff5b92efafe3f5970bf4ddabe14c9cb6c9841e1b0068628e2a51"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a hack. The proper way to do this is by having a chain of derive helpers scope, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0b1e7a4c5d0a890402dd0489a262053adcc13ebcb3469bb28145c553050a18"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we shouldn\u0027t need to re-resolve the macro here just to get the unresolved error! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"8736e39b4532284325952bd19766a522717546847bbaa5088432bc2dced62d22"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // macro name, but we assume it isn\u0027t as there\u0027s no such case yet. FIXME if \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2624}}}],"partialFingerprints":{"codehealthFindingId/v1":"de13b2c389f22ab1c5ef8946d4e6b9c81a4953dd16e18bd632d4fd41a8ddf442"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Immediately expanding in \u0022Case 1\u0022 is insufficient since \u0022Case 2\u0022 may also define \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69144e20aab27b7a333bb29400d321e7eecdd27095488cf596f02cf6e3fd9f5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: if there were errors, this might\u0027ve been in the eager expansion from an \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"07aadc7215c535c99cfada1eb8f216b985f09e0e5f02053c9bd841e2f31fe202"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this test does succeed, but takes quite a while: 90 seconds in \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8688425ae4f6f65978cd7e41f909246619cef84a51c1ab73560a3a384984eb3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Whats the difference between this and unresolved_proc_macro \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/diagnostics.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37fc87f48728da7f409ec02fed40bc07e20336b4b575ff2792e67751660e667"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Edition, is this rightr? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/mod_resolution.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9defe950de808fe48650e3c52ab107c58fda2bc6420088f3e325cae59507839"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: If the next segment doesn\u0027t resolve in the module and \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"532554a559c532e1165ad33bd274b22370d2173f14355582a163d4458ccadd41"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Inefficient \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e92ba78ffb08df5a669406c2ea93c32b38664cc4a41ef7ec8cb0b8891633af6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Need to filter visibility here and below? Not sure. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd0605c5388bc3ddd184acf1312f37b33d810ea125ed168eafaa690ccb23196"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should not expand. legacy macro scoping is not implemented. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/tests/macros.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b2bd526b0384c8c9a6c8cf925bb02687e5c9c755c886045871e756e93d7d55"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: should not see \u0060NotFoundBefore\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/tests/macros.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"8951e8b6d3581fe403c39e12b6e945b1be97301cc7f684c2defe785dbbe26d4d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // See FIXME in \u0060ModCollector::collect_macro_call()\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/tests/macros.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1111292720d5b625afcd5c65ea5db236b49140ba68492abcf6f4ca5c15d13e3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: actually expand with const \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/builtin_derive_macro.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b78fab57481aff120f43b22b3400ddd0f14db28ff3f8e891cb81fab1de76873"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is the wrong expansion, see FIXME on \u0060builtin_fn_macro::use_panic_2021\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/builtin_fn_macro.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b83b4ccc546ce6be48c72f14a6c5d13d26c6341f9a481745b26d5dbd328eda"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The pretty printer breaks by leaving whitespace here, \u002Bsyntaxctxt is used to avoid that \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"73374330df0c6dfed21c18583fe2b9d4d9689653bb23393dd76ff4febee3339a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: I\u0027m sure there\u0027s already better way to do this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mod.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8cace259845317675a7926a2b9158917223f2513ffd5b5c00b6caf05cb9fca"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this actually works OK under rustc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/matching.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7340726463f140053c31302613029f90beff20e69b4454ab882ec415dca33345"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this error? rustc currently accepts it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/metavar_expr.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cc15c83ebedc570ae20df326e64ccbe1aef921d17b041420757d1f7c5cd7d0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this error? rustc currently accepts it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/metavar_expr.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7020000cceb569e197a7a1046821385e757ffd86a5e6b708cadb54b581557f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this error? rustc currently accepts it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/metavar_expr.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"cede3e6fcfd4bd245f716cb1015540db5ea419f81391ad2e0025e14041d78bf1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this error? rustc currently accepts it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/metavar_expr.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e074928184c30841842d8164259d965eb123439b760b0786b9cf69bf0edd6676"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this error? rustc currently accepts it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/metavar_expr.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f235379ab8b1e53f196ce22d138818ae72c5ef1dce819be165a97d42a49839"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should this error? rustc currently accepts it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/metavar_expr.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bac2d3a2af29f64bf6d21959686212deb1f6d3bf812ff2e6faa2b4cdcafef0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME we should have testing infra for multi level expansion tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/regression.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b616dc2a69b26992f2d3ad4b850109834f971afa5c56930e4ea64ac40e151097"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: the second rule of the macro should be removed and an error about \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/macro_expansion_tests/mbe/regression.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"365911d21c1215f6142cbf36687c03b77b01886f03d65ccd113890475824d8a0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle \u0060global_asm!()\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee67f17d2b4a0cb2258e23b2ea2cee806deb36402256cc714cf7b617a553183"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: report errors somewhere \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee748b082c46da5b14b1a369e44467d5dfeab9f0b76c55d55804538f0aa9c5b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Diagnose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75ae13ce62041f5f083e1d20960109a6baef2b5519670589a8b44f86418cb79"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Diagnose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"19161afcfd9bef3a2e9a5c93edcc06641ce63b859623fe6ac140af7fdcf69300"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Diagnose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"195d5bdea5376217f5ba7d7cd77db4e1bfc653641d86e4aac611269e86b9b6da"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Diagnose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fef3c24c74c16886b1f363088c7eda4141e405579c7381a8b312d5bc7ea415a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Diagnose \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b536b492f1c48b07c30f2335194780976ab1c660341c1f36215b225aa544c72"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is problematic, we might want to synthesize a dummy \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"848dbb1d1d6e35494a078debc7d2142eb01ef60cdcdcb69706dace424268390a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This will lead us to show failed trait bounds (e.g. \u0060T: Display\u0060) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/format_args.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1404d8e1ff3262eb31aed56fa4638a429ff93453f8289a99e1734a9e61604c78"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Unbox this once \u0060Idx\u0060 has a niche, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/hir/type_ref.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a5d1e016689300e4c38fb6f5fd6b878c9b8b51f59198b9bf0b7124a4862681"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: within_limit should support this, instead of us having to extract the error \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/expander.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b48d5911360bbcc7e2c79d7725152f543013505395db2865c1da54bdb82864"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: add diagnostic for missing body \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1213e519ce91ce4af61fae6da9f941ed6b2e82f36bf442a0e1cb1d6d069f05ec"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Keyword check? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"502c93605bb0b871411a676f19282c190e3c67091c01cee4fb64c16fc45db88e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Move some of these arms out into separate methods for clarity \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fd3cc6ed0749cf30944250735e3c8a158c35d6b889deaa583b16a43d1206dd"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Report an error here otherwise. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee4cda77228ee52318040d451e9f8f843ef0eb607ee830ae90b0ea5da6a50c0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: Rustc wraps the condition in [\u0060DropTemps\u0060] -- a construct equivalent to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"668c0dc43bc07a4fadbddcd4d36936dd93ab32200bd952707fcced1293611bc9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: desugared exprs don\u0027t have ptr, that\u0027s wrong and should be fixed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":3562}}}],"partialFingerprints":{"codehealthFindingId/v1":"98142882231dedb3b3210fb93f4d9f88be5fd5469bd752028bd228ac0cdcea7d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: desugared pats don\u0027t have ptr, that\u0027s wrong and should be fixed somehow. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":3613}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef04ce244c3e2288512a6191c9cb8d926fa547c526c0c31d37c5d3bd94acdad"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: deduplicate with \u0060HirDisplay\u0060 impl \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/pretty.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9c2ba63ef4f292fbf00f4453d823cb4befe83be9ec24968cfad018f4218ac7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this a \u0060super let\u0060 when we have this statement. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/format_args.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"897a33ece32ac0b2e7e191c0c543b379734dc0cc83ef4e3843d17fe6a2283cc0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this a \u0060super let\u0060 when we have this statement. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/format_args.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b9cd3da55d1aef10d26fb1100f8323ea9460d8d5fe360bc8fabc563738eccc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Unnecessary clone \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8994f9ff2c6a1249c82aa3ca8a6f88c7aaedc3da52155b2c68690c1d934f63e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this bottom up traversal is not too precise. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower/path.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"295f9f2035331d5838e4d94815f67d5dcf5c73a52dec67477d18d452fe73cd61"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Map the text between escapes. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs/docs.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e9137356483984cc846608eb596e0c23d64c3bf66702d9c578057748cd5130"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: resolve type aliases (which are not yielded by iterate_path_candidates) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/attrs.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"a486a75b0fef1cbf46d6cbeae1f5ad3bba1776c2c91aa0048602cbe9857624e5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this is not how we should get a mod path here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/attrs.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad670646a3276cc1d38d6dc85cd7074c3fb11112edebbb9409458c65564ca4aa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Split this off into the corresponding 4 rustc errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee51d9b1986c02126e6ac392a2011ec1bc7e0f495b3841833d1511daaf55eb3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: maybe we actually want slightly different ranges for the different macro diagnostics \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d592518bf65262d609f8a94326541cb2d2f53dd29b55aab40c275e958dd9f07"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Once we diagnose the inputs to builtin derives, we should at least extract those diagnostics somehow \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"9423b3c3bb65d3fc286fda9749c923fe5664a96906f335be2fa508b3e0a08775"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: When specialization is enabled in the current crate, and there exists \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6020c03fe8423fa1550d9f6f704f6ec12dfddb272c2fa3727bc2b8b11a8c12d4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is accidentally quadratic. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ace861bdb58d892dd3869e239b00e107e963643c8eaa5a08822c486a042940"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Missing unsafe and body validation should be defined for any \u0060InferBodyId\u0060. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d65aa18f0c8d48fd0c11238771ea8c97fed0a4f23f0462bc97cef9b2c08f1b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Here and elsewhere in this file, the \u0060expr\u0060 was \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf85f0d84896bad74b7aab9db2f869c22be10b458747cc52c063372cd864516"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Printing the const to string is definitely not the correct thing to do here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0bfd554db67c01e8a943bd6598c515ac0c9081b0c200a27f8852a434b586b8"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This will show \u0060unsafe\u0060 for functions that are \u0060#[target_feature]\u0060 but not unsafe \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a998bef50d4a7ab9a35a5915785f08a81ee0cd44619f073c16c8dd6f42af2f6b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use resolved \u0060param.ty\u0060 once we no longer discard lifetimes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e0b760e9a5e136067975034189fa4783ca454511d1c350409dc960c6e8eed0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Render repr if it\u0027s set explicitly? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff280a877e8fb9e0ad3ee0150d75633267903d6e574896db32e4aa7a0dcac8e0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(trait-alias) needs special handling to print the equal sign \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/display.rs"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"be554cba1bf21b720f2a61c5be1be988873df4dcac78c4d2794b7a4dc0a455e5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is here since some queries take it as input that are used \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"435582d936ea87b55725e095f83e0f2751bf746de63444dc428bcf0df3a006b1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Properly encapsulate mir \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"db616d628eb5f86779c5b79bf8671b1a00bd4cb5c5a825937904e9d82bb2822f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: These are needed for import assets, properly encapsulate them. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c85627c5813c8850ee5688c9ee058d4b48f9449b475fe3dded161b1610cf8a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: RawVisibility::Public doesn\u0027t need to construct a resolver \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d408f91c0e4eb10736fa835cb91f5045d43e7b0632df00371f62efcf3168b4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This does not account for replacing \u0060Self\u0060. Do we really need that? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"499c7dada4022b4bb73368daac3a4432b3d7c8fa329e2570b29e04311fe35469"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This does not account for replacing \u0060Self\u0060. Do we really need that? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"da49a739fbf55346db19bf87ad86325265acad3944cb33ce49c534d5d81d7254"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This parses! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b050937d8edec8ecaadfb2148353faadcdfc6eeffb5c6e9b426c12c052bbff"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME: this only lists trait bounds from the item defining the type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3622}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb494a506e18eadf973b96357255dc6dca6d7fe1a2507b6084a5ee0f12c62cb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This shouldn\u0027t be \u0060instantiate_identity()\u0060, we shouldn\u0027t leak \u0060TyKind::Param\u0060s. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3725}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1ae61ccb933efefadc061cd5d726da440973690c82154247e5220b5874de0d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Figure out if this is correct wrt. match ergonomics. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4313}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bb3880b6f25ebb849c21e4e023d16d81c5e5ffeab4d6a37505a2c8bc78e65f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: What do when we unify two different crates? Currently we just randomly keep one. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4080d50f2e9c4b4da644c1d3548385bfd7105009c57513a234dfa6d56cc7804"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Find some way with const params, maybe even lifetimes? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4540}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd63c9f5799526504e2381741d1b9b834d114037c424391fe3d160a547397f9f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is the same as \u0060remove_ref()\u0060, remove one of these methods. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4842}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e2e837e68545e820d391243c3ccf53e7187078a42183afe1dbe490ce65f2f7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Find better API that also handles const generics \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":4967}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58bd8707f8c3c3510cb633cff44ca1919dd317ba3ba25ed6786577272c35b9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We don\u0027t handle GATs yet. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5020}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4af921a018c5461b1136bb499454683fc464d2cfad95678da417234cfefe94d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We should probably remove this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0752dd5d7986fdfdf029c4168aa85efe18dd710f943c94426d67664da4341f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Document this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":5809}}}],"partialFingerprints":{"codehealthFindingId/v1":"1611f8ff01c6f7a5ba27d578c2647497746a5c2e0be1bf8bc82f3b1dd258dbd7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: handle block expressions as modules (their parent is in a different DefMap) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":6293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfcdb6d0bb62e1b6b72ce0b8ba262aa728e277ef884f0bcd31d0603f67208bc"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We probably don\u0027t want to expose this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":6601}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b82d6085641e2c9b0cc9f66be75cd4e6582038868a0bd8b023e9ecdca6b484"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Rethink this API \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19fc1541d622e1cad9a028e4beb2a5fae1f0c5de458b9317ce6ab1da9bb01d4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Rethink this API \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7d2234d995f1f6cf80dc038905de3ce4d366bc29ce560525a67647ef6c5a1e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Rethink this API \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9040e287b5e3a3e9d120a5e75cf67d027a8eae4db82ef5c07cc553f0cad66e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We filter our builtin derive \u0022fake\u0022 expansions, is this correct? Should we still expose them somehow? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"706b73b4d692774757ee249bc6c39b7b4c58aa469689d65299509f9fdc29c0c1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Type the return type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8efdb5513415046204c1c3ee81f8d8c95ff9f9b94d65ec86d06ce1abef70cef"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Type the return type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"62572f399f795a6b8b4f6fb2c5afba452fad408aaa44826be69820ac40b36706"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this in favor of \u0060check_for_format_args_template_with_file\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f0c10d1d9bfaa3d521f8aff38410fa0bc546e42dbacb88326d8f6bf19bcb13"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: the trivia skipping should not be necessary \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"e795602c20a6fddffbc9cf9249adc20701aebe57410bf0a71de3b3cbe48d3e94"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This might work incorrectly when we have a derive, followed by \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcbad3240772beff1b249ddc638d03bb18ff9a2fe22ef7c2cf5ff972a863922"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: here, the attribute\u0027s text range is used to strip away all \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8ac61812160f466db5c978c11ddcff7c6fe6f0f27d332e474d0134dce2e918"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should cfg_attr be handled differently? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e10891c8b1c7cadb754e800cdc5303eba224ffdff796cd4c1e693dc011b3d4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We need to call \u0060f\u0060 for all of them as well though! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"833d557e1553376dbbf45411c902d8a07cdd6ab340e5428ae41a4585a0422cb4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We need to call \u0060f\u0060 for all of them as well though! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e1491448e9505f698f375e1a350a327b39d0adb09077bbaf754c1dc768dc5f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Replace with \u0060ancestors_with_macros_file\u0060 when all usages are updated. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"32efac9d685d017172f6c17cdf6412ae8532b0dee4088731b7df4ae0ac44310e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Should we handle unknown mutability better? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"4189cab875d96b6af59defe450b11c7e394544a9dcd4bda1421d5d3570a2980a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle lifetimes here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"d492d497018617016f4013d50001d9e05caec22a14cf8742dedd4bd82379857a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: better api for the trait environment \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f68f8181fe42b603a58bc2681063a491ee3334f81301388779463e3e9e7574"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Remove this from https://github.com/rust-lang/rust-analyzer/pull/22449#discussion_r3299763452"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3697b358753a3c59633351b50b9a9427aea270fa15df3c7bbd67a76adca919"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Replace this with \u0060resolve_macro_call2\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0bd98dbed60274f02b741bb0691469f906abb9fdd5688dd7ee2bb0ed0ed8ed"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do we need to care about inline modules for macro expansions? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f236b0abf3ae9ac9cd24783415432799f15be4f7aa2cd163d2c210c212da7b51"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: source call should go through the parse cache \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2167}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0c6d5410f428ee78bce2bea1b13b0507bbbd300367bac863e3dbdb49e5187d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME This can\u0027t be the best way to do this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a494411480b3c8b19ef0235283944b342035df2a2fe9917c3cdf97651bbfc0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a weird function, we shouldn\u0027t have this? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":2736}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a417357615c1486b56acee7a42b2290b0569ea88d32ca16ce8ef0635eb34f2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is this correct here? Anyway that should impact mostly diagnostics, which we don\u0027t emit here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa5a3698e6318b0684ff4d2489dbbde57a2f3450977bce4b3478a95d3e22aee"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is an approximation, perhaps we need to store a set of diverging exprs in inference? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10a092eded365d46e7c393805c25aeb027ada67cdb5763402ad1d1c7fc7478a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: subst for \u0060poll()\u0060 coincides with that for \u0060Future\u0060 because \u0060poll()\u0060 itself \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ba445015665cb2e53203c19635982f974cbf509044a0ce68bc77e26c3b17dc"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: subst for all methods coincides with that for their trait because the methods \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82ae8777c9b3e3d6b268babec1e55766554567e739fa1cecb83e333af7a0483"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: subst for all methods coincides with that for their trait because the methods \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"32809668c9224d8ba770ee0a4afa9e0ce23cb18c59f06dd6eac31cc15bc3523d"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: subst for \u0060index()\u0060 coincides with that for \u0060Index\u0060 because \u0060index()\u0060 itself \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d45445d514302bfd634fa005887392337b0c2a6eea9c08b5c159d0699582ff4"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: subst for \u0060branch()\u0060 coincides with that for \u0060Try\u0060 because \u0060branch()\u0060 itself \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d94b191bc4d8137e4ccd115b81255918fca90298053dea97a3de190bf03132a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: collectiong here shouldnt be necessary? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd1ee0e7c6c92ed016a00a080b6b40c6082f6aaae88764f5dc691ae8c460dab"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: We do not show substitutions for parts of path, because this is really complex \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44438f99f34175cb22f2a3addbfbfb15aa9a102f4d74cf7af9930b175928dd3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Multiple derives can have the same helper \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd55b856ae8a8c88cad8851fc9cbc39cda7a9976b952a54c8598a8531a7d5064"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME handle attribute expansion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f125b8e3d6592a21fd46e5762c0897c52fbc544f64d40b6dcb9b6fc9607086d7"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: during completion, cursor might be outside of any particular \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8020c845da834ad7c67d56cfeb9151d07190028307f807756470e2b4dfbf58"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: correctly handle macro expansion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/source_analyzer.rs"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"0211e8f6793e2dfcf0d1909461611f0a4653fe6fdfa6ebb475adc916937a17cf"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is this the right crate? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/child_by_source.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee14e4655986a52f2a4f88263f67717800b60b8fe341a160c8d87900ed0d5b60"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: detached file \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"489f788638ee0f8a326c1cd9f5bb46b903e89877eb0d912476e01a2ccb66d8f5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make this more fine grained! This should be a \u0060adt_has_derives\u0060! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"4893660724800f46150ecfffd2d7fbc11a45aa4d4a0f6cd70e8223bbd7c80a5d"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: /// XXX: this might be the same def as, for example an \u0060EnumId\u0060. However, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics/source_to_def.rs"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b673275b64297e8681a6f4632576e7542fc9f10def299b965432e9e33c705f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Parsing from \u0060tt\u0060 is only used in a handful of places, reconsider \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cfg/src/cfg_expr.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"60052b0c48ba42bc9642adbe406bf1a8dd54496036323b72380680f9452ca766"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: can\u0027t actually remove the file, just reset the text \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/change.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"812bb1c152c29acaf86b7a3cc191617d803f68aa0d259cded8ee267ce423e636"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This ought to be a \u0060VfsPath\u0060 or something opaque. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/input.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f594c8a7a741d877073aa118945ff9c7ce304aee4aff3141cfd5ed73faf0176"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: this *somehow* should be platform agnostic... \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/lib.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ec4776565ab91776f624e22b9beb3b37f3fd315f80f50f3326c1c4257db061"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: VFS rewrite should allow us to get rid of this wrapper \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/base-db/src/lib.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"863ea82e20064dc59f5836a72716a7b435a01d6afc5cf02d0b23cbf45e6df8a5"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060lib/ungrammar/ungrammar2json/src/main.rs\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ungrammar/ungrammar2json/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f44ba6e5ff4852f6a5fb64b4a3697a6918f51d122d1330c8d697ba57462d3b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022is a snippet text edit\u0022 repeats the code it sits on: 3 of its 3 words (snippet, text, edit) are already in \u0060snippetTextEdits.push(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f5089a3c2bbc033d0aef8b033fa43ee22befa331b01528e3ef05ba8554a105"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 8 of 43 project(s) overshoot their size bounds, lowering Project Cohesion to 6.3/10. The most over is \u0060crates/ide-assists\u0060 (97954 LoC, 142 module-visible types across 3 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3de7c4816942fe67132778395327950533c18dd105f888762cd5104dd5eac575"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70c9c95c72d4165943c0044849b5a9a0e1940454398f288328411fb2bf2ec0db"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a91d3774746cff798305e04a251863e156474679daad416aa216c7e61717bba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"add0e5ad88e9cac575fdd7b3f3a4c039058bc2c0d538043da9898568597f1dea"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2fdb979cd55f81eb8232f97527f457cde0ccd2bed16bee9e0a6b6d5dd6e92118"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"821c42554e6170189db42292383f8f4dfb8c0e086b6a24c24d2b29819abef9b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8653cf8b92e4ad6a1586d060dc9092bdd3bc70138df06f665b0d6ecdb9bbb5da"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75e835082ff21751bda452bed7bb730cd396408d8e06cc2fa223524d43592c98"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21399569df803ffb1a1ac380453b9ae6c4337811abd38b76a6d948969765c029"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"05d17baf6e01969ef67ae71a33c03e461fa01c6c1f80f6d1b5d20a950ea4a3cb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31f2804be2bc64303988587487968d79e7a2a87d3f8be498220a6b9772bed72c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e01b7a00f31eb51609dde539975995b7035b3a0e681c08a5da340de1ba9ba97a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"663a26175767415865fbdd4f4b1094a877fa4593d2c83e380fceddb6301b6a01"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e736fb5128fa4d0c0cbb487f6ec6ecebe7adc321e14773b5f1362e3263c0e385"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5700cf8ee182fc440abb16030061d2e9976929eb60c880096208a514bc453b10"},"properties":{"dependency":{"package":"zip","version":"4.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5880dd3786439c33d495048926355a75cbf082a575a6616bc50455114e69aa9"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"270c6767f6496ad9e092c5784d68e6f7eca17555d8f1cfb81a010ca1991ccb5c"},"properties":{"dependency":{"package":"underscore","version":"1.13.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"faa89982d9338e41521508ea06d48b1c096aa237c33fcd5484f32b1529c7bf7c"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.6","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2cdac5c908090b1851ab4284848cc3d2545a53f804baf31dafe123e7e726e5da"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"efeb6323d501749d3ef5f260f2f4e48d3b945290a8c72a21cd58e4dfc8a3432f"},"properties":{"dependency":{"package":"qs","version":"6.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c559457c14fd3d95f3a62d83a0f2dcb9885f76cb17840c2b6c8902d477335640"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74adbfb7bde6a26e838391d0a0cabd75b1448b3f1392ada89a31ecfbf0463c5d"},"taxa":[{"id":"CWE-527","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-538","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/file_structure.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f69fdf26eea1201bf9d615a576c076f875143c638e1eaaf6d541d5a048939e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/view_syntax_tree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f61fa82c1155fa9e6f98fb6e25ec93ff4bc236c9eba66d863a3a5d5c9b32f2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/publish/notes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc150cb7e3d52c96cb86866d8a8c847cc8e6f803e3a389f4fd5ab50d3a9eb35"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 23 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs, crates/ide-assists/src/handlers/toggle_async_sugar.rs, editors/code/src/syntax_tree_provider.ts, crates/ide-assists/src/handlers/remove_unused_param.rs, crates/ide/src/inlay_hints/generic_param.rs, crates/ide-assists/src/handlers/move_module_to_file.rs, crates/ide-assists/src/handlers/generate_constant.rs, crates/hir-ty/src/next_solver/infer/snapshot/undo_log.rs (and 15 more) (26 orphaned of 751 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 751 of the 1439 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_comment_from_or_to_doc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a556b3d2d0584489b773aa820dfb671f78a81d596e8720363b3c0e816d167791"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/toggle_async_sugar.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8514657bbfcbfa0e978c8ae9fe3e8cd3ee57df399f9d21bb50de374f32aada4e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/syntax_tree_provider.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f782aff5864c8d3da3b489e810ca332779e209a8e359d315dda1e17f5fdcab3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/remove_unused_param.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38de9b4b46a3a23f0d1fcf7b618412c042310922f6da9262900ccf4eceeb50c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/inlay_hints/generic_param.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54de3dde05b017d1a809db98dbda544a8f43667c8fe02fe16f6b777936a62c70"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/move_module_to_file.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fa6ac3df07858c90b3e8bf2849f2a6e2dba22abd93dfc0cc7cdaa4d36a9265"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/generate_constant.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c301fc462c6c1ca61e06122e420310b7aea8cdc1233c95e1a51a6412827b42df"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/snapshot/undo_log.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f44a011a6631c139ce1f54c01a4013cf3d8929a6a8dd54f2445103904a53d6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/diagnostics.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b426189de5d648703f979c2e4d202b6acc6d6d6c9cdd162e96676091a3923a50"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_from_to_tryfrom.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9144ca0d409a73a287e09e4b35a2b3655b4fa1bd4b9edd199b7eae0171a1c6a4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/assists.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"938e8143acce235eabdc8959a5ac30e99ec26988ca34c1a2a87e06748afb6901"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/opaque_types/table.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3221535467fbfff9ce0e48bc421e7ff585f39b346f17ae84cd324616f9a8bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/dependencies_provider.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c425215f041164b8c23b8a71ed029ebca8407c31b158977ece07497e450d5f4b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xtask/src/publish.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"669ac3c380fcc7e7c2900b6310c69acbf6692cc4ca4281c64ab9f57d9bc2eae8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-ssr/src/nester.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f51f23666825cca2f1c73a0f428597dd6e574c3c9cd9fab76a51c03759d681"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/parser/test_data/parser/ok/0035_weird_exprs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e674ab67ec5716deb9c1e9759e9947788fe92938b3c673380bb5be97e619b76b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/higher_ranked.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95da023d662c73e59f19afc8f1cf312e404bfc0cdf071a692509f9b5307e1aa1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/parse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a5123595866e9c505e95f180d3956ace45dbb9348c48083a0c7397bc804473"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/unwrap_type_to_generic_arg.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4302df020f6b2e02433030d618e43cb44730c90abe74b1e29d86366926480238"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide/src/child_modules.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"464859e4578ff8f433c47e7449b2155b85107a4b089f3fad65a0a003232e0b33"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/convert_char_literal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b003c40683a1517bda4a3c0615a8c269b24fcd131475a2e23b0a5518df19b48c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/syntax/src/syntax_node.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d902e4c5931f03604fb4dc2c7b5ba9bdeba4efae7760b92e412c357ff0f40ad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/tracing/json.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de37ae07e5419d12b5b7e852a23a21fd3a9d8fcf3d8dce1fa21af3fbaf4030e1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: mutability.rs \u2192 expr_store.rs, pretty.rs, expr.rs: \u0060crates/hir-ty/src/infer/mutability.rs\u0060 changes together with 3 other files \u2014 \u0060crates/hir-def/src/expr_store.rs\u0060, \u0060crates/hir-def/src/expr_store/pretty.rs\u0060, \u0060crates/hir-ide/src/diagnostics/expr.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/mutability.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9515b4e8236364a088ce63fc1bc382f84ec1089358ae073f8ffda324feafdfe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: rust_analyzer_span.rs \u2194 token_id.rs: \u0060crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs\u0060 and \u0060crates/proc-macro-srv/src/server_impl/token_id.rs\u0060 change together 83% of the time (20 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 20 shared commits counted here, the most recent 3 are \u0060250f6fca\u0060 Remove experimental \u0060--env-set\u0060 option; \u00606d2fbc00\u0060 Cleanup bidirection proc-macro-srv protocol a bit; \u006035aec104\u0060 reduce the amount of panics in \u0060{TokenStream, Literal}::from_str\u0060 calls \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-srv/src/server_impl/rust_analyzer_span.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"650faed7562a14cd8d0344faa8eccf71310f0cf901698617fb55fba5d44ae7e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: lower.rs \u2194 pretty.rs: \u0060crates/hir-def/src/item_tree/lower.rs\u0060 and \u0060crates/hir-def/src/item_tree/pretty.rs\u0060 change together 74% of the time (14 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u00600c8f6494\u0060 Do not declare the value NS constructor for structs/enum variants if \u2026; \u0060d59f559d\u0060 Optimize memory usage of the item tree; \u0060439c0952\u0060 Reduce \u0060impl_signature\u0060 query dependencies in method resolution \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/item_tree/lower.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc78670b7e7c193579b55f17e412c0223560138e0f258c2115c997a67f75a25b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: test_db.rs \u2194 lib.rs: \u0060crates/hir-ide/src/test_db.rs\u0060 and \u0060crates/ide-db/src/lib.rs\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006057632bea\u0060 move \u0060DefDatabase::expand_proc_attr_macros\u0060 out of the query group (at that commit the file was still \u0060crates/hir-ty/src/test_db.rs\u0060); \u0060273abbb6\u0060 internal: Improve panic message when FileSourceRootInput is missing (at that commit the file was still \u0060crates/hir-ty/src/test_db.rs\u0060); \u0060b8d2768f\u0060 Provide access to \u0060RootDatabase\u0060\u0027s \u0060LineIndex\u0060 for the proc macro pro\u2026 (at that commit the file was still \u0060crates/hir-ty/src/test_db.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ide/src/test_db.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca46d9085626ee2df440f9ea6e22e364f1e627183d6b62c9ee3f73283bddc065"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: expander.rs \u2194 collector.rs: \u0060crates/hir-def/src/expr_store/expander.rs\u0060 and \u0060crates/hir-def/src/nameres/collector.rs\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00609fb66968\u0060 Stop at eager macro recursion overflow; \u0060ddbe6aca\u0060 Store the macro depth inside \u0060MacroCallId\u0060; \u006020f6d47a\u0060 Optimised the depth calculation to be cached instead of calculating O\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/expander.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac92e35f734548ddc556e099e2fe6aeed0e94ec7711510df341652e9d6e1546"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: lower.rs \u2194 scope.rs: \u0060crates/hir-def/src/expr_store/lower.rs\u0060 and \u0060crates/hir-def/src/expr_store/scope.rs\u0060 change together 55% of the time (12 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00609d3d1f9e\u0060 fix: Don\u0027t support const blocks in patterns; \u006036ac7e21\u0060 merge \u0060hir_def::hir::Expr::Unsafe\u0060 into \u0060Expr::Block\u0060; \u006088887b09\u0060 Fix handling of params of coroutine fns \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09df18120d1c3f5b593588a16523abfee25210ece6a328909f062ec09dbf8e4b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod_path.rs \u2194 symbols.rs: \u0060crates/hir-expand/src/mod_path.rs\u0060 and \u0060crates/intern/src/symbol/symbols.rs\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c7662ba9\u0060 fix; \u006075b41dc5\u0060 feat: Implement support for \u0060feature(new_range)\u0060; \u006072a6823f\u0060 rust-analyzer: Also use \u0060semiopaque\u0060 instead of \u0060semitransparent\u0060 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/mod_path.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f4eb511c086481c33535cf46c430f0c5164dccdbb7ce49055411f6728a22f0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: expr.rs \u2194 keyword.rs: \u0060crates/ide-completion/src/completions/expr.rs\u0060 and \u0060crates/ide-completion/src/completions/keyword.rs\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00601e3d049c\u0060 feat: complete \u0027let\u0027 \u0027letm\u0027 in arm expr and closure expr; \u006056114fc3\u0060 Add allow \u0060else\u0060 keyword completion in LetStmt; \u006057044318\u0060 Add if..else completions in LetStmt and ArgList \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-completion/src/completions/expr.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5745208af6ed0dff0e7599c484f2d1d913681a991dec241bf903dd16e6587e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: expander.rs \u2194 assoc.rs: \u0060crates/hir-def/src/expr_store/expander.rs\u0060 and \u0060crates/hir-def/src/nameres/assoc.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00609fb66968\u0060 Stop at eager macro recursion overflow; \u0060ddbe6aca\u0060 Store the macro depth inside \u0060MacroCallId\u0060; \u0060b361c979\u0060 migrate \u0060DefDatabase::macro_def\u0060 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/expander.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"176ebb889f72692f43a4b4b0b8590ca62e93fccc1dea2cb8d11d8eca84871396"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: lower.rs \u2194 tests.rs: \u0060crates/hir-def/src/expr_store/lower.rs\u0060 and \u0060crates/hir-def/src/expr_store/tests.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00609a5a11fb\u0060 fix: Fix \u0060format_args\u0060 lowering using wrong integer suffix; \u0060419231c7\u0060 Remove fixme and add a missing test attribute; \u00608956b1e1\u0060 Lower ast::Ident to hir::Path when lowering RangePats \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/expr_store/lower.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2584c4b956d02f81f59221aab734aceb26c27bca3cb3260a14f2765f7c4e27a"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ed847c4b94f6b16430b22cea47395a81a125beeaa3af4082d993cced53d4a84"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1baa7bcb2bcbf653ae0f0409f3251520b273308751da3fb332ceab488cc75a2b"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a263cb72d4e2ac4f942da4ae3e73734130a20ea0a64bc332a4637b91fe4bf362"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7287f494b7ee1fc1c1ecba6ab7d7c7dd95bfa936ab969a9c5b86aceed9c46a84"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31b765fbc6af294f319a6b463f2fc7d8aaf3491123792ae7e3531e213250d727"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60ce4e19a2ebd8b2937d3580330e8b9d7aea33fea0a82e8c26ea7f2f0a52cf32"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa704d87d3a54ee8f9602e897f9959cae44793f66341b12c09c3d47ac909e9ee"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060hir.diagnostics\u0060 is marked as implementation by its own namespace, folder or name: \u0060IncoherentImpl\u0060 (crates/hir/src/diagnostics.rs:523, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/diagnostics.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c5cb14c22e089ad0d7a4c757ec9b4d6c0de4d650748ee855f580bcb6684bd6"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060hir.semantics\u0060 is marked as implementation by its own namespace, folder or name: \u0060SemanticsImpl\u0060 (crates/hir/src/semantics.rs:171, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e95d9761317b3aeb9b8998b162ea9d59a334a723bab3af1251e34a19240748"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 24/31 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060crates/mbe\u0060, \u0060crates/proc-macro-srv-cli\u0060, \u0060crates/syntax-bridge\u0060, \u0060crates/test-utils\u0060, \u0060lib/expect-test/xtask\u0060 and 2 more."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060.github/actions/github-release/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/actions/github-release/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c241a023e14f517589aac6fe7fc3fe7e24ad5eeadd4a8282b4c0e2d2425417d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): editors/code/src/commands.ts:210 \u00B7 editors/code/src/commands.ts:247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbfad7f9b4f2d7bf5efffcacc63373dd232c296609bc52c74ebfbec39eeef63"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): editors/code/src/commands.ts:722 \u00B7 editors/code/src/commands.ts:786 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a540af7b862feb04cff62c2f4c239ae3945b6ee219b8aa9bda2b211887dbe197"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): editors/code/src/commands.ts:622 \u00B7 editors/code/src/commands.ts:727 \u00B7 editors/code/src/commands.ts:791 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdb9495161cecf75db9f57330ae1772f0b7ee856acefdc66d5d1d2e8e15d6c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): editors/code/src/commands.ts:648 \u00B7 editors/code/src/commands.ts:817 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"42074785ddd907e095d244e5fdaf8d1842c56565a08b9c19bd9beba4907d837d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): editors/code/src/commands.ts:1015 \u00B7 editors/code/src/commands.ts:1050 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ecbb25a5cb64cc88cf1370fd89c3c51ba95683a554ce78b515f29ca2779d11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): editors/code/src/commands.ts:1041 \u00B7 editors/code/src/commands.ts:1066 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cc9bc971baa743e6bd54787983780c6b6f010d4cb4d5aa0fd5e7d5c826118e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): editors/code/src/commands.ts:102 \u00B7 editors/code/src/commands.ts:279 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e1b9dd74fc9d8241b2c4796c9d22d78ffbba3a8eb160404a4b0ef5f0b2c369"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): editors/code/src/bootstrap.ts:203 \u00B7 editors/code/src/ctx.ts:223 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/bootstrap.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb32fd4c4f7cef7db30a5fc2b2f8dd5bacd7470dc030e17bad5fc529eea25af7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): editors/code/src/commands.ts:55 \u00B7 editors/code/src/commands.ts:770 \u00B7 editors/code/src/commands.ts:836 \u00B7 editors/code/src/commands.ts:949 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b40b2107a47a5230aed143150f528da26106b5bd3b1aae23260b13a6201de40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): editors/code/src/commands.ts:767 \u00B7 editors/code/src/commands.ts:833 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2258e92be3e186dd749066c9c436442382e42a149bf537b02741a11202d7be"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: editors/code/src/client.ts:5 imports vscode-languageclient/lib/common/utils/is, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3e1092c787fb359a353025072a9c1ce64e11eadf3d051a03fd8344257c1d3f"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: editors/code/src/config.ts:1 imports vscode-languageclient/lib/common/utils/is, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce266cf4ed4de08d9dfcfd657afa184480d4598eb84d633b619a7cd6c8253b8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getDebugConfiguration (cyclomatic 20, cognitive 28): getDebugConfiguration has cyclomatic complexity 20 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/debug.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a5351a57c0148b117967e1d94cb36e70447997c0a07226dea21a2ebb249962"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toggleCheckOnSave (cyclomatic 16, cognitive 15): toggleCheckOnSave has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4988b2d3495849d6d9e1f39d6b68e221b3e1af07653e062f1e7816cdaed5330"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getServer (cyclomatic 15, cognitive 25): getServer has cyclomatic complexity 15 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/bootstrap.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee11c700dd7dab03345d6c1c150a2e378eea5413d22205d5ccb82a94acd94f71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 21): (anonymous) has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/client.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17d905b10550d783f34249226381326973c6c6a307c2997eccff2ff82225110"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function substituteVariablesInEnv (cyclomatic 13, cognitive 20): substituteVariablesInEnv has cyclomatic complexity 13 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39f8982136c493961efbb61b693bf00bf298a9d4ac48e9c344ef45a6b54f64e"}},{"ruleId":"R3","level":"warning","message":{"text":"editors/code/src/commands.ts: 1400 lines of code: editors/code/src/commands.ts has 1400 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/commands.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2ed13309c287ec661652778dea27511e90e384adfefc6aff21c8fbdaa7f22e"}},{"ruleId":"R3","level":"warning","message":{"text":"editors/code/src/ctx.ts: 572 lines of code: editors/code/src/ctx.ts has 572 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/ctx.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d11ac8b53373c73088451fd49820571e95dae01bb5bb4fc688bd7e0ccdb5a9"}},{"ruleId":"R3","level":"warning","message":{"text":"editors/code/src/config.ts: 546 lines of code: editors/code/src/config.ts has 546 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a70455accb485ef697a5e3744e45cc418ee9d2a9b0a16f824951b7caeec176"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027fetchDependencyGraph\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/lsp_ext.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7699eb2c1399b92dc37e210461eee89fd9863f114e376ca1157e47fdeb58be1a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027unwrapNullable\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/util.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0578c0b5ba3c007f1fa748ef3b0f31c12eabac90c15322d47ae4acd7e0e30d12"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027tslib\u0027: Declared in editors/code/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d8a3d0faa47fd18b071ac2ea263bb7395790d201b593acc4743b98814298e27d"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): editors/code/src/debug.ts \u2192 editors/code/src/run.ts \u2192 editors/code/src/debug.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"editors/code/src/debug.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9676467ae9276129f7c87654da3c18ccb4664bdca1a6a2bacf68e41f86a408f5"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: .github/actions/github-release/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/actions/github-release/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4ab2130e7bf9514393194810f825d1c3ee32604a58907b3545879d3489a15f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060char_range.len() == 1 \u0026\u0026 char_range.start == prev_end\u0060 appears character-identically in 2 files \u2014 crates/hir-expand/src/attrs.rs, crates/syntax/src/ast/token_ext.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-expand/src/attrs.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c999313d21d5c936d0c961bffece6c8b27586a03be58a9ab02cc2ea1254bde1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060func.syntax().descendants().find_map(ast::MacroCall::cast) \u0026\u0026 m.syntax().text() == \u0022todo!()\u0022\u0060 appears character-identically in 2 files \u2014 crates/ide-assists/src/handlers/add_missing_impl_members.rs, crates/ide-assists/src/handlers/replace_derive_with_manual_impl.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/handlers/add_missing_impl_members.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b068c130b56a43a62756a50dff894675c491f81e81805252dd17d5513100489a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.is_none() \u0026\u0026 autoderef.next().is_some()\u0060 appears character-identically in 2 files \u2014 crates/hir-ty/src/infer/callee.rs, crates/hir-ty/src/infer/place_op.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9874ad7de140e32472015a9473bcb1bd28f9da42ad0190a0d0a22d1174dd46"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 372 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/vfs-notify/src/lib.rs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d696b6241bd86660e9d2142355b881ac1b1987e846e1346c0e0abc956899828c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 43 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/tempfile.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3e80c1a60c232f30f36332b3dfa1588a9a70af93849ad3e8d6f47dc60da794"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 67 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/stdx/src/tempfile.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5118bb601d0aeae9f64fef6febeb5857229cebdcf557c28ffbe330272012c893"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1216 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"97817cb67220df86bdd41df5bbc6d19b11c27e0e5acc0a0da201cbe05c19709c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1240 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4836431183f44d51f2a3202ce6d850d848e81f306c14c5d1f73644fbf50c00bb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1318 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88a5c1b3256053cdd1f85066abbc53cefb27409573ecb27c3e734eca23adff1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1360 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39f1bd7278c162d1164cfa4691fdeb4e50e7084c22d7230c1b3e77112af29dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 1807 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"318b11f1f437eb0d28c0af672498558bbce9e5a2514c5346685b8ec7e6905086"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1809 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbd8b280512dcd0709cd1c99f7a8d72b409d3b045692b66cf8e5b0b57c6fef2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 2302 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":2302}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd9b57081fa02a6bf02ac771f40c8625a51737b5dbe3906be92fe8d95910104"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 3665 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":3665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce4aca6c454c98e08f61ba98d89bd7816a48a9fa4a2de3289a185f99c15f65b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 3694 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/config.rs"},"region":{"startLine":3694}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d1c34e2c8b34038a4000fc955e0a35402159b936fb4300b77faef64cb78d7e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 692 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/flycheck.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4bb48b1e74693697893b12baaaf8dc6ebb02fb6180e071ce966026c523df08"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 511 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/global_state.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59c7dcf802f4c8273f570a5bf63dcbd6971c824633d008896aa5c74aaa65690"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 42 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d1e63be900dd2cf524ade78091e506d288d922aa46be14998705d02b2700e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 633 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1129d555c494e1507ee30663172cac70227678763b7f0f734d4172513f2f7110"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 691 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26f415f60c788519662e06e8e37d2e5d2c78e391284bbd7402f5b0c03bc9835"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 787 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f534dcf4d05081f4013d84152520d0e6ffaf328e1c3b42b115e6b51a06c3aa4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 885 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea72db3cba904591bb99631a148719fada9d48fa646622f7658cc4dc580f48f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 941 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46960d4f370cfb27bd9327139a778d690e4ff1339ba5255a5b1eb71316979f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1238 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/main_loop.rs"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ae55bdac1bf7475e0ac756d8728f2783484b685c40a6894da56b50d519af64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 712 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b1dd53cbd305424f2d284d0e3bacda44822b6324e5d3813a71ed7f37cdb2e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 721 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/reload.rs"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfb502ad7278eebb5dc30a1ceeb5000b797787f4a30348d0de3c6b66b8cf700"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 42 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/session.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8847b0bb84d54601de906dd5773bb9b6d12ae385d0b46a256cdc08800d0df6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 54 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/session.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6daab3aa7984a00078c87a71904ce840e3695a6be1b5dfce12d99a12c92adc0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 79 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/session.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1587b34cf6be893aa832754713d646a79168bf823c8831492c89ace565668df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 78 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/utils.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"583314c881c2678bfb20852e4847f3f5f141db4385c957743d0284861fa5b40e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 86 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/utils.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"23abb645ed6381b504457783ee863d4064f8ba591d4a905d2ef0389537b43785"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 131 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/lsp/utils.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98d9b7abcda5759d1bbdabd7d91da363f556989684eab58317d1122937e6066"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 226 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/dispatch.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbf9b2cadc7beadc58ac40d490431e13bd440cdde69ee74f9d67d35ef308431"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 440 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/dispatch.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad2f832d10d1fc5f661498e1ab2098a471cb9f2c52c7da52e0948b00782a60f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 77 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f24647b8fb9d1b02945a19df383c4cb81929a0796624dfdeda46fa96191be2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 83 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4280e96588a44400a19872e90930187dd16a93b249aaadaf272402b6d9a217ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 145 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7890342d568f799314082c9668afadc8eb6723d9c0071006750c89038e562d4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 242 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9b5143e43caf41afe3b868be305e7d9bd9a19afdf74c54da97c9c15e4787de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 247 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe42637dfee7e233352eccc49864803a2ddf0dcc9fa3543672f1f8600f1d3556"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 527 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/notification.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"00229877052bba9626326a0c73c8ef0c2290e0928061072e20868aaffd054a1d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 274 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/handlers/request.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba231e51e12dea1791a29a887204a94475254d8b9492ea11112778f88ec398eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 248 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/scip.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af5817cf5e7bd41bbb2255e1bbe5177b305e3b7791ea1a70f0f8ebb5b5c367"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 148 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"108d964d3885b5d15912d06277e2cdb8cc4bd079f67c302525e085ce1746f61a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 165 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab6641a3505351cafb1d8ce25ca9d349f3979422c7b91d0946c7ae440e9c995"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 209 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f93a1d933835620c668049559821c25764dd1e38c20378d648f8dd8c8b7c8e9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 231 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7fadd1952ffe928610dc863cb407c19331e373acbb5602266d45a07904b247"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 241 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5e8f248c90115b3a211ea4c3c9ecca1accb18b82d9cbb16f19836eb352c1ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 272 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"570c064a182faabbfe882ffc807afb8f3bd53fc1d6f6f8dc2e6bf1b69ef75a1c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 320 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8f0000cf21cd21c9bcd5ae4214cf560c6ff3b631d3082fb3cb4fb8c0795275"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 343 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/build_dependencies.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e37e63bcb453a9560cee89255a3bc63bd487bcd130c1e8151f707e460671d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 34 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_config_file.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"583d2786c561b71f9ca2abbc71afa701ce885d2cf8f81f2fd53a486da1f7e97d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 37 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_config_file.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"227a0b8029ef186df457c5addf7ceb693646e131061a6c1dac14b7b990742f6a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 40 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_config_file.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"516f588f3977aefbe9d56b5588de0b1399241899e0b367eef006ae5d3a161874"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 65 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_config_file.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84f7a40177a5b491b38ca766002c4e07fce057b49f4474b3e2cbd189ea87753"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 366 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"6340be762aeed0b5312d44032233fdef634c74e01ed341299d4e414faf950b80"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 790 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/cargo_workspace.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dccdd0bab966e7814b6e285e7ac3d95a3e2a5c74f918c3a7e1377f078d9c6de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 150 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/project_json.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8316458e3002aedc6802fb4fd7f399dc918795036fbde8a7e37d1dc7dc04e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 272 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41d5d86d7dd52f3b03baab66fe86a068299d7c8905e9078c24a72ad7916572e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 276 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dbd0c12bc1617e591b7143567e61a6ad96d4c54c19e2c8c3c6c599c4daaed1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 367 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"a123534c3f76cf46b9fdfecd80263a7de461e6172a6e2fa4c3d49c9f8e9aba3a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 396 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85d1b2106e1c97cc78b4fdd47d85ceb6db49ac41a13c4936eda87fb8ef705ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 445 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e205ca33866c184a52b1a06d3aa38fb8c9b360d51099fb185a361c2bdadad9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 455 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"85786a3ffe1ea075e53ae3b0f18bd34b5051d5e89343392f0eaaf7ffdb14a950"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 458 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"f779128014c408821abe1b317a4cae05c846899098be12ce28fe230ba8b57d7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 476 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00a6f6ee52dace2c9f9c16bbe54b9dddffaf7746989c05c06d1549d41e0399e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 495 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f03bef8bab88d22d450632639a367ed2dc92f4a4878ef04cd71489c4493f833"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 501 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/sysroot.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da3de439cad2375d60d7da60b8803da5e152318dc907d65fad492342a16fdef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 283 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"787cf44af62809e44bdd70c5664b951842be8a51820db1d7158a7fec3f2f54c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 328 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bc1f938353ffb045968cc6c74cf2e71482ceb1f9e3a7edc2d1d3d86f87e7f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 383 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d43e5a80a82ed81b5e89d82a2678fc02424e2dc35c1071558656add96b3d78"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1508 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcde3fa217a80b51ca7f3545948e1b83f3fad65e0fe7ffe633c8f6309b949f7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1965 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/workspace.rs"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e28d99fc762032be298312529fb5fcc2794f9a0055e30cb7a8bcef913beb55"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 78 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/toolchain_info/rustc_cfg.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f84ef564203d47cab4d125724f045d89b0a5f6731931ab1d00778f64cf9aeff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 64 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/toolchain_info/target_data.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6afd16cf78e804da440da0b0ec2e332a3d73815bfd047920140a3f5b421ef6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 59 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/toolchain_info/target_tuple.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d9b6949af829fa7038926080d987ffb84845afd48f2b7a6a288f6468e0d08c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 28 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/project-model/src/toolchain_info/version.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"444497c7da0c885b082addb17bdce9758dfdf1a12f89d8d7c196b9c3de81b00c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 185 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/process.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5d4f0d5cac655d6be250eb74e11a522ff50474d7364118d71523d68c0e4a10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 196 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/process.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"865920fd2d8fc5a17ece80a373a04628cc3dc35e83dc0f95c2b27d5214f73ae9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 23 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/transport/json.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f8a12bd91fe17555c4cc0a1a70e904b628925508750a78e4c393139cf7894d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 32 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/transport/json.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"98aed435072d19815333484db2fd225592e43e2c70c6ccc058ed1852c810e7ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 69 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d81bc2598796fbfc91c70cfe677951537357441996ed770ecc023ac5b6cb53c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 501 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5e8d11c4472660e60616178cc3e8beb0ac031ac70b382964100de851df3611"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 508 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/load-cargo/src/lib.rs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ae45a5f422eff0a48322114463505b3d5f0512054b619c0f19bd0c2b444a35"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 16 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/apply_change.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad4ea4eacbe43846dae2dd3029403575734c37e13bb60c92e3b028631a5f035"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 666 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a091fa2de4cdeed97bcac5922d43bb389b39f59e23c3650d19e60ab96a55e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 717 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-db/src/search.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3a64367a2a1db1a9771dc38fd36f9b353b0fa4455e506cc4759fce08442092"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 176 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/autoderef.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"126456cbc9393ff37b7c6feffae3e8da867d28b95deb32f20e412391d5456562"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 179 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/autoderef.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7242017b009d062367bef4b3536b1b168cbcc9ae60d90f585c99eea3c571d83e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 219 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/autoderef.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a72f5c6b47399774e411f76241d41a358df25a534c788b2959942673e11dd04"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 339 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/autoderef.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"1493635a9cc6b0633c2eee6d7d3a6cf6ebbc1fd3fc1a24f5a6c2c725df101278"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 363 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/autoderef.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0b50287fbc0fdd9a8ca808da6b1bd36a57db31e12545c3110d01a158a30646"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1157 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/lower.rs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"add85c0523cea851e2c50ba4f6adc99869b4c7204b128f953daac958c15b1aac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 154 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1933dd9899943e56925a2da5b3b4b691d0c9db84e1467d41967ad31ade7229d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 289 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714fb5edffda5d6bedb2313bac0166bb78b561b046824da21f2faea83c272d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 327 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f2dda60c8cabc88dfe1996050572f548aacc7ad9def0d5483d2782fc40004b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 341 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5278911ef947258368aef4c4c21e2ddb142e032e2394b00431791fc6406ef4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 81 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/specialization.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faf7d19def072dee81c9e7112ad30e2b1c0a532ab38c4304fbfb7c2c9fd8171"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 117 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/specialization.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa0d8ae3e8609b6c225427a811d27f5c571d439dc11c79c712c498796f56179"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 127 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/specialization.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5692332d2d091fa08fd130b47114ac9036b548365797bcbfc5a50b1a7f26d2e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 43 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af9bf64a2fe9be39d8a717c3884562251d357ada0d6127403865f17d7ded937"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 123 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0a08fd11edd6343d181f9e7f004967cadf83eaf1c87717be743852710b19fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 177 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"60324f1eeb03b701fd0090f497e7ff16b83511bf8d0ead23708cc9f7cc0bfad5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 347 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbed185bb9f5c3202de84318ae557be240995ad2bf0e7a895ac8838c212ca966"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 390 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/variance.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f84698d545d15d51cf2b7551d9aaca7c385874f28cea056dc9d1f963cae50bb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1167 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/mod.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a77f86f12bfe869869d6f15727c85d0f5d51ea04fa8b9a720e74d179e8d227"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 183 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/type_variable.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0057cddf020b32de97ddcd524a90fb07923e12cadd770321fda849d59b485b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 89 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/snapshot/mod.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a524bf3fa7b37ef10dae6db9f83c6f36e48f7d21ed8c1ba62db55fcb6f5c5865"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 134 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/snapshot/undo_log.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60c5ed8239c2dcf6e37ddd67df70b36ca32e554118211446d2ac456ef3465a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 154 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/snapshot/undo_log.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f3fa53c00a31916a756b3f0b24305e6ce38c8543068f06d979c90f3e9c12de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 375 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35ce8bf1fc47d4fe36494fa788afd4e342f17a67a9201fca61e58e4f3883e55"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 514 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7992d0854c5e64af304f14319c2cbfd02729f28d2fc9f3902926e9b26bdb73fb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 532 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebe7b0448395eed7baf3483e947fea1d441c878eba28d83560ac101b914da3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 659 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/relate/generalize.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4208e821e0b1f93d2165159cef61be90c7b54b7669f79f0e64570a71c496776b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 379 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"7613404db3c76e13b2b03c24b7963b2c7cab6f2d0e1c3dc3df22f0795f04ac0b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 390 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c9e92eebe56bbf604f8fce60aa54971f092854619258733e41078e1cc36b8b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 396 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f6d520620cea65abf97dc87b781a9bb467fc6835fabd447c5ec215ee75ab02"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 412 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f1ed2f0dc16777c51b345ed5bbca9eff187572c8b957ed072a6e2176905135"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 418 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08ac22ea8e332ca87243726e74a8cfb76a72a7907e9463dc3917d8a7eb683bb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 428 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d897d180b07de5ad7ec3253a3870351f2ad260f3f2a1423865b79bcccc95d3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 476 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"45932071475af50ac3b2240f269748454df6f0e42a221eb86f3c101319979f17"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 495 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"6daf4a6acf2cd98b60f9d0c8307c4c9db171367add40f3f92e706dcef099b7e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 562 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/region_constraints/mod.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a337b027592aee2a1011f42ec078ad51ecbeda51f860e43d06df2f3982de24d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 174 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6af58f4f70255163c194977b0d1b91b7cbceb3a9c0ede3f1b2a414b8a1080e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 340 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86afe6e0d92f3e82ad41627e6cd428f579bde379ebbf5b6472fa8df9e7ca7dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 344 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8eba41df54f70b24bcc918d17f568273cfe86699fdadc2193c5ad5f6d00ced"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 444 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"994e69d1dc9cd12d1afa9b191c7223612318cd112503ea8e0c748e143a2b50e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 447 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/canonicalizer.rs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"425d9aabf45237acf6a93f2aacc98698605b1c6b089f82789c0d5505177d1aea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 286 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/infer/canonical/instantiate.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7a02ba85faee5c759e7ed37eea3087d4fecf1adc9acdcca20e625a0a6cf0a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 60 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30ccd3db17c47d321c986703ddecf2ac32fc662ed49d841cb189f9a1a49ce30"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 110 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cdf29fb893dc7cb5f2b2005bcf9f9bb1728266d83f5d7129fb142f23c74c03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 151 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"270f146b858a80efd6051f353cf6252a40dfd26f44aa6cfae8eb863e42100e3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 288 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a620ced3eb3203f387c59453cc6f3e6aa29b25dc25b21bbed28480b4e52c7fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 486 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7bc5dfedc814a79f1603a8ad1c2293f276271cde63a6a137d5672f56167c2c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 511 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a6221a76599ecad2bab837888cec4ccda9008e244a9591f1302bbbab3a66a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 530 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"622b1ad44eee17374853ec2738154786df900f1e05c8b3365071dd50b472d676"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 533 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f24e95b281a9d54b5157991c5b5b1f1d1ecab39300d0cd8fdc1bc356ef88401"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 544 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/confirm.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce3b800df87407bfa5a4b996a08e67f00a43f1f628f2d68e4e7fd325bbd0576"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 361 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb31950755c48dbd30379ebb571bc43966586aea0a74e2fe0c71314b924fc747"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 379 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4519b5c5a27aa52848364def1ef7e33282107d805252c70755754f4224715b8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 513 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54f9933234ce538ffd49e7e234002ee018eeb879799acdb0aa263883a8f2658"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1103 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"555160f730c21763294b37a5391c374e72611e323b3f84e7e72ec88c59826c71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1267 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d894c466dedb46fbd2bcc699cbcead33142831bd8f339e7210bbfce645d5e5f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1464 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb7c7393b13b4c94775f4f0552223ba37536e58cc487b89d264b97e53920184"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1469 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8a81ecd8fa120fb8efdd2a5c7470169b368a63f539a86354c037bceffa8c57"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1503 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b9db2d5bfe35b872ccdda7ca56a4a254b525038502e90a07daa55adb50e133"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1614 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a9f41a9ae421c411cffe07a28e3e94231dd2249cdea93175376b28214e56e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1678 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dce78c6998395715ba29c4e6bca7eaffd3830755834594a87857a0d79cb7f5a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1717 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9977e2b127b7cc3f6be7cc89514cff8bf2c5d3733575f808473faf15e9d80702"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1722 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ed63658c12fcaec3242760cf40dba38d1bc38fd445d14921981fc81282f634"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1737 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/method_resolution/probe.rs"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ec8250192249a91e6b4f6fa143ed09bed6785e81fdfb10c8c0fef7c639af02"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 545 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b915fd51052e7528fb11f72071adfbaffeeefdfda0e11a0502669238631c7ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 564 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/callee.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"42455e3b0fe66befca2ea41f365a14a74211692459ac4f15e9539cf48196db9e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1092 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6a3404e0cc34fb8d43eb10b4877445457904f201a5e1124cf9be444e7cf4c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1123 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da909ec282ee3f94c31ddcac310aaabd2c4bca6bf3311e709539626590ad39b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1158 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9dc37ee7b60bb1415354e6f2fe5ad1acde735d0d9dcc8db51108fb157cec9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 160 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7dda40b8aa0cfb239b59c63748049ec47459b4ddee5833e3ebca66b534cef0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 223 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1231eb65e5e2e9abde2ecada84799180151873c40e988e9791b487507643eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 311 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c2746e375595086583d73884ed528662de22d9305aa0bf4d35d5bc36feb730"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 335 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6e62cb6206458506dad6cc604df81614e2ceef250dc1fa3772976003e2cf06"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 357 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b2a3dd8f8e3d7d2cc6385d57a07e32ab2d6ede8f269ed11d623552a880730c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 497 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04a64c1bdaa78708e619d462f63894866db148ad715cd312d6cb71f4ef00572"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 534 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"210cdd93c2e6d8a64f1fe05e584f91e4a28195953995939e88c3c316bbcfba03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 743 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb29e98cc721a3fa75540108e6d3b564a80efc40296aaf25f33b2fad0bf1a596"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 815 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbd19e6956313af8d07dbaec91f25c8d22644a051469b188f5db5a61c93d429"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 828 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"571cc74d7270f6a4a6e59193a53af0b83724647cb6bbb6850851fce0697b959b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 902 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee392ceaad5ec4cc299298ceae6ac23e138631faf03c70c7c87bb568acf539c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 935 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"9324d84763a95acb56072c7931081eeed57d66de93a652549b7809b893879c42"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1100 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dca3d504e7086f7c4f0a6aa7708323159b16ac1aa729052b40ee467ac4f4ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1119 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/coerce.rs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a70be66c95bb7ee66bed6219bbbce4caa5897170a9101c0f7af4a7467d6bf0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2058 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/expr.rs"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"5211ff85d38627e0656cdb986f70bd0c257853b03006b8f6c14fa846e24be329"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 32 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf098d141501be98024e03bcafa8772f42c0aadbf0cbdcdf510f0dd878f56ae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 40 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"90923b91594070c672b26cfb3cd871fec0c6b14466ae39a113b2f5a6296aee2d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 107 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36e91497681a66b0678ac606b5176eafbadca23e77e1eaee93b727921cf536e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 160 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"18847da91a84ee7fc62ec90f8a31b90493f911659c87c4de35a3b356517f54b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 238 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3342094070b85061ac90eeaad206a9e0488628013ff48007ff4c320db6c2c8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 262 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"555d2e19871270b761c9625c332c224443b3e152d17078aaa2c64afef10fa69b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 266 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"68adfed70806943e33f2ac55dd060ee9086b1bca3df16adcbdd3e3585627f615"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 277 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff049ab51e74b2e6007ed4ff6c714b30502708608a84e8c001406c918471687"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 294 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d11e97a29c34649c51a76576e65cd083e402fe43b0da1991cd8347440c171fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 312 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c362d8a09ef6b95972dced63e3604232762c0fafbf609ea7557ee8c12aa4b87"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 317 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3a5e497b20d09958d0875e7695baa61163fb6cf1fb8309ef70f82ee8a50ac2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 338 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"895a2249642e23032bfe5b4e9d7a550a05eeda12b1718b3bf93d69df538528cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 373 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed7c32628ec633028406b6e2c7ed96c78b6a34cc91b9eb5851a37f22ecdfd10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 376 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4fca244840b9c3dc0f8e5768642bd902a9c3f8653b1c61d968c4fd356c151a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 381 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c429ffb64a4184f683c7db9c129e185cd90d488f339a72c3e4170b99d0b8f8f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 398 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/fallback.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d92fecf0fe94e6adffa22e5d88af090857f9e89f110406f59bd2b0dda6b1700"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 59 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b78d5fa94f52134fee1304a807f2ddfcb02b47fb46147bb93907d948b4f804"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 165 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d731560b1beafa90c57136a40020f3349021396a0efb9c0df4519764b74136d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 296 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/op.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f71c10a3a3e0b396430297849ed304fc79c52ba1b853608500a2c8fdf656b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 410 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"32424d87b24de13d732522b23289287a4ef551f80179a0792bf637c89bccae1a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 432 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c3ad35d7d909ddbc4cc9b4a6b12f4cf50313e1c0622f67d4944cd4e07a9f7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 562 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"196cae31e13cd1cb1994406f86357e8dd504b8c87b0b9295f8d594f2e713076a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 921 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e66d09e715bfb9632abd45c497607b430783cb2abe759c26f0805ee2b1bb41"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1491 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"8beb7fc05086d6be900a692c434295d0255d787607fd656efef6148fbdfba462"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1506 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/pat.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0d02b1b59c68275879c32bdcd9d9e76c6b5ddb18191c5a9bd1463d431164d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 115 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"385303abc8d0275578b0af36127754536108476464d49f8583c9467dcba413bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 195 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"be543ddc643cfab3ac47bf4a10e9f1d534b4696d173aaa657da13ac1dc37240c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 225 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"be314b369a8532e9b3fa408f302ab52b90efbbaeec27aa6e44c320b326ab407d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 258 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bd7a6217bafb317141bbfcb8703562b798531161e274fae1847279a684c507"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 295 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71a71eb9712502705e0123aad4dbfbc4ad69b6a11cf2afe00a818850b4c4344"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 312 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/place_op.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1f7be9f85342aa5009f62084be6d059e504e020f99851e62de88935dbb848b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 359 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e51216fabdff716077763bf57ec8de3a1f5a146477f28fc6c7a26b99c6f28f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 381 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"73df13beed3b876099ee12bb3e84b964478fa7d11f74dd17aa26775482ba4643"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 863 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d103693b3c7a25aa303a057c489829979329ac5ec1dd83d93ecc1cc8351601"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 918 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"585f86eeecbc48b9bb53e4706272c2481cc8a15f62135389ce74bb2c1617f037"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 432 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"88578574ad23dc448bc516b4aba9bcd967b5fcabb5def8e69cd216e8ea1aa9d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 806 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5738991f83b333d92a46d5cb1777aee15f91df69191c5b5cc528d770f2e271d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 839 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"533986420405d5b9f26a6db71fe58fa22e102f7385b7ef5516a35a282ebf50d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 847 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f71b2ad2d3cb0fa2fed20fa2c6abc3b662e52bc687f972e9bed73b1e75798"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 900 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"f587bcf5467104fb68ca613ba062c75dd187e3512a5fe0361027f37b1a3f4dd8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 906 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"a556cbd01a6110d3e928d84a0e9e06255b982a528c942767a55fe210351a9647"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 916 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb00d206c54fc31c0e7e4901bab95d72c1d4fd71fc50f2573801e314b37a28e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 918 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2577a455e7417ecb42d834ed95cf2878f96bab190c14ba741e2dcbf0cabd54"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 922 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ba4d5f1e335da52174f38e0a47e67cd08ed4fabd847042907f2ff039d24e21"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1199 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9199dfd788e5cb69cf909d4801dd6f8726e256d5b576fe4e998c28631d2766a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1233 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed1cd651eb5075cfba5ff8e57d60c0871a8d4b90712e1f81e15e5e137f38761"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1459 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56acfeecd59f2388d23b4e62f7fceed7681207d1dde08c791eac571600cbea8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1540 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d48f55595747d0228005ce3bb97fb1d81404423ae74397d47130c27b9e75c4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1559 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1c7c1cb5a3a0fff6a0a269266d3f97c836bcf67f5202e28b3d98fea19d09b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1662 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/infer/closure/analysis/expr_use_visitor.rs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6ba789d1ce3ddc1e4f991ff000cfe0e7287f73c57fed303f6f11d7b69d6fcb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 379 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/attrs.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"25993dce46883ff3c12857f7e208abb01558e72cb5cca2f8f4d95fd8f0e7dcc7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 357 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/find_path.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c416b5267a2844d658f28bb2e7c116901e2e76ce861a1b8fc09acedbad628e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060trace!\u0060 at line 165 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060trace!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/lang_item.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a26848b18a66135909b4594258dbfbe6a280d1417a678327924da5ed0eaff4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 76 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf511611f1c297d67f6dfbec4777beee0a669b8784f7c8a159aefa47a238016"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 590 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"1427072f50275b723158c11d209fa8b98ddbd0e35aeb8996f54e7c99a0b27429"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 849 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"462cb5d3dc602d9875f72059ab9107e28862802fcd09d0a6e5e752d62db9d28a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 923 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c60750e5af6987e84ad06eafbc19aecec862aca2d7d587028490a61a4e65f5f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 950 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96d973a05be165da17821b927c3893a11a96596279f0c01cc7a4b7eae10c8b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1089 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9816ff2171e1fc8f2d3aabba3c3edae211d3901dc932eacaad4c89b8c2ce033"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1092 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8593793204a104b60cde2c181d6f7df15cb72552ec4838beda5d87d9ce8b4e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1140 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"447a7b53c4f5fc35dda178387742fdc77d2d38b68df846c83541483cfbed276e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2487 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/collector.rs"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5b85fc9b21db95e1b5dbd34b4ade469bfcd1be3c19939f9ed67afd724ccc09"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 134 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c69015b685751e9f4434cda3c27bea33f73438c10b2fe9ea90cf3b17cfda77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 277 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4be750da5d534d4ce41d00af22d19a88f44259816446dbb09f8e5d885e0a250"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 299 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8134effc89ea5896f0a8a0301a1e4a805ca5060b831eb5f774bd1a4ea81564e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 392 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11220a0bbd26318094f6bad2ac4e6d663bfe7f00a983a5b1c4fdf3ad7016472"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 400 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c18bec87161a296e6ae609e9a785011643dd6d8a52286ee0201f51b4027b03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 437 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4533b01e56ed270c91d7093d907278e3869b04e86d7555e0d1bbdb73da18aa2d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 480 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"228a79ead1cf0a62834cc896b17e37cb6fc6fb28be7541ef74d8a921dd1b4bf2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 596 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-def/src/nameres/path_resolution.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae01314ceb43c0a685a759e061e71f306e19718b0bb83bc2908dead36ce94df"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~1.7 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 12 assertion(s) across the 7054 source line(s) of the 20 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: editors/code/src/dependencies_provider.ts (3), editors/code/src/client.ts (2), editors/code/src/commands.ts (2). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060to_string\u0060 swallows every exception into \u0060return \u0027\u003CSmolStr: missing __0\u003E\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/smol_str/src/gdb_smolstr_printer.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"53569acbc5fef2ead60d666b75b5ef65df5ffa1580cd882ee58b2e8cc46c6045"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060params\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3050}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d149fdc98ef3d78570df046a486042a02bc0be44c0311ac8425f4b0edc0f639"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060lifetime_params\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0da96dccd903e8a67f109b39610e229a339914969db58f1ef403bce2238f7fc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060type_or_const_params\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/lib.rs"},"region":{"startLine":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"b765c6f7552aa25663ca781b5bc44e95b2ddcc203994eb814f43701ab07ef237"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060get_unsafe_ops\u0060 turns every \u0060Err\u0060 into \u0060Default::default()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir/src/semantics.rs"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"1046620cbbf088f1ce56952eb97cf0593f3bf8f48d2e7e0d80bacf7ba1b5f323"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060opaque_types_defined_by\u0060 turns every \u0060Err\u0060 into \u0060SolverDefIds::default()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce536856a7d9a6e71b98c65e13cff72618963366f6fcdef3894d48923c905575"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060opaque_types_and_coroutines_defined_by\u0060 turns every \u0060Err\u0060 into \u0060SolverDefIds::default()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/hir-ty/src/next_solver/interner.rs"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a691588ca184bbafc0a34180a92d5e3044d3ebb253524e36c115dcc889a8f0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060type_to_string\u0060 turns every \u0060Err\u0060 into \u0060\u0022_\u0022.to_owned()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ide-assists/src/utils.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7dde4f64742c185203709fa6355ecde20ed48eb167b72e74339b0dcc902bb4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060spawn\u0060 turns every \u0060Err\u0060 into \u0060\u0022unknown version\u0022.to_owned()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/proc-macro-api/src/process.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"428efb72ea7485951cd3593998e87ac3fc535b2bc39069ba1a3848c1fbaab8cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060location_csv_expr\u0060 turns every \u0060Err\u0060 into \u0060\u0022synthetic,,\u0022.to_owned()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"b036ae7c2b7cb6c8450c9c4efecdabaf056a5545f7bacd3452d241384806b82d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060location_csv_pat\u0060 turns every \u0060Err\u0060 into \u0060\u0022synthetic,,\u0022.to_owned()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/rust-analyzer/src/cli/analysis_stats.rs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab790cab55cd43bf804d751f9f1f920ab2e150e016112b62788355c89bc7e5d8"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-527","guid":"79b27cde-9d04-1a54-b64b-d5bb9b4a8ee7","name":"CWE-527","shortDescription":{"text":"CWE-527"},"helpUri":"https://cwe.mitre.org/data/definitions/527.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-538","guid":"3baa1f05-df1b-ae58-9ee0-1d790ff4a989","name":"Insertion of Sensitive Information into Externally-Accessible File or Directory","shortDescription":{"text":"Insertion of Sensitive Information into Externally-Accessible File or Directory"},"helpUri":"https://cwe.mitre.org/data/definitions/538.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":40,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}