Public report of bytecodealliance/wasmtime, published 26 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 26 October 2026, 05:40 UTC · Survey ID cd_e4ffb55c223341dab11be49cb6ea33e8
bytecodealliance/wasmtime
Measured 26 October 2026, 05:20 UTC, at code version ffff2e2
No regression since the last survey
A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
No change since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A very large codebase: 536,033 lines of product code in 74 projects, tests not counted · Estimated rebuild effort: about 4.3 person-years · Weakest lens: Security and Compliance, 35
Findings by how serious they are
125 critical2517 serious206 minor
12 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
26 October 2026, 05:20 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
68of 68 dimensions measured by tools.
2760of 2848 findings point to an exact file and line, so you can open each one in the code. The other 88 concern the repository as a whole, such as missing documentation.
68dimensions across 7 lenses, read from 536,033 lines of product code in 74 projects.
bytecodealliance/wasmtime falls short of our standard for production because we found no access checks on the code's endpoints or handlers and it has pipeline tools referenced by a changeable name. It scores 51 out of 100 and is rated Adequate, and 115 of its 125 critical findings are security problems.
Security and Compliance, at 35, is the weakest lens and counts most in the score. The best first step is adding access checks, worth about 12 points. Recording design decisions comes next, worth about 3 points. Raising Security and Compliance to 70 would lift the score to about 63.
Sixty-three pipeline tools are referenced by a changeable name, so the build pipeline can be tampered with. Twenty-three settings leave the servers or containers unsafe, and nine pipeline steps run downloads nobody checks. Pinning each tool to an exact version, correcting the unsafe settings and checking each download against a checksum would close these risks. Passing outside input through environment variables would fix the seven pipeline steps that put outside input straight into a shell command, and limiting each secret to its own step would deal with the six secrets exposed to more of the pipeline than needed. The eight parts of the code nobody has worked on for a long time need someone to learn and document them before anyone changes them.
The product code is 536,033 lines, about €620,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 38 findings
These 38 critical or serious findings were in the previous survey, on 12 October 2026, and are gone from this one.
€210,000 to €1,000,000, for 3,448 to 10,937 hours of work, about 4.3 person-years for 2 to 9 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 51. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Very large: 536,033 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
Raises the score by about 12 points · Medium effort · Access Controls
2
Resolve the 1 No ADRs found finding(s) in ADR Quality.
Raises the score by about 3 points · Low effort · ADR Quality
3
Secure the server's transport: serve TLS itself (`HttpServer::bind_rustls_0_23(addr, config)` in actix-web, `axum_server::bind_rustls(addr, RustlsConfig::from_pem_file(…))`, tonic's `Server::builder().tls_config(ServerTlsConfig::new().identity(…))`, Rocket's `[default.tls]`), or run it behind a TLS-terminating proxy and check `X-Forwarded-Proto`; send `Strict-Transport-Security` once it is HTTPS-only.
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €620,000 to build again, about 4.3 person-years of work. Its weakest lens is Security and Compliance, at 35 (Weak). Security and Compliance is about how well the product is protected, and how it handles personal data. Because the weakest lens counts most in the score, work on Security and Compliance also moves the score most.
Based on: the rebuild estimate · the Security and Compliance grade · how much each lens counts
What to do: Start with the Security and Compliance actions in Top priorities.
If you do one thing first · First action
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do. Of all the actions in this report, it raises the score most for the work it takes: about 12 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 6.8 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 3% to 7% on every change. The history of the code shows how much it changes: about 204,291 lines over the last 90 days, which is about 828,514 lines a year. At that pace, the extra work comes to an estimated 61.7 to 370.3 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
1175 modules, with 5189 dependencies between them. 4 loops run through 402 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 1135 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
cranelift_codegen.context uses cranelift_codegen.machinst, so a change to cranelift_codegen.machinst can break cranelift_codegen.context, while a change to cranelift_codegen.context can't break cranelift_codegen.machinst.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
2→36 cranelift_codegen.context uses cranelift_codegen.ir.functionpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.context uses a type in cranelift_codegen.ir.function.
cranelift_codegen.context uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_codegen.context, while a change to cranelift_codegen.context can't break cranelift_codegen.ir.function.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
3→28 cranelift_codegen.ir.extfunc uses cranelift_codegen.ir.typespart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.ir.extfunc uses a type in cranelift_codegen.ir.types.
cranelift_codegen.ir.extfunc uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_codegen.ir.extfunc, while a change to cranelift_codegen.ir.extfunc can't break cranelift_codegen.ir.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
3→31 cranelift_codegen.ir.extfunc uses cranelift_codegen.ir.entitiespart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.ir.extfunc uses a type in cranelift_codegen.ir.entities.
cranelift_codegen.ir.extfunc uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_codegen.ir.extfunc, while a change to cranelift_codegen.ir.extfunc can't break cranelift_codegen.ir.entities.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
3→33 cranelift_codegen.ir.extfunc uses cranelift_srcgenpart of a loop✕
Connections
5 pairs of types, where a type in cranelift_codegen.ir.extfunc uses a type in cranelift_srcgen.
cranelift_codegen.ir.extfunc uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.ir.extfunc, while a change to cranelift_codegen.ir.extfunc can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
3→36 cranelift_codegen.ir.extfunc uses cranelift_codegen.ir.functionpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.ir.extfunc uses a type in cranelift_codegen.ir.function.
cranelift_codegen.ir.extfunc uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_codegen.ir.extfunc, while a change to cranelift_codegen.ir.extfunc can't break cranelift_codegen.ir.function.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
4→27 cranelift_codegen.machinst.reg uses wasmtime_cli_flagspart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.machinst.reg uses a type in wasmtime_cli_flags.
cranelift_codegen.machinst.reg uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_codegen.machinst.reg, while a change to cranelift_codegen.machinst.reg can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
4→33 cranelift_codegen.machinst.reg uses cranelift_srcgenpart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.machinst.reg uses a type in cranelift_srcgen.
cranelift_codegen.machinst.reg uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.machinst.reg, while a change to cranelift_codegen.machinst.reg can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
4→34 cranelift_codegen.machinst.reg uses cranelift_assembler_x64_meta.dsl.formatpart of a loop✕
Connections
7 pairs of types, where a type in cranelift_codegen.machinst.reg uses a type in cranelift_assembler_x64_meta.dsl.format.
cranelift_codegen.machinst.reg uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break cranelift_codegen.machinst.reg, while a change to cranelift_codegen.machinst.reg can't break cranelift_assembler_x64_meta.dsl.format.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
4→39 cranelift_codegen.machinst.reg uses cranelift_assembler_x64.apipart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst.reg uses a type in cranelift_assembler_x64.api.
cranelift_codegen.machinst.reg uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break cranelift_codegen.machinst.reg, while a change to cranelift_codegen.machinst.reg can't break cranelift_assembler_x64.api.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
5→25 cranelift_filetests.test_unwind.systemv uses wasmtime_wasi.filesystempart of a loop✕
Connections
1 pair of types, where a type in cranelift_filetests.test_unwind.systemv uses a type in wasmtime_wasi.filesystem.
cranelift_filetests.test_unwind.systemv uses wasmtime_wasi.filesystem, so a change to wasmtime_wasi.filesystem can break cranelift_filetests.test_unwind.systemv, while a change to cranelift_filetests.test_unwind.systemv can't break wasmtime_wasi.filesystem.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
5→33 cranelift_filetests.test_unwind.systemv uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in cranelift_filetests.test_unwind.systemv uses a type in cranelift_srcgen.
cranelift_filetests.test_unwind.systemv uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_filetests.test_unwind.systemv, while a change to cranelift_filetests.test_unwind.systemv can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
6→9 wasmtime_environ.component.info uses wasmtime_environ.component.dfgpart of a loop✕
Connections
11 pairs of types, where a type in wasmtime_environ.component.info uses a type in wasmtime_environ.component.dfg.
wasmtime_environ.component.info uses wasmtime_environ.component.dfg, so a change to wasmtime_environ.component.dfg can break wasmtime_environ.component.info, while a change to wasmtime_environ.component.info can't break wasmtime_environ.component.dfg.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
6→18 wasmtime_environ.component.info uses wasmtime_environ.component.typespart of a loop✕
Connections
17 pairs of types, where a type in wasmtime_environ.component.info uses a type in wasmtime_environ.component.types.
wasmtime_environ.component.info uses wasmtime_environ.component.types, so a change to wasmtime_environ.component.types can break wasmtime_environ.component.info, while a change to wasmtime_environ.component.info can't break wasmtime_environ.component.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
6→20 wasmtime_environ.component.info uses wasmtime_environ.typespart of a loop✕
Connections
2 pairs of types, where a type in wasmtime_environ.component.info uses a type in wasmtime_environ.types.
wasmtime_environ.component.info uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime_environ.component.info, while a change to wasmtime_environ.component.info can't break wasmtime_environ.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
6→22 wasmtime_environ.component.info uses cranelift_entity.primarypart of a loop✕
Connections
1 pair of types, where a type in wasmtime_environ.component.info uses a type in cranelift_entity.primary.
wasmtime_environ.component.info uses cranelift_entity.primary, so a change to cranelift_entity.primary can break wasmtime_environ.component.info, while a change to wasmtime_environ.component.info can't break cranelift_entity.primary.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
7→33 wasmtime_environ.tunables uses cranelift_srcgenpart of a loop✕
Connections
2 pairs of types, where a type in wasmtime_environ.tunables uses a type in cranelift_srcgen.
wasmtime_environ.tunables uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime_environ.tunables, while a change to wasmtime_environ.tunables can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_isle.ast uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break cranelift_isle.ast, while a change to cranelift_isle.ast can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: cranelift_isle.ast uses a module listed above it, which is the healthy direction.
wasmtime_environ.component.dfg uses wasmtime_environ.component.info, so a change to wasmtime_environ.component.info can break wasmtime_environ.component.dfg, while a change to wasmtime_environ.component.dfg can't break wasmtime_environ.component.info.
Position
Below the diagonal: wasmtime_environ.component.dfg uses a module listed above it, which is the healthy direction.
9→18 wasmtime_environ.component.dfg uses wasmtime_environ.component.typespart of a loop✕
Connections
19 pairs of types, where a type in wasmtime_environ.component.dfg uses a type in wasmtime_environ.component.types.
wasmtime_environ.component.dfg uses wasmtime_environ.component.types, so a change to wasmtime_environ.component.types can break wasmtime_environ.component.dfg, while a change to wasmtime_environ.component.dfg can't break wasmtime_environ.component.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→20 wasmtime_environ.component.dfg uses wasmtime_environ.typespart of a loop✕
Connections
2 pairs of types, where a type in wasmtime_environ.component.dfg uses a type in wasmtime_environ.types.
wasmtime_environ.component.dfg uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime_environ.component.dfg, while a change to wasmtime_environ.component.dfg can't break wasmtime_environ.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
9→22 wasmtime_environ.component.dfg uses cranelift_entity.primarypart of a loop✕
Connections
3 pairs of types, where a type in wasmtime_environ.component.dfg uses a type in cranelift_entity.primary.
wasmtime_environ.component.dfg uses cranelift_entity.primary, so a change to cranelift_entity.primary can break wasmtime_environ.component.dfg, while a change to wasmtime_environ.component.dfg can't break cranelift_entity.primary.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime.runtime.store.context uses wasmtime_environ.component.dfg, so a change to wasmtime_environ.component.dfg can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break wasmtime_environ.component.dfg.
Position
Below the diagonal: wasmtime.runtime.store.context uses a module listed above it, which is the healthy direction.
10→14 wasmtime.runtime.store.context uses wasmtime.runtime.storepart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.store.context uses a type in wasmtime.runtime.store.
wasmtime.runtime.store.context uses wasmtime.runtime.store, so a change to wasmtime.runtime.store can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break wasmtime.runtime.store.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→16 wasmtime.runtime.store.context uses wasmtime.runtime.component.concurrent.futures_and_streamspart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.store.context uses a type in wasmtime.runtime.component.concurrent.futures_and_streams.
wasmtime.runtime.store.context uses wasmtime.runtime.component.concurrent.futures_and_streams, so a change to wasmtime.runtime.component.concurrent.futures_and_streams can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break wasmtime.runtime.component.concurrent.futures_and_streams.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→17 wasmtime.runtime.store.context uses wasmtime_cli.commands.servepart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.store.context uses a type in wasmtime_cli.commands.serve.
wasmtime.runtime.store.context uses wasmtime_cli.commands.serve, so a change to wasmtime_cli.commands.serve can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break wasmtime_cli.commands.serve.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→23 wasmtime.runtime.store.context uses cranelift_module.modulepart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.store.context uses a type in cranelift_module.module.
wasmtime.runtime.store.context uses cranelift_module.module, so a change to cranelift_module.module can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break cranelift_module.module.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→24 wasmtime.runtime.store.context uses wasmtime.runtime.component.concurrentpart of a loop✕
Connections
4 pairs of types, where a type in wasmtime.runtime.store.context uses a type in wasmtime.runtime.component.concurrent.
wasmtime.runtime.store.context uses wasmtime.runtime.component.concurrent, so a change to wasmtime.runtime.component.concurrent can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break wasmtime.runtime.component.concurrent.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
10→26 wasmtime.runtime.store.context uses wasmtime.enginepart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.store.context uses a type in wasmtime.engine.
wasmtime.runtime.store.context uses wasmtime.engine, so a change to wasmtime.engine can break wasmtime.runtime.store.context, while a change to wasmtime.runtime.store.context can't break wasmtime.engine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_internal_component_macro.component uses cranelift_isle.ast, so a change to cranelift_isle.ast can break wasmtime_internal_component_macro.component, while a change to wasmtime_internal_component_macro.component can't break cranelift_isle.ast.
Position
Below the diagonal: wasmtime_internal_component_macro.component uses a module listed above it, which is the healthy direction.
11→12 wasmtime_internal_component_macro.component uses cranelift_codegen.machinst.abipart of a loop✕
Connections
1 pair of types, where a type in wasmtime_internal_component_macro.component uses a type in cranelift_codegen.machinst.abi.
wasmtime_internal_component_macro.component uses cranelift_codegen.machinst.abi, so a change to cranelift_codegen.machinst.abi can break wasmtime_internal_component_macro.component, while a change to wasmtime_internal_component_macro.component can't break cranelift_codegen.machinst.abi.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→28 wasmtime_internal_component_macro.component uses cranelift_codegen.ir.typespart of a loop✕
Connections
1 pair of types, where a type in wasmtime_internal_component_macro.component uses a type in cranelift_codegen.ir.types.
wasmtime_internal_component_macro.component uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break wasmtime_internal_component_macro.component, while a change to wasmtime_internal_component_macro.component can't break cranelift_codegen.ir.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→32 wasmtime_internal_component_macro.component uses cranelift_bforest.pathpart of a loop✕
Connections
5 pairs of types, where a type in wasmtime_internal_component_macro.component uses a type in cranelift_bforest.path.
wasmtime_internal_component_macro.component uses cranelift_bforest.path, so a change to cranelift_bforest.path can break wasmtime_internal_component_macro.component, while a change to wasmtime_internal_component_macro.component can't break cranelift_bforest.path.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
11→33 wasmtime_internal_component_macro.component uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in wasmtime_internal_component_macro.component uses a type in cranelift_srcgen.
wasmtime_internal_component_macro.component uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime_internal_component_macro.component, while a change to wasmtime_internal_component_macro.component can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_codegen.machinst.abi uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: cranelift_codegen.machinst.abi uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.abi uses cranelift_codegen.machinst.reg, so a change to cranelift_codegen.machinst.reg can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.machinst.reg.
Position
Below the diagonal: cranelift_codegen.machinst.abi uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.abi uses wasmtime_internal_component_macro.component, so a change to wasmtime_internal_component_macro.component can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break wasmtime_internal_component_macro.component.
Position
Below the diagonal: cranelift_codegen.machinst.abi uses a module listed above it, which is the healthy direction.
12→17 cranelift_codegen.machinst.abi uses wasmtime_cli.commands.servepart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst.abi uses a type in wasmtime_cli.commands.serve.
cranelift_codegen.machinst.abi uses wasmtime_cli.commands.serve, so a change to wasmtime_cli.commands.serve can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break wasmtime_cli.commands.serve.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→22 cranelift_codegen.machinst.abi uses cranelift_entity.primarypart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_entity.primary.
cranelift_codegen.machinst.abi uses cranelift_entity.primary, so a change to cranelift_entity.primary can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_entity.primary.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→28 cranelift_codegen.machinst.abi uses cranelift_codegen.ir.typespart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_codegen.ir.types.
cranelift_codegen.machinst.abi uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.ir.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→29 cranelift_codegen.machinst.abi uses cranelift_codegen.machinstpart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_codegen.machinst.
cranelift_codegen.machinst.abi uses cranelift_codegen.machinst, so a change to cranelift_codegen.machinst can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.machinst.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→31 cranelift_codegen.machinst.abi uses cranelift_codegen.ir.entitiespart of a loop✕
Connections
4 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_codegen.ir.entities.
cranelift_codegen.machinst.abi uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.ir.entities.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→34 cranelift_codegen.machinst.abi uses cranelift_assembler_x64_meta.dsl.formatpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_assembler_x64_meta.dsl.format.
cranelift_codegen.machinst.abi uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_assembler_x64_meta.dsl.format.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→36 cranelift_codegen.machinst.abi uses cranelift_codegen.ir.functionpart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_codegen.ir.function.
cranelift_codegen.machinst.abi uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.ir.function.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→37 cranelift_codegen.machinst.abi uses cranelift_codegen.machinst.bufferpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst.abi uses a type in cranelift_codegen.machinst.buffer.
cranelift_codegen.machinst.abi uses cranelift_codegen.machinst.buffer, so a change to cranelift_codegen.machinst.buffer can break cranelift_codegen.machinst.abi, while a change to cranelift_codegen.machinst.abi can't break cranelift_codegen.machinst.buffer.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime.runtime.component.linker uses cranelift_codegen.scoped_hash_map, so a change to cranelift_codegen.scoped_hash_map can break wasmtime.runtime.component.linker, while a change to wasmtime.runtime.component.linker can't break cranelift_codegen.scoped_hash_map.
Position
Below the diagonal: wasmtime.runtime.component.linker uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.linker uses wasmtime_environ.component.info, so a change to wasmtime_environ.component.info can break wasmtime.runtime.component.linker, while a change to wasmtime.runtime.component.linker can't break wasmtime_environ.component.info.
Position
Below the diagonal: wasmtime.runtime.component.linker uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.linker uses wasmtime.runtime.store.context, so a change to wasmtime.runtime.store.context can break wasmtime.runtime.component.linker, while a change to wasmtime.runtime.component.linker can't break wasmtime.runtime.store.context.
Position
Below the diagonal: wasmtime.runtime.component.linker uses a module listed above it, which is the healthy direction.
13→23 wasmtime.runtime.component.linker uses cranelift_module.modulepart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.component.linker uses a type in cranelift_module.module.
wasmtime.runtime.component.linker uses cranelift_module.module, so a change to cranelift_module.module can break wasmtime.runtime.component.linker, while a change to wasmtime.runtime.component.linker can't break cranelift_module.module.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
13→26 wasmtime.runtime.component.linker uses wasmtime.enginepart of a loop✕
Connections
3 pairs of types, where a type in wasmtime.runtime.component.linker uses a type in wasmtime.engine.
wasmtime.runtime.component.linker uses wasmtime.engine, so a change to wasmtime.engine can break wasmtime.runtime.component.linker, while a change to wasmtime.runtime.component.linker can't break wasmtime.engine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime.runtime.store uses cranelift_codegen.scoped_hash_map, so a change to cranelift_codegen.scoped_hash_map can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break cranelift_codegen.scoped_hash_map.
Position
Below the diagonal: wasmtime.runtime.store uses a module listed above it, which is the healthy direction.
wasmtime.runtime.store uses cranelift_filetests.test_unwind.systemv, so a change to cranelift_filetests.test_unwind.systemv can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break cranelift_filetests.test_unwind.systemv.
Position
Below the diagonal: wasmtime.runtime.store uses a module listed above it, which is the healthy direction.
wasmtime.runtime.store uses wasmtime_environ.component.info, so a change to wasmtime_environ.component.info can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_environ.component.info.
Position
Below the diagonal: wasmtime.runtime.store uses a module listed above it, which is the healthy direction.
wasmtime.runtime.store uses wasmtime_environ.component.dfg, so a change to wasmtime_environ.component.dfg can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_environ.component.dfg.
Position
Below the diagonal: wasmtime.runtime.store uses a module listed above it, which is the healthy direction.
wasmtime.runtime.store uses wasmtime.runtime.store.context, so a change to wasmtime.runtime.store.context can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime.runtime.store.context.
Position
Below the diagonal: wasmtime.runtime.store uses a module listed above it, which is the healthy direction.
14→16 wasmtime.runtime.store uses wasmtime.runtime.component.concurrent.futures_and_streamspart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.store uses a type in wasmtime.runtime.component.concurrent.futures_and_streams.
wasmtime.runtime.store uses wasmtime.runtime.component.concurrent.futures_and_streams, so a change to wasmtime.runtime.component.concurrent.futures_and_streams can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime.runtime.component.concurrent.futures_and_streams.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→17 wasmtime.runtime.store uses wasmtime_cli.commands.servepart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.store uses a type in wasmtime_cli.commands.serve.
wasmtime.runtime.store uses wasmtime_cli.commands.serve, so a change to wasmtime_cli.commands.serve can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_cli.commands.serve.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→18 wasmtime.runtime.store uses wasmtime_environ.component.typespart of a loop✕
Connections
7 pairs of types, where a type in wasmtime.runtime.store uses a type in wasmtime_environ.component.types.
wasmtime.runtime.store uses wasmtime_environ.component.types, so a change to wasmtime_environ.component.types can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_environ.component.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→20 wasmtime.runtime.store uses wasmtime_environ.typespart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.store uses a type in wasmtime_environ.types.
wasmtime.runtime.store uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_environ.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→21 wasmtime.runtime.store uses wasmtime_internal_cranelift.debug.transform.address_transformpart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.store uses a type in wasmtime_internal_cranelift.debug.transform.address_transform.
wasmtime.runtime.store uses wasmtime_internal_cranelift.debug.transform.address_transform, so a change to wasmtime_internal_cranelift.debug.transform.address_transform can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_internal_cranelift.debug.transform.address_transform.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→23 wasmtime.runtime.store uses cranelift_module.modulepart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.store uses a type in cranelift_module.module.
wasmtime.runtime.store uses cranelift_module.module, so a change to cranelift_module.module can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break cranelift_module.module.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→24 wasmtime.runtime.store uses wasmtime.runtime.component.concurrentpart of a loop✕
Connections
5 pairs of types, where a type in wasmtime.runtime.store uses a type in wasmtime.runtime.component.concurrent.
wasmtime.runtime.store uses wasmtime.runtime.component.concurrent, so a change to wasmtime.runtime.component.concurrent can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime.runtime.component.concurrent.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→26 wasmtime.runtime.store uses wasmtime.enginepart of a loop✕
Connections
3 pairs of types, where a type in wasmtime.runtime.store uses a type in wasmtime.engine.
wasmtime.runtime.store uses wasmtime.engine, so a change to wasmtime.engine can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime.engine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→27 wasmtime.runtime.store uses wasmtime_cli_flagspart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.store uses a type in wasmtime_cli_flags.
wasmtime.runtime.store uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→33 wasmtime.runtime.store uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in wasmtime.runtime.store uses a type in cranelift_srcgen.
wasmtime.runtime.store uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime.runtime.store, while a change to wasmtime.runtime.store can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_codegen.machinst.lower uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: cranelift_codegen.machinst.lower uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.lower uses cranelift_codegen.machinst.reg, so a change to cranelift_codegen.machinst.reg can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.machinst.reg.
Position
Below the diagonal: cranelift_codegen.machinst.lower uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.lower uses wasmtime_internal_component_macro.component, so a change to wasmtime_internal_component_macro.component can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break wasmtime_internal_component_macro.component.
Position
Below the diagonal: cranelift_codegen.machinst.lower uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.lower uses cranelift_codegen.machinst.abi, so a change to cranelift_codegen.machinst.abi can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.machinst.abi.
Position
Below the diagonal: cranelift_codegen.machinst.lower uses a module listed above it, which is the healthy direction.
15→28 cranelift_codegen.machinst.lower uses cranelift_codegen.ir.typespart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_codegen.ir.types.
cranelift_codegen.machinst.lower uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.ir.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→29 cranelift_codegen.machinst.lower uses cranelift_codegen.machinstpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_codegen.machinst.
cranelift_codegen.machinst.lower uses cranelift_codegen.machinst, so a change to cranelift_codegen.machinst can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.machinst.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→31 cranelift_codegen.machinst.lower uses cranelift_codegen.ir.entitiespart of a loop✕
Connections
6 pairs of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_codegen.ir.entities.
cranelift_codegen.machinst.lower uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.ir.entities.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→35 cranelift_codegen.machinst.lower uses cranelift_assembler_x64_meta.dslpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_assembler_x64_meta.dsl.
cranelift_codegen.machinst.lower uses cranelift_assembler_x64_meta.dsl, so a change to cranelift_assembler_x64_meta.dsl can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_assembler_x64_meta.dsl.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→36 cranelift_codegen.machinst.lower uses cranelift_codegen.ir.functionpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_codegen.ir.function.
cranelift_codegen.machinst.lower uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.ir.function.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→37 cranelift_codegen.machinst.lower uses cranelift_codegen.machinst.bufferpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_codegen.machinst.buffer.
cranelift_codegen.machinst.lower uses cranelift_codegen.machinst.buffer, so a change to cranelift_codegen.machinst.buffer can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_codegen.machinst.buffer.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
15→39 cranelift_codegen.machinst.lower uses cranelift_assembler_x64.apipart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst.lower uses a type in cranelift_assembler_x64.api.
cranelift_codegen.machinst.lower uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break cranelift_codegen.machinst.lower, while a change to cranelift_codegen.machinst.lower can't break cranelift_assembler_x64.api.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime.runtime.component.concurrent.futures_and_streams uses cranelift_codegen.scoped_hash_map, so a change to cranelift_codegen.scoped_hash_map can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break cranelift_codegen.scoped_hash_map.
Position
Below the diagonal: wasmtime.runtime.component.concurrent.futures_and_streams uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent.futures_and_streams uses cranelift_codegen.context, so a change to cranelift_codegen.context can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break cranelift_codegen.context.
Position
Below the diagonal: wasmtime.runtime.component.concurrent.futures_and_streams uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime_environ.component.dfg, so a change to wasmtime_environ.component.dfg can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break wasmtime_environ.component.dfg.
Position
Below the diagonal: wasmtime.runtime.component.concurrent.futures_and_streams uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime.runtime.store.context, so a change to wasmtime.runtime.store.context can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break wasmtime.runtime.store.context.
Position
Below the diagonal: wasmtime.runtime.component.concurrent.futures_and_streams uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime.runtime.store, so a change to wasmtime.runtime.store can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break wasmtime.runtime.store.
Position
Below the diagonal: wasmtime.runtime.component.concurrent.futures_and_streams uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent.futures_and_streams uses cranelift_codegen.machinst.lower, so a change to cranelift_codegen.machinst.lower can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break cranelift_codegen.machinst.lower.
Position
Below the diagonal: wasmtime.runtime.component.concurrent.futures_and_streams uses a module listed above it, which is the healthy direction.
16→18 wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime_environ.component.typespart of a loop✕
Connections
7 pairs of types, where a type in wasmtime.runtime.component.concurrent.futures_and_streams uses a type in wasmtime_environ.component.types.
wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime_environ.component.types, so a change to wasmtime_environ.component.types can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break wasmtime_environ.component.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→24 wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime.runtime.component.concurrentpart of a loop✕
Connections
2 pairs of types, where a type in wasmtime.runtime.component.concurrent.futures_and_streams uses a type in wasmtime.runtime.component.concurrent.
wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime.runtime.component.concurrent, so a change to wasmtime.runtime.component.concurrent can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break wasmtime.runtime.component.concurrent.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→27 wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime_cli_flagspart of a loop✕
Connections
5 pairs of types, where a type in wasmtime.runtime.component.concurrent.futures_and_streams uses a type in wasmtime_cli_flags.
wasmtime.runtime.component.concurrent.futures_and_streams uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
16→33 wasmtime.runtime.component.concurrent.futures_and_streams uses cranelift_srcgenpart of a loop✕
Connections
5 pairs of types, where a type in wasmtime.runtime.component.concurrent.futures_and_streams uses a type in cranelift_srcgen.
wasmtime.runtime.component.concurrent.futures_and_streams uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime.runtime.component.concurrent.futures_and_streams, while a change to wasmtime.runtime.component.concurrent.futures_and_streams can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_cli.commands.serve uses cranelift_codegen.context, so a change to cranelift_codegen.context can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break cranelift_codegen.context.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
wasmtime_cli.commands.serve uses cranelift_filetests.test_unwind.systemv, so a change to cranelift_filetests.test_unwind.systemv can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break cranelift_filetests.test_unwind.systemv.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
wasmtime_cli.commands.serve uses wasmtime_environ.component.info, so a change to wasmtime_environ.component.info can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break wasmtime_environ.component.info.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
wasmtime_cli.commands.serve uses wasmtime.runtime.store.context, so a change to wasmtime.runtime.store.context can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break wasmtime.runtime.store.context.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
wasmtime_cli.commands.serve uses wasmtime.runtime.component.linker, so a change to wasmtime.runtime.component.linker can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break wasmtime.runtime.component.linker.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
wasmtime_cli.commands.serve uses wasmtime.runtime.store, so a change to wasmtime.runtime.store can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break wasmtime.runtime.store.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
wasmtime_cli.commands.serve uses wasmtime.runtime.component.concurrent.futures_and_streams, so a change to wasmtime.runtime.component.concurrent.futures_and_streams can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break wasmtime.runtime.component.concurrent.futures_and_streams.
Position
Below the diagonal: wasmtime_cli.commands.serve uses a module listed above it, which is the healthy direction.
17→26 wasmtime_cli.commands.serve uses wasmtime.enginepart of a loop✕
Connections
2 pairs of types, where a type in wasmtime_cli.commands.serve uses a type in wasmtime.engine.
wasmtime_cli.commands.serve uses wasmtime.engine, so a change to wasmtime.engine can break wasmtime_cli.commands.serve, while a change to wasmtime_cli.commands.serve can't break wasmtime.engine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_environ.component.types uses wasmtime_cli.commands.serve, so a change to wasmtime_cli.commands.serve can break wasmtime_environ.component.types, while a change to wasmtime_environ.component.types can't break wasmtime_cli.commands.serve.
Position
Below the diagonal: wasmtime_environ.component.types uses a module listed above it, which is the healthy direction.
18→20 wasmtime_environ.component.types uses wasmtime_environ.typespart of a loop✕
Connections
2 pairs of types, where a type in wasmtime_environ.component.types uses a type in wasmtime_environ.types.
wasmtime_environ.component.types uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime_environ.component.types, while a change to wasmtime_environ.component.types can't break wasmtime_environ.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime.runtime.types uses cranelift_codegen.scoped_hash_map, so a change to cranelift_codegen.scoped_hash_map can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break cranelift_codegen.scoped_hash_map.
Position
Below the diagonal: wasmtime.runtime.types uses a module listed above it, which is the healthy direction.
wasmtime.runtime.types uses wasmtime_environ.component.types, so a change to wasmtime_environ.component.types can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break wasmtime_environ.component.types.
Position
Below the diagonal: wasmtime.runtime.types uses a module listed above it, which is the healthy direction.
19→20 wasmtime.runtime.types uses wasmtime_environ.typespart of a loop✕
Connections
22 pairs of types, where a type in wasmtime.runtime.types uses a type in wasmtime_environ.types.
wasmtime.runtime.types uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break wasmtime_environ.types.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→26 wasmtime.runtime.types uses wasmtime.enginepart of a loop✕
Connections
16 pairs of types, where a type in wasmtime.runtime.types uses a type in wasmtime.engine.
wasmtime.runtime.types uses wasmtime.engine, so a change to wasmtime.engine can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break wasmtime.engine.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→27 wasmtime.runtime.types uses wasmtime_cli_flagspart of a loop✕
Connections
4 pairs of types, where a type in wasmtime.runtime.types uses a type in wasmtime_cli_flags.
wasmtime.runtime.types uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→33 wasmtime.runtime.types uses cranelift_srcgenpart of a loop✕
Connections
11 pairs of types, where a type in wasmtime.runtime.types uses a type in cranelift_srcgen.
wasmtime.runtime.types uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19→34 wasmtime.runtime.types uses cranelift_assembler_x64_meta.dsl.formatpart of a loop✕
Connections
3 pairs of types, where a type in wasmtime.runtime.types uses a type in cranelift_assembler_x64_meta.dsl.format.
wasmtime.runtime.types uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break wasmtime.runtime.types, while a change to wasmtime.runtime.types can't break cranelift_assembler_x64_meta.dsl.format.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_environ.types uses cranelift_filetests.test_unwind.systemv, so a change to cranelift_filetests.test_unwind.systemv can break wasmtime_environ.types, while a change to wasmtime_environ.types can't break cranelift_filetests.test_unwind.systemv.
Position
Below the diagonal: wasmtime_environ.types uses a module listed above it, which is the healthy direction.
wasmtime_environ.types uses wasmtime_environ.tunables, so a change to wasmtime_environ.tunables can break wasmtime_environ.types, while a change to wasmtime_environ.types can't break wasmtime_environ.tunables.
Position
Below the diagonal: wasmtime_environ.types uses a module listed above it, which is the healthy direction.
wasmtime_environ.types uses wasmtime.runtime.types, so a change to wasmtime.runtime.types can break wasmtime_environ.types, while a change to wasmtime_environ.types can't break wasmtime.runtime.types.
Position
Below the diagonal: wasmtime_environ.types uses a module listed above it, which is the healthy direction.
20→21 wasmtime_environ.types uses wasmtime_internal_cranelift.debug.transform.address_transformpart of a loop✕
Connections
1 pair of types, where a type in wasmtime_environ.types uses a type in wasmtime_internal_cranelift.debug.transform.address_transform.
wasmtime_environ.types uses wasmtime_internal_cranelift.debug.transform.address_transform, so a change to wasmtime_internal_cranelift.debug.transform.address_transform can break wasmtime_environ.types, while a change to wasmtime_environ.types can't break wasmtime_internal_cranelift.debug.transform.address_transform.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
20→33 wasmtime_environ.types uses cranelift_srcgenpart of a loop✕
Connections
15 pairs of types, where a type in wasmtime_environ.types uses a type in cranelift_srcgen.
wasmtime_environ.types uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime_environ.types, while a change to wasmtime_environ.types can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_internal_cranelift.debug.transform.address_transform uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime_internal_cranelift.debug.transform.address_transform, while a change to wasmtime_internal_cranelift.debug.transform.address_transform can't break wasmtime_environ.types.
Position
Below the diagonal: wasmtime_internal_cranelift.debug.transform.address_transform uses a module listed above it, which is the healthy direction.
21→22 wasmtime_internal_cranelift.debug.transform.address_transform uses cranelift_entity.primarypart of a loop✕
Connections
2 pairs of types, where a type in wasmtime_internal_cranelift.debug.transform.address_transform uses a type in cranelift_entity.primary.
wasmtime_internal_cranelift.debug.transform.address_transform uses cranelift_entity.primary, so a change to cranelift_entity.primary can break wasmtime_internal_cranelift.debug.transform.address_transform, while a change to wasmtime_internal_cranelift.debug.transform.address_transform can't break cranelift_entity.primary.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_entity.primary uses wasmtime_internal_cranelift.debug.transform.address_transform, so a change to wasmtime_internal_cranelift.debug.transform.address_transform can break cranelift_entity.primary, while a change to cranelift_entity.primary can't break wasmtime_internal_cranelift.debug.transform.address_transform.
Position
Below the diagonal: cranelift_entity.primary uses a module listed above it, which is the healthy direction.
22→27 cranelift_entity.primary uses wasmtime_cli_flagspart of a loop✕
Connections
1 pair of types, where a type in cranelift_entity.primary uses a type in wasmtime_cli_flags.
cranelift_entity.primary uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_entity.primary, while a change to cranelift_entity.primary can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
22→33 cranelift_entity.primary uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in cranelift_entity.primary uses a type in cranelift_srcgen.
cranelift_entity.primary uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_entity.primary, while a change to cranelift_entity.primary can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_module.module uses cranelift_codegen.context, so a change to cranelift_codegen.context can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_codegen.context.
Position
Below the diagonal: cranelift_module.module uses a module listed above it, which is the healthy direction.
cranelift_module.module uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: cranelift_module.module uses a module listed above it, which is the healthy direction.
cranelift_module.module uses cranelift_filetests.test_unwind.systemv, so a change to cranelift_filetests.test_unwind.systemv can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_filetests.test_unwind.systemv.
Position
Below the diagonal: cranelift_module.module uses a module listed above it, which is the healthy direction.
cranelift_module.module uses cranelift_entity.primary, so a change to cranelift_entity.primary can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_entity.primary.
Position
Below the diagonal: cranelift_module.module uses a module listed above it, which is the healthy direction.
23→27 cranelift_module.module uses wasmtime_cli_flagspart of a loop✕
Connections
2 pairs of types, where a type in cranelift_module.module uses a type in wasmtime_cli_flags.
cranelift_module.module uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_module.module, while a change to cranelift_module.module can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
23→31 cranelift_module.module uses cranelift_codegen.ir.entitiespart of a loop✕
Connections
2 pairs of types, where a type in cranelift_module.module uses a type in cranelift_codegen.ir.entities.
cranelift_module.module uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_codegen.ir.entities.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
23→33 cranelift_module.module uses cranelift_srcgenpart of a loop✕
Connections
4 pairs of types, where a type in cranelift_module.module uses a type in cranelift_srcgen.
cranelift_module.module uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
23→36 cranelift_module.module uses cranelift_codegen.ir.functionpart of a loop✕
Connections
3 pairs of types, where a type in cranelift_module.module uses a type in cranelift_codegen.ir.function.
cranelift_module.module uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_codegen.ir.function.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
23→37 cranelift_module.module uses cranelift_codegen.machinst.bufferpart of a loop✕
Connections
1 pair of types, where a type in cranelift_module.module uses a type in cranelift_codegen.machinst.buffer.
cranelift_module.module uses cranelift_codegen.machinst.buffer, so a change to cranelift_codegen.machinst.buffer can break cranelift_module.module, while a change to cranelift_module.module can't break cranelift_codegen.machinst.buffer.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime.runtime.component.concurrent uses cranelift_codegen.context, so a change to cranelift_codegen.context can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break cranelift_codegen.context.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime_environ.component.info, so a change to wasmtime_environ.component.info can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime_environ.component.info.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime_environ.component.dfg, so a change to wasmtime_environ.component.dfg can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime_environ.component.dfg.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime.runtime.store.context, so a change to wasmtime.runtime.store.context can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime.runtime.store.context.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime.runtime.store, so a change to wasmtime.runtime.store can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime.runtime.store.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime.runtime.component.concurrent.futures_and_streams, so a change to wasmtime.runtime.component.concurrent.futures_and_streams can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime.runtime.component.concurrent.futures_and_streams.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime_environ.component.types, so a change to wasmtime_environ.component.types can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime_environ.component.types.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime_environ.types.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
wasmtime.runtime.component.concurrent uses cranelift_module.module, so a change to cranelift_module.module can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break cranelift_module.module.
Position
Below the diagonal: wasmtime.runtime.component.concurrent uses a module listed above it, which is the healthy direction.
24→27 wasmtime.runtime.component.concurrent uses wasmtime_cli_flagspart of a loop✕
Connections
6 pairs of types, where a type in wasmtime.runtime.component.concurrent uses a type in wasmtime_cli_flags.
wasmtime.runtime.component.concurrent uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
24→33 wasmtime.runtime.component.concurrent uses cranelift_srcgenpart of a loop✕
Connections
6 pairs of types, where a type in wasmtime.runtime.component.concurrent uses a type in cranelift_srcgen.
wasmtime.runtime.component.concurrent uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime.runtime.component.concurrent, while a change to wasmtime.runtime.component.concurrent can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_wasi.filesystem uses cranelift_filetests.test_unwind.systemv, so a change to cranelift_filetests.test_unwind.systemv can break wasmtime_wasi.filesystem, while a change to wasmtime_wasi.filesystem can't break cranelift_filetests.test_unwind.systemv.
Position
Below the diagonal: wasmtime_wasi.filesystem uses a module listed above it, which is the healthy direction.
wasmtime_wasi.filesystem uses wasmtime_environ.component.dfg, so a change to wasmtime_environ.component.dfg can break wasmtime_wasi.filesystem, while a change to wasmtime_wasi.filesystem can't break wasmtime_environ.component.dfg.
Position
Below the diagonal: wasmtime_wasi.filesystem uses a module listed above it, which is the healthy direction.
wasmtime_wasi.filesystem uses wasmtime.runtime.component.concurrent.futures_and_streams, so a change to wasmtime.runtime.component.concurrent.futures_and_streams can break wasmtime_wasi.filesystem, while a change to wasmtime_wasi.filesystem can't break wasmtime.runtime.component.concurrent.futures_and_streams.
Position
Below the diagonal: wasmtime_wasi.filesystem uses a module listed above it, which is the healthy direction.
wasmtime_wasi.filesystem uses wasmtime.runtime.component.concurrent, so a change to wasmtime.runtime.component.concurrent can break wasmtime_wasi.filesystem, while a change to wasmtime_wasi.filesystem can't break wasmtime.runtime.component.concurrent.
Position
Below the diagonal: wasmtime_wasi.filesystem uses a module listed above it, which is the healthy direction.
wasmtime.engine uses wasmtime_environ.tunables, so a change to wasmtime_environ.tunables can break wasmtime.engine, while a change to wasmtime.engine can't break wasmtime_environ.tunables.
Position
Below the diagonal: wasmtime.engine uses a module listed above it, which is the healthy direction.
wasmtime.engine uses wasmtime_wasi.filesystem, so a change to wasmtime_wasi.filesystem can break wasmtime.engine, while a change to wasmtime.engine can't break wasmtime_wasi.filesystem.
Position
Below the diagonal: wasmtime.engine uses a module listed above it, which is the healthy direction.
26→27 wasmtime.engine uses wasmtime_cli_flagspart of a loop✕
Connections
1 pair of types, where a type in wasmtime.engine uses a type in wasmtime_cli_flags.
The types involved
wasmtime.engine.Engine → wasmtime_cli_flags.Debug
Direction
wasmtime.engine uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break wasmtime.engine, while a change to wasmtime.engine can't break wasmtime_cli_flags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
26→33 wasmtime.engine uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in wasmtime.engine uses a type in cranelift_srcgen.
wasmtime.engine uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime.engine, while a change to wasmtime.engine can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
wasmtime_cli_flags uses wasmtime_environ.tunables, so a change to wasmtime_environ.tunables can break wasmtime_cli_flags, while a change to wasmtime_cli_flags can't break wasmtime_environ.tunables.
Position
Below the diagonal: wasmtime_cli_flags uses a module listed above it, which is the healthy direction.
wasmtime_cli_flags uses wasmtime.engine, so a change to wasmtime.engine can break wasmtime_cli_flags, while a change to wasmtime_cli_flags can't break wasmtime.engine.
Position
Below the diagonal: wasmtime_cli_flags uses a module listed above it, which is the healthy direction.
27→33 wasmtime_cli_flags uses cranelift_srcgenpart of a loop✕
Connections
11 pairs of types, where a type in wasmtime_cli_flags uses a type in cranelift_srcgen.
wasmtime_cli_flags uses cranelift_srcgen, so a change to cranelift_srcgen can break wasmtime_cli_flags, while a change to wasmtime_cli_flags can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_codegen.ir.types uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_codegen.ir.types, while a change to cranelift_codegen.ir.types can't break wasmtime_cli_flags.
Position
Below the diagonal: cranelift_codegen.ir.types uses a module listed above it, which is the healthy direction.
28→33 cranelift_codegen.ir.types uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.ir.types uses a type in cranelift_srcgen.
cranelift_codegen.ir.types uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.ir.types, while a change to cranelift_codegen.ir.types can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_codegen.machinst uses cranelift_codegen.machinst.reg, so a change to cranelift_codegen.machinst.reg can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_codegen.machinst.reg.
Position
Below the diagonal: cranelift_codegen.machinst uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst uses cranelift_codegen.machinst.abi, so a change to cranelift_codegen.machinst.abi can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_codegen.machinst.abi.
Position
Below the diagonal: cranelift_codegen.machinst uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break wasmtime_cli_flags.
Position
Below the diagonal: cranelift_codegen.machinst uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_codegen.ir.types.
Position
Below the diagonal: cranelift_codegen.machinst uses a module listed above it, which is the healthy direction.
29→30 cranelift_codegen.machinst uses cranelift_codegen.ir.memflagspart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst uses a type in cranelift_codegen.ir.memflags.
cranelift_codegen.machinst uses cranelift_codegen.ir.memflags, so a change to cranelift_codegen.ir.memflags can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_codegen.ir.memflags.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→33 cranelift_codegen.machinst uses cranelift_srcgenpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst uses a type in cranelift_srcgen.
cranelift_codegen.machinst uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→34 cranelift_codegen.machinst uses cranelift_assembler_x64_meta.dsl.formatpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst uses a type in cranelift_assembler_x64_meta.dsl.format.
cranelift_codegen.machinst uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_assembler_x64_meta.dsl.format.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→36 cranelift_codegen.machinst uses cranelift_codegen.ir.functionpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.machinst uses a type in cranelift_codegen.ir.function.
cranelift_codegen.machinst uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_codegen.ir.function.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→37 cranelift_codegen.machinst uses cranelift_codegen.machinst.bufferpart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.machinst uses a type in cranelift_codegen.machinst.buffer.
cranelift_codegen.machinst uses cranelift_codegen.machinst.buffer, so a change to cranelift_codegen.machinst.buffer can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_codegen.machinst.buffer.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→39 cranelift_codegen.machinst uses cranelift_assembler_x64.apipart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.machinst uses a type in cranelift_assembler_x64.api.
cranelift_codegen.machinst uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break cranelift_codegen.machinst, while a change to cranelift_codegen.machinst can't break cranelift_assembler_x64.api.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_codegen.ir.memflags uses cranelift_entity.primary, so a change to cranelift_entity.primary can break cranelift_codegen.ir.memflags, while a change to cranelift_codegen.ir.memflags can't break cranelift_entity.primary.
Position
Below the diagonal: cranelift_codegen.ir.memflags uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.memflags uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_codegen.ir.memflags, while a change to cranelift_codegen.ir.memflags can't break wasmtime_cli_flags.
Position
Below the diagonal: cranelift_codegen.ir.memflags uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.memflags uses cranelift_codegen.machinst, so a change to cranelift_codegen.machinst can break cranelift_codegen.ir.memflags, while a change to cranelift_codegen.ir.memflags can't break cranelift_codegen.machinst.
Position
Below the diagonal: cranelift_codegen.ir.memflags uses a module listed above it, which is the healthy direction.
30→33 cranelift_codegen.ir.memflags uses cranelift_srcgenpart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.ir.memflags uses a type in cranelift_srcgen.
cranelift_codegen.ir.memflags uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.ir.memflags, while a change to cranelift_codegen.ir.memflags can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
30→39 cranelift_codegen.ir.memflags uses cranelift_assembler_x64.apipart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.ir.memflags uses a type in cranelift_assembler_x64.api.
cranelift_codegen.ir.memflags uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break cranelift_codegen.ir.memflags, while a change to cranelift_codegen.ir.memflags can't break cranelift_assembler_x64.api.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_codegen.ir.entities uses cranelift_codegen.machinst.reg, so a change to cranelift_codegen.machinst.reg can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_codegen.machinst.reg.
Position
Below the diagonal: cranelift_codegen.ir.entities uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.entities uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break wasmtime_cli_flags.
Position
Below the diagonal: cranelift_codegen.ir.entities uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.entities uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_codegen.ir.types.
Position
Below the diagonal: cranelift_codegen.ir.entities uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.entities uses cranelift_codegen.machinst, so a change to cranelift_codegen.machinst can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_codegen.machinst.
Position
Below the diagonal: cranelift_codegen.ir.entities uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.entities uses cranelift_codegen.ir.memflags, so a change to cranelift_codegen.ir.memflags can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_codegen.ir.memflags.
Position
Below the diagonal: cranelift_codegen.ir.entities uses a module listed above it, which is the healthy direction.
31→33 cranelift_codegen.ir.entities uses cranelift_srcgenpart of a loop✕
Connections
16 pairs of types, where a type in cranelift_codegen.ir.entities uses a type in cranelift_srcgen.
cranelift_codegen.ir.entities uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_srcgen.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
31→34 cranelift_codegen.ir.entities uses cranelift_assembler_x64_meta.dsl.formatpart of a loop✕
Connections
1 pair of types, where a type in cranelift_codegen.ir.entities uses a type in cranelift_assembler_x64_meta.dsl.format.
cranelift_codegen.ir.entities uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_assembler_x64_meta.dsl.format.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
31→35 cranelift_codegen.ir.entities uses cranelift_assembler_x64_meta.dslpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.ir.entities uses a type in cranelift_assembler_x64_meta.dsl.
cranelift_codegen.ir.entities uses cranelift_assembler_x64_meta.dsl, so a change to cranelift_assembler_x64_meta.dsl can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_assembler_x64_meta.dsl.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
31→37 cranelift_codegen.ir.entities uses cranelift_codegen.machinst.bufferpart of a loop✕
Connections
2 pairs of types, where a type in cranelift_codegen.ir.entities uses a type in cranelift_codegen.machinst.buffer.
cranelift_codegen.ir.entities uses cranelift_codegen.machinst.buffer, so a change to cranelift_codegen.machinst.buffer can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_codegen.machinst.buffer.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
31→39 cranelift_codegen.ir.entities uses cranelift_assembler_x64.apipart of a loop✕
Connections
3 pairs of types, where a type in cranelift_codegen.ir.entities uses a type in cranelift_assembler_x64.api.
cranelift_codegen.ir.entities uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break cranelift_codegen.ir.entities, while a change to cranelift_codegen.ir.entities can't break cranelift_assembler_x64.api.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_bforest.path uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_bforest.path, while a change to cranelift_bforest.path can't break cranelift_codegen.ir.entities.
Position
Below the diagonal: cranelift_bforest.path uses a module listed above it, which is the healthy direction.
cranelift_srcgen uses cranelift_bforest.path, so a change to cranelift_bforest.path can break cranelift_srcgen, while a change to cranelift_srcgen can't break cranelift_bforest.path.
Position
Below the diagonal: cranelift_srcgen uses a module listed above it, which is the healthy direction.
cranelift_assembler_x64_meta.dsl.format uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_assembler_x64_meta.dsl.format, while a change to cranelift_assembler_x64_meta.dsl.format can't break cranelift_srcgen.
Position
Below the diagonal: cranelift_assembler_x64_meta.dsl.format uses a module listed above it, which is the healthy direction.
cranelift_assembler_x64_meta.dsl uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_assembler_x64_meta.dsl, while a change to cranelift_assembler_x64_meta.dsl can't break cranelift_srcgen.
Position
Below the diagonal: cranelift_assembler_x64_meta.dsl uses a module listed above it, which is the healthy direction.
cranelift_assembler_x64_meta.dsl uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break cranelift_assembler_x64_meta.dsl, while a change to cranelift_assembler_x64_meta.dsl can't break cranelift_assembler_x64_meta.dsl.format.
Position
Below the diagonal: cranelift_assembler_x64_meta.dsl uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses cranelift_entity.primary, so a change to cranelift_entity.primary can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break cranelift_entity.primary.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break wasmtime_cli_flags.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break cranelift_codegen.ir.types.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break cranelift_codegen.ir.entities.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break cranelift_srcgen.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.ir.function uses cranelift_assembler_x64_meta.dsl, so a change to cranelift_assembler_x64_meta.dsl can break cranelift_codegen.ir.function, while a change to cranelift_codegen.ir.function can't break cranelift_assembler_x64_meta.dsl.
Position
Below the diagonal: cranelift_codegen.ir.function uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.buffer uses wasmtime_internal_cranelift.debug.transform.address_transform, so a change to wasmtime_internal_cranelift.debug.transform.address_transform can break cranelift_codegen.machinst.buffer, while a change to cranelift_codegen.machinst.buffer can't break wasmtime_internal_cranelift.debug.transform.address_transform.
Position
Below the diagonal: cranelift_codegen.machinst.buffer uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.buffer uses cranelift_entity.primary, so a change to cranelift_entity.primary can break cranelift_codegen.machinst.buffer, while a change to cranelift_codegen.machinst.buffer can't break cranelift_entity.primary.
Position
Below the diagonal: cranelift_codegen.machinst.buffer uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.buffer uses cranelift_codegen.machinst, so a change to cranelift_codegen.machinst can break cranelift_codegen.machinst.buffer, while a change to cranelift_codegen.machinst.buffer can't break cranelift_codegen.machinst.
Position
Below the diagonal: cranelift_codegen.machinst.buffer uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.buffer uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_codegen.machinst.buffer, while a change to cranelift_codegen.machinst.buffer can't break cranelift_srcgen.
Position
Below the diagonal: cranelift_codegen.machinst.buffer uses a module listed above it, which is the healthy direction.
cranelift_codegen.machinst.buffer uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_codegen.machinst.buffer, while a change to cranelift_codegen.machinst.buffer can't break cranelift_codegen.ir.function.
Position
Below the diagonal: cranelift_codegen.machinst.buffer uses a module listed above it, which is the healthy direction.
37→39 cranelift_codegen.machinst.buffer uses cranelift_assembler_x64.apipart of a loop✕
Connections
4 pairs of types, where a type in cranelift_codegen.machinst.buffer uses a type in cranelift_assembler_x64.api.
cranelift_codegen.machinst.buffer uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break cranelift_codegen.machinst.buffer, while a change to cranelift_codegen.machinst.buffer can't break cranelift_assembler_x64.api.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
cranelift_frontend.frontend uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_filetests.test_unwind.systemv, so a change to cranelift_filetests.test_unwind.systemv can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_filetests.test_unwind.systemv.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_entity.primary, so a change to cranelift_entity.primary can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_entity.primary.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_codegen.ir.types.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_codegen.ir.memflags, so a change to cranelift_codegen.ir.memflags can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_codegen.ir.memflags.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_codegen.ir.entities.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_srcgen.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_assembler_x64_meta.dsl, so a change to cranelift_assembler_x64_meta.dsl can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_assembler_x64_meta.dsl.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_frontend.frontend uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break cranelift_frontend.frontend, while a change to cranelift_frontend.frontend can't break cranelift_codegen.ir.function.
Position
Below the diagonal: cranelift_frontend.frontend uses a module listed above it, which is the healthy direction.
cranelift_assembler_x64.api uses wasmtime_cli_flags, so a change to wasmtime_cli_flags can break cranelift_assembler_x64.api, while a change to cranelift_assembler_x64.api can't break wasmtime_cli_flags.
Position
Below the diagonal: cranelift_assembler_x64.api uses a module listed above it, which is the healthy direction.
cranelift_assembler_x64.api uses cranelift_srcgen, so a change to cranelift_srcgen can break cranelift_assembler_x64.api, while a change to cranelift_assembler_x64.api can't break cranelift_srcgen.
Position
Below the diagonal: cranelift_assembler_x64.api uses a module listed above it, which is the healthy direction.
cranelift_assembler_x64.api uses cranelift_codegen.machinst.buffer, so a change to cranelift_codegen.machinst.buffer can break cranelift_assembler_x64.api, while a change to cranelift_assembler_x64.api can't break cranelift_codegen.machinst.buffer.
Position
Below the diagonal: cranelift_assembler_x64.api uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_codegen.ir.extfunc, so a change to cranelift_codegen.ir.extfunc can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_codegen.ir.extfunc.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses wasmtime_environ.tunables, so a change to wasmtime_environ.tunables can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break wasmtime_environ.tunables.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
30 pairs of types, where a type in wasmtime_internal_cranelift.func_environ uses a type in wasmtime_environ.types. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
wasmtime_internal_cranelift.func_environ uses wasmtime_environ.types, so a change to wasmtime_environ.types can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break wasmtime_environ.types.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_entity.primary, so a change to cranelift_entity.primary can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_entity.primary.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_module.module, so a change to cranelift_module.module can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_module.module.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_codegen.ir.types, so a change to cranelift_codegen.ir.types can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_codegen.ir.types.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_codegen.ir.memflags, so a change to cranelift_codegen.ir.memflags can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_codegen.ir.memflags.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_codegen.ir.entities, so a change to cranelift_codegen.ir.entities can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_codegen.ir.entities.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_assembler_x64_meta.dsl.format, so a change to cranelift_assembler_x64_meta.dsl.format can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_assembler_x64_meta.dsl.format.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_assembler_x64_meta.dsl, so a change to cranelift_assembler_x64_meta.dsl can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_assembler_x64_meta.dsl.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_codegen.ir.function, so a change to cranelift_codegen.ir.function can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_codegen.ir.function.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_frontend.frontend, so a change to cranelift_frontend.frontend can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_frontend.frontend.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
wasmtime_internal_cranelift.func_environ uses cranelift_assembler_x64.api, so a change to cranelift_assembler_x64.api can break wasmtime_internal_cranelift.func_environ, while a change to wasmtime_internal_cranelift.func_environ can't break cranelift_assembler_x64.api.
Position
Below the diagonal: wasmtime_internal_cranelift.func_environ uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 52% · Adequate · gated by D1, X4, X5 ·
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
88
High / Critical
A02:2025 — Security Misconfiguration
43
High / Critical
A03:2025 — Software Supply Chain Failures
19
High / Critical
A07:2025 — Authentication Failures
3
High / Critical
Roadmap
First, enforce strict access controls by implementing a global authentication guard with explicit public opt-outs and named role permissions. Second, secure the server's transport by enabling TLS and sending Strict-Transport-Security headers to ensure HTTPS-only communication. Third, enable strict null checking in the TypeScript configuration and resolve existing assertions to prevent runtime errors. Finally, address the 23 high-severity IaC findings in Dockerfiles and replace interpolated log messages with structured logging to improve observability.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
Secure the server's transport: serve TLS itself (`HttpServer::bind_rustls_0_23(addr, config)` in actix-web, `axum_server::bind_rustls(addr, RustlsConfig::from_pem_file(…))`, tonic's `Server::builder().tls_config(ServerTlsConfig::new().identity(…))`, Rocket's `[default.tls]`), or run it behind a TLS-terminating proxy and check `X-Forwarded-Proto`; send `Strict-Transport-Security` once it is HTTPS-only.
The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 125
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 2517
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 206
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 12
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 68 of 68 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 68 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 2760 of 2848 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.rs) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.rs) and this repository declares a Cargo test suite (repository root, 471 test files), but it was not re-run: its build outgrew the 8 GB scratch ceiling (8.047 GB measured) and was stopped; its suite was not run. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D15 Churn × Complexity Hotspots — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. A hotspot's complexity is meant to be the worst body its churn actually touched. For crates/environ/src/trap_encoding.rs, crates/environ/src/tunables.rs that could not be established — the complexity reader for the file reports no body extents, or the history carries no per-line attribution — so the row quotes the file's worst body, which the counted changes may never have touched. The churn count is unaffected.
D19 Documentation Quality — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
D21 Naming Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
D24 Comment Value — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DevServer (start). the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence.
ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check decides whether a handler's mutation is safe to re-run by recognising its persistence writes (a database save, a repository write, an event publish) and its guards. Those markers are .NET member names, so in this repository's language a write such as `repository.save(order)` is not recognised and a same-named call on an unrelated library type could be. The handlers were found; their idempotency was neither confirmed nor ruled out.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Rust, c, cpp is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Rust, c, cpp is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
M4 Documentation accuracy — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9). Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, Kotlin, Scala, Go, Swift, Python and Ruby source only, and no C# was loaded, no Java, Kotlin, Scala, Go, Swift, Python or Ruby was found, and this repository's C, C++ is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations: 1 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
170 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was Inst::print_with_state at 843. A further 109 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being ExtendedOp::encode at 323 — they are counted neither in the figure above nor in this dimension's score. 40 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: pulley/src/op.rs (ExtendedOp::encode at 323), cranelift/isle/veri/veri/src/solver.rs (Solver::expr_to_smt at 101), cranelift/isle/veri/veri/src/veri.rs (ConditionsBuilder::spec_expr_kind at 99), crates/cranelift/src/compiler/component.rs (TrampolineCompiler::translate at 55), crates/environ/src/component/info.rs (Trampoline::symbol_name at 55), and 35 more not listed here. They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 87 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 6 bodies over 240 down to 240 or less in Cyclomatic Complexity — start with Inst::print_with_state (cyclomatic 843), Inst::emit_with_alloc_consumer (cyclomatic 816), Inst::emit (cyclomatic 579). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 6 together lifts Cyclomatic Complexity from 3.8 to about 5.1/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 127 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 2 bodies over 240 down to 240 or less in Cognitive Complexity — start with Inst::emit (cognitive 332), Inst::emit_with_alloc_consumer (cognitive 245). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 4.8 to about 5.1/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes8.7 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
+ 2 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 100 FileTooLong finding(s) in God Classes — start with types.rs (5), lib.rs (3), tcp.rs (3). — One of this dimension's main actionable groups (100 warning-level).
Resolve the 72 MethodTooLong finding(s) in God Classes — start with futures_and_streams.rs (5), concurrent.rs (4), func_environ.rs (4). — One of this dimension's main actionable groups (72 warning-level).
Resolve the 42 ClassTooLong finding(s) in God Classes — start with func_environ.rs (2), parser.rs (2), drc.rs (2). — One of this dimension's main actionable groups (42 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
1016 duplicated block group(s) detected. A further 34 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted. 204 of the 1050 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.
+ 218 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 88 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with asm.rs (11), interp.rs (8), mod.rs (5). — One of this dimension's main actionable groups (88 warning-level).
Resolve the 76 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with cls.rs (18), emit.rs (9), instructions.rs (5). — One of this dimension's main actionable groups (76 warning-level).
Resolve the 76 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with mod.rs (12), emit.rs (8), regs.rs (4). — One of this dimension's main actionable groups (76 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling8.8 / 10Strong✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
74 production modules (Cargo+npm), 0 dependency cycle(s), 2 unstable depended-on module(s). Read from the build's own module declarations; 9 module(s) off the main sequence, with abstractness counted on 58 of the 74 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
Off the main sequence: cranelift-control · ×9
Unstable project wasmtime-c-api-impl
Unstable project winch-codegen
What to do
Resolve the 9 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (9 warning-level).
Resolve the 1 Unstable project wasmtime-c-api-impl finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Unstable project winch-codegen finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 22 Low cohesion finding(s) in Cohesion (LCOM4) — start with config.rs (2), store.rs (2), lib.rs (2). — One of this dimension's main actionable groups (22 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
3274 test methods: 1238 unit, 2036 integration, 0 BDD, 0 e2e. The Rust suite contributes 3274 `#[test]` function(s) across 471 file(s) declaring at least one; its unit/integration split is Cargo's own — 188 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
58 outdated, 0 yanked direct Cargo dependencies. 128 of 130 direct crates were graded against crates.io (0 not published there, 2 not resolved by a committed REDACTED). Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.
Outdated: anyhow · ×58
What to do
Improve Dependency Hygiene — currently 8.0/10. — 58 outdated, 0 yanked direct Cargo dependencies. 128 of 130 direct crates were graded against crates.io (0 not published there, 2 not resolved by a committed REDACTED). Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.
Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 464 shipped crate(s) use a banned license. Licences were resolved from crates.io over the crates a consumer compiles — this repository's REDACTED closed over its manifests' `[dependencies]` and `[build-dependencies]`. Crates it asks for ONLY under `[dev-dependencies]` are excluded: they are not compiled by anything that depends on this repository. This repository publishes itself under Apache-2.0 WITH LLVM-exception, which is its own choice and is not judged here.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Resolve the 55 Hotspot finding(s) in Churn × Complexity Hotspots — start with emit.rs (3), lib.rs (3), abi.rs (3). — One of this dimension's main actionable groups (55 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor9.3 / 10Exemplary✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
70 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is crates/fuzzing/src/generators/gc_ops/ops.rs. Counted over 941 of the 1304 production source files in this repository: 362 are under the ~2,400-byte size floor this dimension measures over, and the remaining 1 have no attributable history left to measure.
Off-boarding risk: anonymized user #1 · ×3
Further sole-owners (lower concentration)
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
587 deducted task-comment markers across 536033 LoC (0.1/KLoC) → score 9.8. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
Resolve the 413 TodoComment finding(s) in Explicit Debt — start with lib.rs (23), trampoline.rs (22), function_generator.rs (21). — One of this dimension's main actionable groups (413 warning-level).
Resolve the 151 FixmeComment finding(s) in Explicit Debt — start with component.rs (13), mod.rs (7), typed.rs (6). — One of this dimension's main actionable groups (151 warning-level).
Resolve the 22 XxxComment finding(s) in Explicit Debt — start with secondary_map.rs (3), func_environ.rs (3), type_registry.rs (2). — One of this dimension's main actionable groups (22 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 1 documentation facets pass in full. 137 document(s) read across 1 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D20 · ADR Quality0.0 / 10Critical✓ Tool-verified
What it measures: Whether architecture decisions are recorded well (context, decision, consequences).
Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.
6 of 72 build units (Cargo, npm) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
2 finding(s): 0 critical, 2 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 2 REDACTED finding(s) in Secrets (history) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
88 finding(s): 0 critical, 87 high, 1 medium, 0 low. 55 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 36 file(s) — `REDACTED` (line 11), `ci/miri-provenance-test.sh` (line 18), `ci/miri-wast.sh` (line 24), `cranelift/assembler-x64/src/fuzz.rs` (lines 527–775), `cranelift/filetests/src/function_runner.rs` (line 110, line 111), … (+31 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 11 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
+ 6 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 7 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (6), REDACTED. — One of this dimension's main actionable groups (7 issue-level).
Resolve the 6 REDACTED finding(s) charged to Static Analysis (SAST) — the other 55 are reported here at file:line but scored by D36 (supply-chain provenance), which charges them once. — One of this dimension's main actionable groups (61 issue-level, 6 of them charged here).
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.
Resolve the 3 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
Resolve the 2 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 2 Medium advisory (unmaintained) finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 23 High IaC finding(s) in IaC & Container Security — start with REDACTED (23). — One of this dimension's main actionable groups (23 issue-level).
Resolve the 20 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (20). — One of this dimension's main actionable groups (20 warning-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
89 of 942 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is cranelift/codegen/src/ir/layout.rs. Counted over 942 of the 1304 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
Resolve the 8 Orphaned knowledge finding(s) in Knowledge Freshness — start with layout.rs, list.rs, single_inst_module.rs. — One of this dimension's main actionable groups (8 issue-level).
Resolve the 81 Orphaned file finding(s) in Knowledge Freshness — start with lib.rs (6), systemv.rs (3), types.rs (2). — One of this dimension's main actionable groups (81 recommendation-level).
Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 2 Boundary-crossing change coupling finding(s) in Change Coupling — start with wast.rs, compile.rs. — One of this dimension's main actionable groups (2 issue-level).
Resolve the 11 Change coupling finding(s) in Change Coupling — start with drc.rs, builtin.rs, on_demand.rs. — One of this dimension's main actionable groups (11 warning-level).
Resolve the 1 Change coupling clique finding(s) in Change Coupling — start with memory.rs. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
+ 3 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
Resolve the 2 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Other · Security — Whether access is authorized by default — a framework authorization attribute/decorator or policy, or imperative guard methods (throw-on-violation) called from handlers.
Method: Roslyn scan: [Authorize] usage and authorization policies, plus imperative throw-on-violation guard methods detected via syntax. Deterministic.
This repository serves requests — a server (.serve_connection) (src/commands/serve.rs:1354) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — src/commands/serve.rs:1354
What to do
Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
Other · Event Sourcing — Whether the recovery-replay fold is deterministic — state derived purely from each event's own fields, no clock/random/IO on the replay path.
Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.
Other · Event Sourcing — Whether domain events stay immutable (private fields, set once) rather than carrying mutable state.
Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
917 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
What to do
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 54 of 104 project(s) that lack one — worth up to 1 pts.
Review the README against recent changes; refresh the parts that drifted.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` 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.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
cranelift/isle/veri/README.md links to `../../REDACTED`, but `cranelift/REDACTED` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — cranelift/isle/veri/README.md:54
cranelift/isle/veri/README.md links to `../../REDACTED`, but `cranelift/REDACTED` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — cranelift/isle/veri/README.md:56
What to do
Reconcile the README with reality: cranelift/isle/veri/README.md links to `../../REDACTED`, but `cranelift/REDACTED` does not exist; cranelift/isle/veri/README.md links to `../../REDACTED`, but `cranelift/REDACTED` does not exist.
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability6.6 / 10Adequate✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Only 40/47 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `cranelift/assembler-x64`, `cranelift/assembler-x64/meta`, `cranelift/fuzzgen`, `cranelift/serde`, `crates/misc/publish` and 2 more.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Consider OpenTelemetry tracing/metrics (opentelemetry with tracing-opentelemetry) and a health-check endpoint (a /health route on your axum/actix router) for operability.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
Dependabot is configured but does not watch `npm`, `cargo`, `gitsubmodule` — add those `package-ecosystem` entries to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Do you agree with this assessment?
P6 · Release Hygiene8.0 / 10Strong✓ Tool-verified
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
The changelog this check read carries 1 versioned entry, against a bar of 3. Counted as either the distinct `x.y.z` versions it names (a link's target is not counted) or its version-shaped section headings (`## [1.2.0]`, `## V14.x.x`, `## Updates in 8.0.x`), whichever is the larger — so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read — release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository — are not counted here, and this row is about what is re-findable in the tree rather than about how often you release.
What to do
Keep the changelog current — add a versioned entry (Keep-a-Changelog ## [x.y.z]) for each release so the history isn't a stub.
Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
`poll_oneoff` is async and calls thread::sleep — a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs. — crates/wasi/src/p1.rs:2308
What to do
Rust: `.await` the future instead of `block_on` (on a Tokio runtime thread it panics outright) and use `tokio::time::sleep(..).await` instead of `std::thread::sleep`; where synchronous code must run, move it to `tokio::task::spawn_blocking` or `block_in_place`.
Other · Security — Read from this repository's Rust source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS (certificate validation, protocol version) — facts about code that hold whether or not it serves anything itself. This repository serves HTTP itself (`.serve_connection(` (src/commands/serve.rs:1354)), so its Rust source was also read for the server controls: TLS served or HSTS set, security response headers, cookie flags and inbound validation — each credited where its Rust spelling appears in production source, not proven on every route. A Rocket 0.5 application is credited the headers Rocket's default `Shield` sends unless it attaches its own, and its cookie jar's SameSite=Strict default; a session middleware its default cookie flags.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
This repository starts an HTTP server and nothing in its Rust source or committed `Rocket.toml` secures the transport: no TLS served (actix-web `bind_rustls`/`bind_openssl`, axum-server `bind_rustls` with a `RustlsConfig`, tonic `ServerTlsConfig`, a `TlsAcceptor`, Rocket's `[default.tls]`), no `Strict-Transport-Security` header, no `X-Forwarded-Proto` read from a TLS-terminating proxy — so its traffic may cross the network in clear text. (−2.0 on this card.) The server: `.serve_connection(` (src/commands/serve.rs:1354).
None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is set on a response this repository's Rust server sends — defense in depth, even when a proxy could set them. (−2.0 on this card.) The server: `.serve_connection(` (src/commands/serve.rs:1354).
What to do
Secure the server's transport: serve TLS itself (`HttpServer::bind_rustls_0_23(addr, config)` in actix-web, `axum_server::bind_rustls(addr, RustlsConfig::from_pem_file(…))`, tonic's `Server::builder().tls_config(ServerTlsConfig::new().identity(…))`, Rocket's `[default.tls]`), or run it behind a TLS-terminating proxy and check `X-Forwarded-Proto`; send `Strict-Transport-Security` once it is HTTPS-only.
Set security response headers on what the server sends — actix-web's `DefaultHeaders::new().add((header::X_CONTENT_TYPE_OPTIONS, "nosniff"))`, tower-http's `SetResponseHeaderLayer::overriding(…)` on an axum router, or keep Rocket's default `Shield` — with `Content-Security-Policy`, `X-Content-Type-Options` and a frame policy on every response.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
This `async` body is polled on an executor's worker thread, and `std::thread::sleep` blocks that thread: for the whole delay no other task scheduled on it makes progress — the Rust form of blocking on a task. Use `tokio::time::sleep(…).await` (or the runtime's own timer), which suspends only this task. Where the blocking work is not a sleep but a synchronous call that cannot be made async, move it off the executor with `tokio::task::spawn_blocking(…).await`. — crates/wasi/src/p1.rs:2333
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for` loop leaves the `RefCell` it is walking alone — safe Rust rejects a body that changes the collection its loop borrows at compile time, except through interior mutability: a `RefCell` borrowed in the loop's header stays borrowed until the loop ends, so a `borrow_mut()` of it inside the body panics with `already borrowed: BorrowMutError` and the remaining elements are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.
`error!` at line 78 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-nn/src/wit.rs:78
`debug!` at line 176 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-nn/src/wit.rs:176
`debug!` at line 202 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-nn/src/wit.rs:202
`debug!` at line 249 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-nn/src/wit.rs:249
`debug!` at line 115 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-nn/src/witx.rs:115
`warn!` at line 342 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:342
`warn!` at line 352 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:352
`warn!` at line 375 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:375
`warn!` at line 404 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:404
`warn!` at line 429 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:429
`warn!` at line 439 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:439
`warn!` at line 462 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:462
`warn!` at line 491 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/ctx.rs:491
`warn!` at line 151 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/p2/error.rs:151
`warn!` at line 165 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/p2/error.rs:165
`warn!` at line 183 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/p2/error.rs:183
`warn!` at line 114 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi-http/src/p2/http_impl.rs:114
`debug!` at line 465 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/filesystem.rs:465
`debug!` at line 910 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p1.rs:910
`debug!` at line 45 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/sockets/ip_name_lookup.rs:45
`debug!` at line 353 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/sockets/mod.rs:353
`debug!` at line 404 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/sockets/mod.rs:404
`debug!` at line 152 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p3/sockets/conv.rs:152
`debug!` at line 201 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p3/sockets/conv.rs:201
`warn!` at line 32 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p3/cli/host.rs:32
`debug!` at line 110 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p2/write_stream.rs:110
`debug!` at line 694 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p2/host/filesystem.rs:694
`debug!` at line 66 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p2/host/network.rs:66
`debug!` at line 126 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — crates/wasi/src/p2/host/network.rs:126
`debug!` at line 16 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — cranelift/isle/veri/isaspec/src/semantics.rs:16
`debug!` at line 17 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — cranelift/isle/veri/isaspec/src/semantics.rs:17
`debug!` at line 18 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — cranelift/isle/veri/isaspec/src/semantics.rs:18
`debug!` at line 385 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`. — cranelift/isle/veri/isaspec/src/bin/constraints.rs:385
Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
0/2 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
What to do
The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 2 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
X10 Duplicated predicate — 10 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 6 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 51 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; Rust with no dependency-injection crate has no container to hand one lifetime's instance to another — every value is owned by the code that builds it, and the borrow checker rejects a longer-lived value keeping a borrow of a shorter-lived one.
AX2 Stateful singletons — Not applicable: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX6 Interface segregation — no exported interface declares behaviour
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility — the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no data at rest for these controls to protect.
C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Diesel schema, a SeaORM entity, a Diesel or sqlx row struct, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store crate (sqlx, Diesel, SeaORM, rusqlite, tokio-postgres, MongoDB, …) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
D10 Test Quality — ~120641 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included — the .rs suite was found but not re-run
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D21 Naming Consistency — Naming consistency is measured on C# only; JavaScript, Rust, TypeScript not measured.
D22 Internal API Consistency — API consistency is measured on C# only; the exposed Rust surface was not measured.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Aggregate roots were found in only one source directory (entity), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C# and Visual Basic comments only — this repository's production source is .rs, .ts, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D25 ADR Conformance — no ADRs to check
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.rs), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — applicable but not scored (3 signals for this style, 3 needed — the count is met but a required primary signal is absent): 14 aggregate root(s) (types guarding their own state behind command methods — this language has no AggregateRoot base to inherit); 519 value object(s); 1 domain event(s); its domain events are published by services or handlers — no domain entity raises one; no aggregate is declared and no domain structure surrounds the state-guarding types: not claimed as DDD
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
ED5 Idempotency — Not assessed, and this one is on us: 4 command handler(s) or message consumer(s) were found here, but this check does not yet recognise persistence writes in this repository's language. Idempotency was neither confirmed nor ruled out — this is a limit of the analyzer, not a finding about your code.
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript, Rust source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF2 Allocation hygiene — Not applicable: Rust spells out every heap allocation and makes borrowed slices (&[T], &str) its ordinary parameter types, so the allocation-aware style this card rewards elsewhere is the language's baseline rather than a rung to climb. TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X2 Cancellation propagation — no C# was loaded; this repository's Rust was read, and no request in it can be cancelled by a caller — a Rust request takes no token: a future is cancelled by dropping it, from outside the call (select!, a timeout, an aborted task), and reqwest, hyper and tonic take none
X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X26 Unsynchronised callback handoff — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Orphaned knowledge cranelift/codegen/src/ir/layout.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge cranelift/entity/src/list.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge crates/fuzzing/src/generators/single_inst_module.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge cranelift/codegen/meta/src/cdsl/typevar.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge cranelift/bforest/src/node.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge cranelift/codegen/src/dominator_tree/simple.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge cranelift/codegen/src/ir/types.rs:1— No living knowledge remains for this large file — 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.
Orphaned knowledge cranelift/filetests/src/test_unwind.rs:1— No living knowledge remains for this large file — its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites.
Boundary-crossing change coupling: wast.rs ↔ lib.rs crates/test-util/src/wast.rs:1— `crates/test-util/src/wast.rs` (context crates) and `pulley/src/lib.rs` (context pulley) sit in DIFFERENT parts of the tree yet change together 57% of the time (42 of the 74 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's 10,000 most recent commits rather than its whole history — 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 42 shared commits counted here, the most recent 3 are `00b7f8dc` pulley: Implement the wide-arithmetic proposal (#9944) (at that commit the file was still `crates/wast-util/src/lib.rs`); `fc3c868b` pulley: Fill out most remaining simd float ops (#9884) (at that commit the file was still `crates/wast-util/src/lib.rs`); `5092fe2e` Make Pulley pass `simd_f32x4_arith.wast` (#9897) (at that commit the file was still `crates/wast-util/src/lib.rs`) — run `git show` on any of them.
Boundary-crossing change coupling: compile.rs ↔ compiler.rs cranelift/src/compile.rs:1— `cranelift/src/compile.rs` (context cranelift) and `crates/cranelift/src/compiler.rs` (context crates) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 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's 10,000 most recent commits rather than its whole history — 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) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `f96aac79` Deprecate Context::compile_and_emit (#9281); `1efa3d6f` Add `clif-util compile` option to output object file (#5493); `ff37c9d8` [cranelift] Rejigger the `compile` API (#4540) — run `git show` on any of them.
TodoComment winch/codegen/src/masm.rs:2004— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment crates/c-api/src/types/val.rs:40— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment crates/c-api/src/types/val.rs:45— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:501— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:555— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:616— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:625— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:665— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:675— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:679— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:684— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:686— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:705— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment cranelift/fuzzgen/src/function_generator.rs:711— // TODO — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/visitor.rs:4781— // TODO: Hardcoded size, assuming 64-bit support only. Once — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/isa/x64/masm.rs:287— // TODO: we don't support 128-bit atomic store yet. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/isa/x64/mod.rs:38— // TODO: Once enabling/disabling flags is allowed, and once features like SIMD are supported — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/isa/aarch64/abi.rs:26— // TODO change to 16 once SIMD is supported — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/isa/aarch64/mod.rs:153— // TODO: should fill this in with an actual implementation — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/frame/mod.rs:15— // TODO: — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment winch/codegen/src/codegen/context.rs:876— // TODO: optimize the spill range; — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tests/all/cli_tests.rs:1963— // TODO: printing stderr in the child and killing the child at the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tests/all/module.rs:695— // TODO: haven't been able to find a pub way of doing this — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment tests/all/component_model/macros.rs:350— // TODO: The following case takes forever (i.e. I gave up after 30 minutes) to compile; we'll need to profile — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment src/commands/serve.rs:913— // TODO: add a dedicated `post_return_timeout` config setting — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment tests/all/component_model.rs:117— // FIXME: these components should actually get instantiated in `*.wast` — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment tests/all/gc.rs:3461— // FIXME: need to fold this into other miri testing which precompiles — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment tests/all/component_model/func.rs:1711— // FIXME(WebAssembly/component-model#32) confirm the semantics here are
FixmeComment crates/wizer/tests/all/component.rs:693— // FIXME(#13186) Rather than using the `wizen` helper function, we use
FixmeComment crates/wasmtime/src/config.rs:1472— // FIXME(#3427) - if/when implemented then un-hide this
FixmeComment crates/wasmtime/src/config.rs:3115— // FIXME(#9510) handle this in wasmtime-cranelift instead.
FixmeComment crates/wasmtime/src/engine.rs:641— // FIXME: should enumerate risc-v features and plumb them — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/lib.rs:412— // FIXME(#12069) should transition to OOM-handling versions of these collections
FixmeComment crates/wasmtime/src/runtime/module.rs:614— // FIXME: it would be best here to use a rayon-specific parallel — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/store.rs:557— /// FIXME: ideally this type would get deleted and Wasmtime's reliance on it — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/store.rs:2168— // FIXME(frank-emrich) Do we need to pin this? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/instance.rs:560— // FIXME: should be more targeted ideally with the `unsafe` than just — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/libcalls.rs:175— /// FIXME: ideally this would be a function, not a macro. If this is a function — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/libcalls.rs:374— // FIXME(#4203): this is known to not be sound in the presence of shared
FixmeComment crates/wasmtime/src/runtime/vm/libcalls.rs:387— // FIXME(#4203): this is known to not be sound in the presence of shared
FixmeComment crates/wasmtime/src/runtime/vm/memory.rs:73— //! FIXME: don't have both RuntimeMemoryCreator and wasmtime::MemoryCreator, — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/memory.rs:219— // FIXME(#4244): not supported with the pooling allocator (which
FixmeComment crates/wasmtime/src/runtime/vm/memory.rs:608— // FIXME: shared memories may not have an associated store to — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/traphandlers.rs:494— // FIXME: this throws away the entire `err` and replaces it with a — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/sys/windows/vectored_exceptions.rs:189— // FIXME: this is what the previous C++ did to make sure that TLS — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FixmeComment crates/wasmtime/src/runtime/vm/sys/unix/unwind.rs:33— // FIXME: at least on the `gcc-arm-linux-gnueabihf` toolchain on Ubuntu — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
FileTooLong: src/func_environ.rs crates/cranelift/src/func_environ.rs— FileTooLong — 4292 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 84% of them inside a single declaration: FuncEnvironment (7 blocks, 170-6484). The bar is 500 significant lines; this is 3792 over it, 8.58× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: component/concurrent.rs crates/wasmtime/src/runtime/component/concurrent.rs— FileTooLong — 3832 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 3332 over it, 7.66× 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.
FileTooLong: src/interp.rs pulley/src/interp.rs— FileTooLong — 3765 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 85% of them inside a single declaration: Interpreter (4 blocks, 1018-5731). The bar is 500 significant lines; this is 3265 over it, 7.53× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: translate/code_translator.rs crates/cranelift/src/translate/code_translator.rs— FileTooLong — 3187 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 32 free functions. The bar is 500 significant lines; this is 2687 over it, 6.37× 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.
FileTooLong: concurrent/futures_and_streams.rs crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs— FileTooLong — 3087 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 2587 over it, 6.17× 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.
FileTooLong: src/lib.rs crates/wit-bindgen/src/lib.rs— FileTooLong — 2752 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 2252 over it, 5.50× 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.
FileTooLong: fact/trampoline.rs crates/environ/src/fact/trampoline.rs— FileTooLong — 2688 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 87% of them inside a single declaration: Compiler (2 blocks, 50-4300). The bar is 500 significant lines; this is 2188 over it, 5.38× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/veri.rs cranelift/isle/veri/veri/src/veri.rs— FileTooLong — 1896 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1396 over it, 3.79× 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.
FileTooLong: src/parser.rs cranelift/reader/src/parser.rs— FileTooLong — 1842 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 86% of them inside a single declaration: Parser (2 blocks, 196-3048). The bar is 500 significant lines; this is 1342 over it, 3.68× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: src/sema.rs cranelift/isle/isle/src/sema.rs— FileTooLong — 1810 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1310 over it, 3.62× 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.
FileTooLong: src/p1.rs crates/wasi/src/p1.rs— FileTooLong — 1799 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 74% of them inside a single declaration: WasiP1Ctx (5 blocks, 141-2708). The bar is 500 significant lines; this is 1299 over it, 3.60× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: encoded/cls.rs cranelift/isle/veri/veri/src/encoded/cls.rs— FileTooLong — 1768 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1268 over it, 3.54× 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.
FileTooLong: func/typed.rs crates/wasmtime/src/runtime/component/func/typed.rs— FileTooLong — 1729 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1229 over it, 3.46× 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.
FileTooLong: runtime/types.rs crates/wasmtime/src/runtime/types.rs— FileTooLong — 1716 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1216 over it, 3.43× 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.
FileTooLong: compiler/component.rs crates/cranelift/src/compiler/component.rs— FileTooLong — 1600 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 70% of them inside a single declaration: TrampolineCompiler (3 blocks, 23-1990), declaring 64 free functions. The bar is 500 significant lines; this is 1100 over it, 3.20× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: stack_switching/instructions.rs crates/cranelift/src/func_environ/stack_switching/instructions.rs— FileTooLong — 1591 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1091 over it, 3.18× 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.
FileTooLong: src/instructions.rs cranelift/isle/veri/isaspec/src/instructions.rs— FileTooLong — 1580 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 51 free functions. The bar is 500 significant lines; this is 1080 over it, 3.16× 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.
FileTooLong: src/config.rs crates/wasmtime/src/config.rs— FileTooLong — 1565 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1065 over it, 3.13× 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.
FileTooLong: src/types.rs crates/environ/src/types.rs— FileTooLong — 1508 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 1008 over it, 3.02× 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.
FileTooLong: src/compiler.rs crates/cranelift/src/compiler.rs— FileTooLong — 1314 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 77% of them inside a single declaration: Compiler (6 blocks, 82-1649). The bar is 500 significant lines; this is 814 over it, 2.63× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: component/translate.rs crates/environ/src/component/translate.rs— FileTooLong — 1291 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), about 76% of them inside a single declaration: Translator (2 blocks, 28-1904). The bar is 500 significant lines; this is 791 over it, 2.58× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: func_environ/gc.rs crates/cranelift/src/func_environ/gc.rs— FileTooLong — 1271 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 38 free functions. The bar is 500 significant lines; this is 771 over it, 2.54× 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.
FileTooLong: src/function_generator.rs cranelift/fuzzgen/src/function_generator.rs— FileTooLong — 1228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 728 over it, 2.46× 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.
FileTooLong: src/step.rs cranelift/interpreter/src/step.rs— FileTooLong — 1183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 683 over it, 2.37× 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.
FileTooLong: commands/serve.rs src/commands/serve.rs— FileTooLong — 1182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 682 over it, 2.36× 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.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:1684— cranelift/codegen/src/isa/aarch64/abi.rs:1684-1688 | cranelift/codegen/src/isa/aarch64/abi.rs:1737-1742 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:1407— cranelift/codegen/src/isa/riscv64/inst/emit.rs:1407-1411 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2781-2785 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/s390x/abi.rs:200— cranelift/codegen/src/isa/s390x/abi.rs:200-204 | cranelift/codegen/src/isa/s390x/abi.rs:238-243 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:1091— cranelift/codegen/src/isa/s390x/inst/emit.rs:1091-1095 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1248-1252 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2780— cranelift/codegen/src/isa/s390x/inst/emit.rs:2780-2784 | cranelift/codegen/src/isa/s390x/inst/emit.rs:2791-2795 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:1071— cranelift/codegen/src/isa/x64/inst/emit.rs:1071-1075 | cranelift/codegen/src/isa/x64/inst/emit.rs:1279-1283 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/codegen/src/isa/x64/inst/mod.rs:200— cranelift/codegen/src/isa/x64/inst/mod.rs:200-204 | cranelift/codegen/src/isa/x64/inst/mod.rs:225-229 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/isle/veri/veri/src/type_inference.rs:428— cranelift/isle/veri/veri/src/type_inference.rs:428-432 | cranelift/isle/veri/veri/src/veri.rs:251-255 — before extracting anything, compare `cranelift/isle/veri/veri/src/type_inference.rs` and `cranelift/isle/veri/veri/src/veri.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) cranelift/isle/veri/veri/src/veri.rs:1733— cranelift/isle/veri/veri/src/veri.rs:1733-1737 | cranelift/isle/veri/veri/src/veri.rs:1781-1787 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/reader/src/parser.rs:2893— cranelift/reader/src/parser.rs:2893-2897 | cranelift/reader/src/parser.rs:2907-2911 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) cranelift/src/bugpoint.rs:455— cranelift/src/bugpoint.rs:455-459 | cranelift/src/bugpoint.rs:508-512 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/c-api/src/arrayref.rs:95— crates/c-api/src/arrayref.rs:95-99 | crates/c-api/src/arrayref.rs:116-120 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/component-macro/src/component.rs:600— crates/component-macro/src/component.rs:600-604 | crates/component-macro/src/component.rs:670-674 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/cranelift/src/func_environ.rs:4355— crates/cranelift/src/func_environ.rs:4355-4359 | crates/cranelift/src/func_environ.rs:4442-4448 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/cranelift/src/func_environ.rs:5894— crates/cranelift/src/func_environ.rs:5894-5898 | crates/cranelift/src/func_environ.rs:5915-5919 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/cranelift/src/func_environ/gc/null.rs:257— crates/cranelift/src/func_environ/gc/null.rs:257-263 | crates/cranelift/src/func_environ/gc/null.rs:308-312 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/environ/src/compile/module_types.rs:574— crates/environ/src/compile/module_types.rs:574-578 | crates/environ/src/compile/module_types.rs:615-619 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasi-nn/src/backend/onnx.rs:240— crates/wasi-nn/src/backend/onnx.rs:240-244 | crates/wasi-nn/src/backend/onnx.rs:269-273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasi/src/filesystem.rs:544— crates/wasi/src/filesystem.rs:544-548 | crates/wasi/src/filesystem.rs:554-558 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasi/src/filesystem/primitives/manually/open.rs:406— crates/wasi/src/filesystem/primitives/manually/open.rs:406-410 | crates/wasi/src/filesystem/primitives/manually/open.rs:450-454 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasi/src/p1.rs:1733— crates/wasi/src/p1.rs:1733-1737 | crates/wasi/src/p1.rs:1781-1785 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasi/src/sockets/tcp.rs:634— crates/wasi/src/sockets/tcp.rs:634-638 | crates/wasi/src/sockets/tcp.rs:682-686 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3597— crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3597-3601 | crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3856-3860 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasmtime/src/runtime/component/values.rs:491— crates/wasmtime/src/runtime/component/values.rs:491-495 | crates/wasmtime/src/runtime/component/values.rs:638-642 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) crates/wasmtime/src/runtime/component/values.rs:499— crates/wasmtime/src/runtime/component/values.rs:499-503 | crates/wasmtime/src/runtime/component/values.rs:647-651 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/meta/src/cdsl/typevar.rs:153— cranelift/codegen/meta/src/cdsl/typevar.rs:153-160 | cranelift/codegen/meta/src/cdsl/typevar.rs:173-180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/meta/src/cdsl/typevar.rs:163— cranelift/codegen/meta/src/cdsl/typevar.rs:163-170 | cranelift/codegen/meta/src/cdsl/typevar.rs:187-194 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/meta/src/shared/instructions.rs:1151— cranelift/codegen/meta/src/shared/instructions.rs:1151-1158 | cranelift/codegen/meta/src/shared/instructions.rs:1197-1204 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:91— cranelift/codegen/src/isa/aarch64/abi.rs:91-98 | cranelift/codegen/src/isa/aarch64/abi.rs:109-116 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:1728— cranelift/codegen/src/isa/aarch64/abi.rs:1728-1735 | cranelift/codegen/src/isa/aarch64/abi.rs:1752-1759 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1954— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1954-1961 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2042-2049 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:3489— cranelift/codegen/src/isa/aarch64/inst/emit.rs:3489-3496 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1278-1285 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1367— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1367-1374 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1314-1321 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2671— cranelift/codegen/src/isa/s390x/inst/emit.rs:2671-2678 | cranelift/codegen/src/isa/s390x/inst/emit.rs:2680-2687 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2999— cranelift/codegen/src/isa/s390x/inst/emit.rs:2999-3006 | cranelift/codegen/src/isa/s390x/inst/emit.rs:3008-3015 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:3361— cranelift/codegen/src/isa/s390x/inst/emit.rs:3361-3368 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2939-2946 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:3384— cranelift/codegen/src/isa/s390x/inst/emit.rs:3384-3391 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2975-2982 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:3526— cranelift/codegen/src/isa/s390x/inst/emit.rs:3526-3533 | cranelift/codegen/src/isa/s390x/inst/emit.rs:3559-3566 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/fuzzgen/src/function_generator.rs:292— cranelift/fuzzgen/src/function_generator.rs:292-299 | cranelift/fuzzgen/src/function_generator.rs:320-327 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/fuzzgen/src/function_generator.rs:487— cranelift/fuzzgen/src/function_generator.rs:487-494 | cranelift/fuzzgen/src/function_generator.rs:574-581 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/fuzzgen/src/passes/fcvt.rs:9— cranelift/fuzzgen/src/passes/fcvt.rs:9-16 | cranelift/fuzzgen/src/passes/int_divz.rs:13-20 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) cranelift/isle/isle/src/sema.rs:2450— cranelift/isle/isle/src/sema.rs:2450-2457 | cranelift/isle/isle/src/sema.rs:2870-2877 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1420— cranelift/isle/veri/isaspec/src/instructions.rs:1420-1427 | cranelift/isle/veri/isaspec/src/instructions.rs:1459-1466 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1821— cranelift/isle/veri/isaspec/src/instructions.rs:1821-1828 | cranelift/isle/veri/isaspec/src/instructions.rs:2373-2380 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:36— cranelift/isle/veri/veri/src/encoded/cls.rs:36-43 | cranelift/isle/veri/veri/src/encoded/clz.rs:36-43 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:84— cranelift/isle/veri/veri/src/encoded/cls.rs:84-91 | cranelift/isle/veri/veri/src/encoded/clz.rs:84-91 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:132— cranelift/isle/veri/veri/src/encoded/cls.rs:132-139 | cranelift/isle/veri/veri/src/encoded/clz.rs:132-139 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:180— cranelift/isle/veri/veri/src/encoded/cls.rs:180-187 | cranelift/isle/veri/veri/src/encoded/clz.rs:180-187 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:228— cranelift/isle/veri/veri/src/encoded/cls.rs:228-235 | cranelift/isle/veri/veri/src/encoded/clz.rs:228-235 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:276— cranelift/isle/veri/veri/src/encoded/cls.rs:276-283 | cranelift/isle/veri/veri/src/encoded/clz.rs:276-283 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1044— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1044-1050 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1186-1192 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1704— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1704-1710 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1886-1892 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2184— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2184-2190 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2230-2236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/aarch64/mod.rs:85— cranelift/codegen/src/isa/aarch64/mod.rs:85-91 | cranelift/codegen/src/isa/x64/mod.rs:94-100 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/riscv64/inst/mod.rs:1846— cranelift/codegen/src/isa/riscv64/inst/mod.rs:1846-1852 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:1873-1879 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/s390x/abi.rs:205— cranelift/codegen/src/isa/s390x/abi.rs:205-211 | cranelift/codegen/src/isa/s390x/abi.rs:244-250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/s390x/abi.rs:1388— cranelift/codegen/src/isa/s390x/abi.rs:1388-1394 | cranelift/codegen/src/isa/s390x/abi.rs:1433-1439 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:613— cranelift/codegen/src/isa/s390x/inst/emit.rs:613-619 | cranelift/codegen/src/isa/s390x/inst/emit.rs:676-682 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:635— cranelift/codegen/src/isa/s390x/inst/emit.rs:635-641 | cranelift/codegen/src/isa/s390x/inst/emit.rs:655-661 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2512— cranelift/codegen/src/isa/s390x/inst/emit.rs:2512-2518 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2046-2052 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:3289— cranelift/codegen/src/isa/s390x/inst/mod.rs:3289-3295 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3317-3323 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/unwind/systemv.rs:240— cranelift/codegen/src/isa/unwind/systemv.rs:240-246 | cranelift/codegen/src/isa/unwind/systemv.rs:250-258 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:1077— cranelift/codegen/src/isa/x64/inst/emit.rs:1077-1083 | cranelift/codegen/src/isa/x64/inst/emit.rs:1285-1291 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:1599— cranelift/codegen/src/isa/x64/inst/emit.rs:1599-1605 | cranelift/codegen/src/isa/x64/inst/emit.rs:1717-1723 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/isle/veri/isaspec/src/constraints.rs:41— cranelift/isle/veri/isaspec/src/constraints.rs:41-47 | cranelift/isle/veri/isaspec/src/constraints.rs:63-69 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) cranelift/isle/veri/veri/src/expand.rs:733— cranelift/isle/veri/veri/src/expand.rs:733-739 | cranelift/isle/veri/veri/src/expand.rs:789-795 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/cranelift/src/func_environ/gc.rs:1189— crates/cranelift/src/func_environ/gc.rs:1189-1195 | crates/cranelift/src/func_environ/gc.rs:1221-1227 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/cranelift/src/func_environ/gc/drc.rs:351— crates/cranelift/src/func_environ/gc/drc.rs:351-357 | crates/cranelift/src/func_environ/gc/drc.rs:402-408 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/cranelift/src/translate/code_translator.rs:605— crates/cranelift/src/translate/code_translator.rs:605-611 | crates/cranelift/src/translate/code_translator.rs:615-621 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/cranelift/src/translate/code_translator.rs:2204— crates/cranelift/src/translate/code_translator.rs:2204-2210 | crates/cranelift/src/translate/code_translator.rs:2596-2602 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/environ/src/component/translate/inline.rs:878— crates/environ/src/component/translate/inline.rs:878-884 | crates/environ/src/component/translate/inline.rs:894-900 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/environ/src/component/translate/inline.rs:995— crates/environ/src/component/translate/inline.rs:995-1001 | crates/environ/src/component/translate/inline.rs:1011-1017 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/environ/src/fact/trampoline.rs:2046— crates/environ/src/fact/trampoline.rs:2046-2052 | crates/environ/src/fact/trampoline.rs:2230-2236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) crates/fiber/src/nostd.rs:152— crates/fiber/src/nostd.rs:152-158 | crates/fiber/src/unix.rs:256-262 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) crates/wasi-http/src/ctx.rs:375— crates/wasi-http/src/ctx.rs:375-381 | crates/wasi-http/src/ctx.rs:462-468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/codegen/src/ir/immediates.rs:886— cranelift/codegen/src/ir/immediates.rs:886-891 | cranelift/codegen/src/ir/immediates.rs:901-906 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1288— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1288-1293 | cranelift/codegen/src/isa/x64/inst/mod.rs:1472-1477 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/x64/inst/mod.rs` 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) cranelift/codegen/src/isa/riscv64/inst/encode.rs:379— cranelift/codegen/src/isa/riscv64/inst/encode.rs:379-384 | cranelift/codegen/src/isa/riscv64/inst/encode.rs:467-472 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:853— cranelift/codegen/src/isa/s390x/inst/emit.rs:853-858 | cranelift/codegen/src/isa/s390x/inst/emit.rs:876-881 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:901— cranelift/codegen/src/isa/s390x/inst/emit.rs:901-906 | cranelift/codegen/src/isa/s390x/inst/emit.rs:924-929 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/codegen/src/isa/x64/abi.rs:1256— cranelift/codegen/src/isa/x64/abi.rs:1256-1261 | cranelift/codegen/src/isa/x64/abi.rs:1294-1299 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/isle/veri/veri/src/solver.rs:834— cranelift/isle/veri/veri/src/solver.rs:834-839 | cranelift/isle/veri/veri/src/solver.rs:894-899 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) cranelift/isle/veri/veri/src/type_inference.rs:383— cranelift/isle/veri/veri/src/type_inference.rs:383-388 | cranelift/isle/veri/veri/src/veri.rs:245-250 — before extracting anything, compare `cranelift/isle/veri/veri/src/type_inference.rs` and `cranelift/isle/veri/veri/src/veri.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) crates/component-macro/src/component.rs:357— crates/component-macro/src/component.rs:357-362 | crates/component-macro/src/component.rs:964-969 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/component-macro/src/component.rs:457— crates/component-macro/src/component.rs:457-462 | crates/component-macro/src/component.rs:699-704 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/cranelift/src/func_environ.rs:854— crates/cranelift/src/func_environ.rs:854-859 | crates/cranelift/src/func_environ.rs:876-881 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/cranelift/src/func_environ/gc/drc.rs:345— crates/cranelift/src/func_environ/gc/drc.rs:345-350 | crates/cranelift/src/func_environ/gc/drc.rs:395-401 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/environ/src/compile/address_map.rs:211— crates/environ/src/compile/address_map.rs:211-216 | crates/environ/src/compile/trap_encoding.rs:190-195 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) crates/environ/src/component/types_builder.rs:350— crates/environ/src/component/types_builder.rs:350-355 | crates/environ/src/component/types_builder.rs:367-372 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/environ/src/fact/trampoline.rs:1285— crates/environ/src/fact/trampoline.rs:1285-1290 | crates/environ/src/fact/trampoline.rs:1304-1309 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/environ/src/fact/trampoline.rs:1334— crates/environ/src/fact/trampoline.rs:1334-1339 | crates/environ/src/fact/trampoline.rs:1353-1358 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/environ/src/fact/trampoline.rs:1377— crates/environ/src/fact/trampoline.rs:1377-1382 | crates/environ/src/fact/trampoline.rs:1393-1398 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/environ/src/fact/trampoline.rs:3133— crates/environ/src/fact/trampoline.rs:3133-3138 | crates/environ/src/fact/trampoline.rs:3290-3295 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/wasi-nn/src/backend/onnx.rs:232— crates/wasi-nn/src/backend/onnx.rs:232-237 | crates/wasi-nn/src/backend/onnx.rs:263-268 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/wasi/src/filesystem.rs:432— crates/wasi/src/filesystem.rs:432-437 | crates/wasi/src/p2/host/filesystem.rs:655-660 — before extracting anything, compare `crates/wasi/src/filesystem.rs` and `crates/wasi/src/p2/host/filesystem.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) crates/wasi/src/p3/sockets/host/types/tcp.rs:119— crates/wasi/src/p3/sockets/host/types/tcp.rs:119-124 | crates/wasi/src/p3/sockets/host/types/tcp.rs:181-186 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:4311— crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:4311-4316 | crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:4350-4355 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/wasmtime/src/runtime/component/func/typed.rs:253— crates/wasmtime/src/runtime/component/func/typed.rs:253-258 | crates/wasmtime/src/runtime/component/func/typed.rs:262-267 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) crates/wasmtime/src/runtime/vm/component.rs:313— crates/wasmtime/src/runtime/vm/component.rs:313-318 | crates/wasmtime/src/runtime/vm/instance.rs:824-829 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) crates/wizer/src/lib.rs:109— crates/wizer/src/lib.rs:109-114 | src/commands/run.rs:31-36 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
MethodTooLong: Inliner.initializer crates/environ/src/component/translate/inline.rs:456— MethodTooLong — initializer runs 650 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 550 over it, 6.50× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Translator.translate_payload crates/environ/src/component/translate.rs:808— MethodTooLong — translate_payload runs 547 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 447 over it, 5.47× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: TrampolineCompiler.translate crates/cranelift/src/compiler/component.rs:130— MethodTooLong — translate runs 511 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 411 over it, 5.11× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ModuleEnvironment.translate_payload crates/environ/src/compile/module_environ.rs:462— MethodTooLong — translate_payload runs 324 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 224 over it, 3.24× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Parser.parse_inst_operands cranelift/reader/src/parser.rs:2666— MethodTooLong — parse_inst_operands runs 307 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 207 over it, 3.07× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Runner.run cranelift/isle/veri/veri/src/runner.rs:666— MethodTooLong — run runs 242 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 142 over it, 2.42× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: CommonOptions.config crates/cli-flags/src/lib.rs:927— MethodTooLong — config runs 242 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 142 over it, 2.42× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: WasiP1Ctx.poll_oneoff crates/wasi/src/p1.rs:2308— MethodTooLong — poll_oneoff runs 230 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 130 over it, 2.30× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: LinearizeDfg.trampoline crates/environ/src/component/dfg.rs:968— MethodTooLong — trampoline runs 229 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 129 over it, 2.29× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: SystemBuilder.veri_expr cranelift/isle/veri/veri/src/type_inference.rs:307— MethodTooLong — veri_expr runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjectModule.process_reloc cranelift/object/src/backend.rs:848— MethodTooLong — process_reloc runs 191 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 91 over it, 1.91× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ObjdumpCommand.disassemble src/commands/objdump.rs:128— MethodTooLong — disassemble runs 183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 83 over it, 1.83× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: TermEnv.translate_expr cranelift/isle/isle/src/sema.rs:2665— MethodTooLong — translate_expr runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Codegen.emit_block_contents cranelift/isle/isle/src/codegen.rs:672— MethodTooLong — emit_block_contents runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 77 over it, 1.77× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Instance.guest_read crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3845— MethodTooLong — guest_read runs 174 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 74 over it, 1.74× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Solver.expr_to_smt cranelift/isle/veri/veri/src/solver.rs:340— MethodTooLong — expr_to_smt runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: CommonOptions.from_engine crates/cli-flags/src/lib.rs:1417— MethodTooLong — from_engine runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Instance.guest_write crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3586— MethodTooLong — guest_write runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: CompiledBlob.perform_relocations cranelift/jit/src/compiled_blob.rs:133— MethodTooLong — perform_relocations runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Rust.emit crates/wiggle/generate/src/funcs.rs:188— MethodTooLong — emit runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: WastContext.run_directive crates/wast/src/wast.rs:656— MethodTooLong — run_directive runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ServeCommand.serve_maybe_debug src/commands/serve.rs:619— MethodTooLong — serve_maybe_debug runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.54× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ConditionsBuilder.spec_expr_kind cranelift/isle/veri/veri/src/veri.rs:1944— MethodTooLong — spec_expr_kind runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: HotBlocksCommand.format_hot_blocks src/commands/hot_blocks.rs:294— MethodTooLong — format_hot_blocks runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Config.validate crates/wasmtime/src/config.rs:2696— MethodTooLong — validate runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
Duplicated block (10 lines × 2) cranelift/codegen/meta/src/shared/instructions.rs:3398— cranelift/codegen/meta/src/shared/instructions.rs:3398-3407 | cranelift/codegen/meta/src/shared/instructions.rs:3425-3434 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:1164— cranelift/codegen/src/isa/aarch64/abi.rs:1164-1173 | cranelift/codegen/src/isa/riscv64/abi.rs:583-592 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1565— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1565-1574 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1963-1973 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1744— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1744-1753 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2053-2063 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1993— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1993-2002 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2094-2103 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2009— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2009-2018 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2135-2144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1479— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1479-1488 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:1492-1501 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1856— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1856-1865 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:1944-1953 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:591— cranelift/codegen/src/isa/riscv64/inst/emit.rs:591-600 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:699-708 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/riscv64/inst/mod.rs:570— cranelift/codegen/src/isa/riscv64/inst/mod.rs:570-579 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:589-598 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/riscv64/inst/mod.rs:1060— cranelift/codegen/src/isa/riscv64/inst/mod.rs:1060-1069 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:1074-1084 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:557— cranelift/codegen/src/isa/s390x/inst/emit.rs:557-566 | cranelift/codegen/src/isa/s390x/inst/emit.rs:696-705 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2909— cranelift/codegen/src/isa/s390x/inst/emit.rs:2909-2918 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2505-2514 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:1641— cranelift/codegen/src/isa/s390x/inst/mod.rs:1641-1650 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2815-2824 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/s390x/inst/regs.rs:106— cranelift/codegen/src/isa/s390x/inst/regs.rs:106-115 | cranelift/codegen/src/isa/s390x/inst/regs.rs:124-133 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/x64/abi.rs:750— cranelift/codegen/src/isa/x64/abi.rs:750-759 | cranelift/codegen/src/isa/x64/abi.rs:794-803 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:1172— cranelift/codegen/src/isa/x64/inst/emit.rs:1172-1181 | cranelift/codegen/src/isa/x64/inst/emit.rs:1304-1313 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/codegen/src/isa/x64/inst/mod.rs:782— cranelift/codegen/src/isa/x64/inst/mod.rs:782-791 | cranelift/codegen/src/isa/x64/inst/mod.rs:804-813 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/filetests/src/runner.rs:360— cranelift/filetests/src/runner.rs:360-369 | cranelift/filetests/src/runner.rs:375-384 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:2015— cranelift/isle/veri/isaspec/src/instructions.rs:2015-2024 | cranelift/isle/veri/isaspec/src/instructions.rs:2075-2084 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) cranelift/isle/veri/veri/src/solver.rs:215— cranelift/isle/veri/veri/src/solver.rs:215-224 | cranelift/isle/veri/veri/src/solver.rs:234-244 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) crates/component-macro/src/component.rs:481— crates/component-macro/src/component.rs:481-490 | crates/component-macro/src/component.rs:719-728 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) crates/cranelift/src/compiler/component.rs:199— crates/cranelift/src/compiler/component.rs:199-208 | crates/cranelift/src/compiler/component.rs:210-219 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) crates/cranelift/src/compiler/component.rs:358— crates/cranelift/src/compiler/component.rs:358-367 | crates/cranelift/src/compiler/component.rs:396-405 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) crates/cranelift/src/compiler/component.rs:2108— crates/cranelift/src/compiler/component.rs:2108-2117 | crates/cranelift/src/compiler/component.rs:2154-2163 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Hotspot: cranelift/codegen/src/isa/aarch64/inst/emit.rs cranelift/codegen/src/isa/aarch64/inst/emit.rs:804— cranelift/codegen/src/isa/aarch64/inst/emit.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 579 in Inst::emit at line 804. 3 of those changes were fix/bug commits, and the other 7 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/codegen/src/isa/aarch64/inst/emit.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: cranelift/codegen/src/isa/aarch64/inst/mod.rs cranelift/codegen/src/isa/aarch64/inst/mod.rs:1393— cranelift/codegen/src/isa/aarch64/inst/mod.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 433 in Inst::print_with_state at line 1393. 2 of those changes were fix/bug commits, and the other 8 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/codegen/src/isa/aarch64/inst/mod.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/cranelift/src/translate/code_translator.rs crates/cranelift/src/translate/code_translator.rs:121— crates/cranelift/src/translate/code_translator.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 472 in wasmtime_internal_cranelift::translate::code_translator::translate_operator at line 121. 3 of those changes were fix/bug commits, and the other 6 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/cranelift/src/translate/code_translator.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: cranelift/codegen/src/isa/s390x/inst/mod.rs cranelift/codegen/src/isa/s390x/inst/mod.rs:1327— cranelift/codegen/src/isa/s390x/inst/mod.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 843 in Inst::print_with_state at line 1327. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/codegen/src/isa/s390x/inst/mod.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: cranelift/codegen/src/isa/s390x/inst/emit.rs cranelift/codegen/src/isa/s390x/inst/emit.rs:1480— cranelift/codegen/src/isa/s390x/inst/emit.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 816 in Inst::emit_with_alloc_consumer at line 1480. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/codegen/src/isa/s390x/inst/emit.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/environ/src/component/translate.rs crates/environ/src/component/translate.rs:808— crates/environ/src/component/translate.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in Translator::translate_payload at line 808. 1 of those changes was a fix/bug commit, and the other 13 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/environ/src/component/translate.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/wasmtime/src/runtime/component/concurrent.rs crates/wasmtime/src/runtime/component/concurrent.rs:1370— crates/wasmtime/src/runtime/component/concurrent.rs changed 49 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in StoreContextMut::poll_until at line 1370. 8 of those changes were fix/bug commits, and the other 41 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/wasmtime/src/runtime/component/concurrent.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/wasmtime/src/config.rs crates/wasmtime/src/config.rs:2696— crates/wasmtime/src/config.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in Config::validate at line 2696. 1 of those changes was a fix/bug commit, and the other 24 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/wasmtime/src/config.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/cli-flags/src/lib.rs crates/cli-flags/src/lib.rs:1303— crates/cli-flags/src/lib.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in CommonOptions::enable_wasm_features at line 1303. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/cli-flags/src/lib.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3586— crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Instance::guest_write at line 3586. 10 of those changes were fix/bug commits, and the other 16 changed it for other reasons — 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 — a file this often edited pays the complexity back every time. Counted over 2026-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: src/commands/serve.rs src/commands/serve.rs:619— src/commands/serve.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ServeCommand::serve_maybe_debug at line 619. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- src/commands/serve.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/cranelift/src/compiler/component.rs crates/cranelift/src/compiler/component.rs:130— crates/cranelift/src/compiler/component.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in TrampolineCompiler::translate at line 130. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/cranelift/src/compiler/component.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/cranelift/src/func_environ.rs crates/cranelift/src/func_environ.rs:4561— crates/cranelift/src/func_environ.rs changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in FuncEnvironment::emit_raw_array_or_table_copy at line 4561. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/cranelift/src/func_environ.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/test-util/src/wast.rs crates/test-util/src/wast.rs:124— crates/test-util/src/wast.rs changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in wasmtime_test_util::wast::spec_test_config at line 124. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/test-util/src/wast.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: cranelift/codegen/src/isa/x64/inst/emit.rs cranelift/codegen/src/isa/x64/inst/emit.rs:162— cranelift/codegen/src/isa/x64/inst/emit.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 136 in cranelift_codegen::isa::x64::inst::emit::emit at line 162. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/codegen/src/isa/x64/inst/emit.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: cranelift/interpreter/src/step.rs cranelift/interpreter/src/step.rs:63— cranelift/interpreter/src/step.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 267 in cranelift_interpreter::step::step at line 63. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/interpreter/src/step.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/environ/src/component/dfg.rs crates/environ/src/component/dfg.rs:968— crates/environ/src/component/dfg.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in LinearizeDfg::trampoline at line 968. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/environ/src/component/dfg.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/environ/src/component/translate/inline.rs crates/environ/src/component/translate/inline.rs:456— crates/environ/src/component/translate/inline.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 103 in Inliner::initializer at line 456. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/environ/src/component/translate/inline.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/wasmtime/src/runtime/component/values.rs crates/wasmtime/src/runtime/component/values.rs:585— crates/wasmtime/src/runtime/component/values.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in Val::store at line 585. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/wasmtime/src/runtime/component/values.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/environ/src/component/info.rs crates/environ/src/component/info.rs:1212— crates/environ/src/component/info.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in Trampoline::symbol_name at line 1212. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/environ/src/component/info.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/fuzzing/src/generators/gc_ops/ops.rs crates/fuzzing/src/generators/gc_ops/ops.rs:1664— crates/fuzzing/src/generators/gc_ops/ops.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in GcOp::encode at line 1664. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/fuzzing/src/generators/gc_ops/ops.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/wit-bindgen/src/lib.rs crates/wit-bindgen/src/lib.rs:3432— crates/wit-bindgen/src/lib.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in InterfaceGenerator::generate_trait at line 3432. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/wit-bindgen/src/lib.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: cranelift/codegen/src/isa/x64/abi.rs cranelift/codegen/src/isa/x64/abi.rs:93— cranelift/codegen/src/isa/x64/abi.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in X64ABIMachineSpec::compute_arg_locs at line 93. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- cranelift/codegen/src/isa/x64/abi.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/wasmtime/src/engine.rs crates/wasmtime/src/engine.rs:547— crates/wasmtime/src/engine.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in Engine::check_compatible_with_isa_flag at line 547. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/wasmtime/src/engine.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: crates/environ/src/trap_encoding.rs crates/environ/src/trap_encoding.rs:80— crates/environ/src/trap_encoding.rs changed 4 times in last 90 days, max cyclomatic complexity 56 in Trap::from_u8 at line 80. 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-07-25..2026-10-23, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-25 22:30:06 +00:00' --until='2026-10-23 22:30:06 +00:00' --full-history --no-merges -- crates/environ/src/trap_encoding.rs`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:3441— cranelift/codegen/src/isa/aarch64/inst/emit.rs:3441-3449 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1230-1238 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:679— cranelift/codegen/src/isa/aarch64/inst/mod.rs:679-687 | cranelift/codegen/src/isa/s390x/inst/mod.rs:732-740 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/pulley_shared/abi.rs:97— cranelift/codegen/src/isa/pulley_shared/abi.rs:97-105 | cranelift/codegen/src/isa/riscv64/abi.rs:137-145 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:208— cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:208-216 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:252-260 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2289— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2289-2297 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2377-2385 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:1015— cranelift/codegen/src/isa/s390x/inst/emit.rs:1015-1023 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1037-1045 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:1111— cranelift/codegen/src/isa/s390x/inst/emit.rs:1111-1119 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1164-1172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:1770— cranelift/codegen/src/isa/s390x/inst/emit.rs:1770-1778 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1780-1788 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:1102— cranelift/codegen/src/isa/x64/inst/emit.rs:1102-1110 | cranelift/codegen/src/isa/x64/inst/emit.rs:1351-1359 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/interpreter/src/step.rs:232— cranelift/interpreter/src/step.rs:232-241 | cranelift/interpreter/src/step.rs:243-251 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1178— cranelift/isle/veri/isaspec/src/instructions.rs:1178-1186 | cranelift/isle/veri/isaspec/src/instructions.rs:1216-1224 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1244— cranelift/isle/veri/isaspec/src/instructions.rs:1244-1252 | cranelift/isle/veri/isaspec/src/instructions.rs:1271-1279 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/c-api/src/anyref.rs:256— crates/c-api/src/anyref.rs:256-264 | crates/c-api/src/eqref.rs:99-107 — before extracting anything, compare `crates/c-api/src/anyref.rs` and `crates/c-api/src/eqref.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 45 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 — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) crates/c-api/src/async.rs:107— crates/c-api/src/async.rs:107-115 | crates/c-api/src/func.rs:269-277 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) crates/component-macro/src/component.rs:535— crates/component-macro/src/component.rs:535-543 | crates/component-macro/src/component.rs:768-776 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/component-macro/src/component.rs:841— crates/component-macro/src/component.rs:841-849 | crates/component-macro/src/component.rs:898-906 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/core/src/alloc.rs:36— crates/core/src/alloc.rs:36-44 | crates/core/src/error/boxed.rs:16-24 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (9 lines × 2) crates/cranelift/src/compiler.rs:977— crates/cranelift/src/compiler.rs:977-985 | crates/cranelift/src/compiler.rs:1001-1009 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/cranelift/src/compiler/component.rs:346— crates/cranelift/src/compiler/component.rs:346-354 | crates/cranelift/src/compiler/component.rs:384-392 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/cranelift/src/func_environ.rs:1346— crates/cranelift/src/func_environ.rs:1346-1354 | crates/cranelift/src/func_environ.rs:1389-1397 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/cranelift/src/func_environ/stack_switching/instructions.rs:1207— crates/cranelift/src/func_environ/stack_switching/instructions.rs:1207-1216 | crates/cranelift/src/func_environ/stack_switching/instructions.rs:1224-1232 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/environ/src/compile/address_map.rs:159— crates/environ/src/compile/address_map.rs:159-167 | crates/environ/src/compile/trap_encoding.rs:142-150 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) crates/wasi-preview1-component-adapter/src/lib.rs:2946— crates/wasi-preview1-component-adapter/src/lib.rs:2946-2954 | crates/wasi-preview1-component-adapter/src/lib.rs:2958-2966 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) crates/wasi/src/p2/host/filesystem.rs:472— crates/wasi/src/p2/host/filesystem.rs:472-480 | crates/wasi/src/p3/filesystem/mod.rs:246-254 — before extracting anything, compare `crates/wasi/src/p2/host/filesystem.rs` and `crates/wasi/src/p3/filesystem/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) crates/wasmtime/src/engine/serialization.rs:79— crates/wasmtime/src/engine/serialization.rs:79-87 | crates/wasmtime/src/runtime/code_memory.rs:134-142 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:894— cranelift/codegen/src/isa/aarch64/abi.rs:894-905 | cranelift/codegen/src/isa/aarch64/abi.rs:925-936 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:675— cranelift/codegen/src/isa/aarch64/inst/emit.rs:675-686 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:689-700 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1303— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1303-1314 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1340-1352 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1505— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1505-1516 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:1520-1531 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:626— cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:626-637 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2770-2781 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:189— cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:189-200 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:212-223 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2264— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2264-2275 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2349-2360 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/riscv64/inst/mod.rs:1543— cranelift/codegen/src/isa/riscv64/inst/mod.rs:1543-1554 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:1596-1607 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:881— cranelift/codegen/src/isa/s390x/inst/emit.rs:881-892 | cranelift/codegen/src/isa/s390x/inst/emit.rs:929-940 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:1790— cranelift/codegen/src/isa/s390x/inst/emit.rs:1790-1801 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1803-1814 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2605— cranelift/codegen/src/isa/s390x/inst/emit.rs:2605-2616 | cranelift/codegen/src/isa/s390x/inst/emit.rs:2618-2629 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:2137— cranelift/codegen/src/isa/s390x/inst/mod.rs:2137-2148 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2155-2166 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:3637— cranelift/codegen/src/isa/s390x/inst/mod.rs:3637-3648 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3662-3673 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/frontend/src/frontend.rs:901— cranelift/frontend/src/frontend.rs:901-912 | cranelift/frontend/src/frontend.rs:997-1008 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/isle/isle/src/parser.rs:531— cranelift/isle/isle/src/parser.rs:531-542 | cranelift/isle/isle/src/parser.rs:587-598 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1535— cranelift/isle/veri/isaspec/src/instructions.rs:1535-1546 | cranelift/isle/veri/isaspec/src/instructions.rs:1650-1661 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/isle/veri/veri/src/encoded/clz.rs:73— cranelift/isle/veri/veri/src/encoded/clz.rs:73-84 | cranelift/isle/veri/veri/src/encoded/clz.rs:357-368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) cranelift/isle/veri/veri/src/encoded/rev.rs:55— cranelift/isle/veri/veri/src/encoded/rev.rs:55-66 | cranelift/isle/veri/veri/src/encoded/rev.rs:165-176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) crates/c-api/src/component/component.rs:164— crates/c-api/src/component/component.rs:164-175 | crates/c-api/src/component/instance.rs:15-26 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) crates/c-api/src/component/types/component.rs:84— crates/c-api/src/component/types/component.rs:84-95 | crates/c-api/src/component/types/instance.rs:30-41 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) crates/component-macro/src/component.rs:724— crates/component-macro/src/component.rs:724-735 | crates/component-macro/src/component.rs:822-833 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) crates/cranelift/src/func_environ.rs:1632— crates/cranelift/src/func_environ.rs:1632-1643 | crates/cranelift/src/func_environ.rs:1672-1683 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) crates/cranelift/src/translate/code_translator.rs:3912— crates/cranelift/src/translate/code_translator.rs:3912-3923 | crates/cranelift/src/translate/code_translator.rs:3963-3974 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) crates/environ/src/fact/trampoline.rs:1274— crates/environ/src/fact/trampoline.rs:1274-1285 | crates/environ/src/fact/trampoline.rs:1323-1334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) crates/wasi-preview1-component-adapter/src/lib.rs:1093— crates/wasi-preview1-component-adapter/src/lib.rs:1093-1104 | crates/wasi-preview1-component-adapter/src/lib.rs:1843-1855 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
ClassTooLong: FuncEnvironment crates/cranelift/src/func_environ.rs:170— ClassTooLong — 3626 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 228 methods, 7 blocks, lines 170-6484. The bar is 400 significant lines; this is 3226 over it, 9.07× 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.
ClassTooLong: Interpreter pulley/src/interp.rs:1018— ClassTooLong — 3183 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 19 methods, 4 blocks, lines 1018-5731. The bar is 400 significant lines; this is 2783 over it, 7.96× 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.
ClassTooLong: Compiler crates/environ/src/fact/trampoline.rs:50— ClassTooLong — 2349 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 118 methods, 2 blocks, lines 50-4300. The bar is 400 significant lines; this is 1949 over it, 5.87× 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.
ClassTooLong: Parser cranelift/reader/src/parser.rs:196— ClassTooLong — 1591 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 88 methods, 2 blocks, lines 196-3048. The bar is 400 significant lines; this is 1191 over it, 3.98× 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.
ClassTooLong: WasiP1Ctx crates/wasi/src/p1.rs:141— ClassTooLong — 1332 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 11 methods, 5 blocks, lines 141-2708. The bar is 400 significant lines; this is 932 over it, 3.33× 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.
ClassTooLong: TrampolineCompiler crates/cranelift/src/compiler/component.rs:23— ClassTooLong — 1115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 33 methods, 3 blocks, lines 23-1990. The bar is 400 significant lines; this is 715 over it, 2.79× 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.
ClassTooLong: ConditionsBuilder cranelift/isle/veri/veri/src/veri.rs:1104— ClassTooLong — 1100 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 68 methods, 2 blocks, lines 1104-2800. The bar is 400 significant lines; this is 700 over it, 2.75× 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.
ClassTooLong: Compiler crates/cranelift/src/compiler.rs:82— ClassTooLong — 1009 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 16 methods, 6 blocks, lines 82-1649. The bar is 400 significant lines; this is 609 over it, 2.52× 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.
ClassTooLong: Translator crates/environ/src/component/translate.rs:28— ClassTooLong — 987 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 17 methods, 2 blocks, lines 28-1904. The bar is 400 significant lines; this is 587 over it, 2.47× 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.
ClassTooLong: Parser cranelift/isle/isle/src/parser.rs:28— ClassTooLong — 982 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 68 methods, 2 blocks, lines 28-1320. The bar is 400 significant lines; this is 582 over it, 2.46× 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.
ClassTooLong: Config crates/wasmtime/src/config.rs:159— ClassTooLong — 929 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 114 methods, 4 blocks, lines 159-3625. The bar is 400 significant lines; this is 529 over it, 2.32× 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.
ClassTooLong: TermEnv cranelift/isle/isle/src/sema.rs:425— ClassTooLong — 917 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 20 methods, 2 blocks, lines 425-2983. The bar is 400 significant lines; this is 517 over it, 2.29× 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.
ClassTooLong: Inliner crates/environ/src/component/translate/inline.rs:153— ClassTooLong — 844 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 8 methods, 2 blocks, lines 153-1755. The bar is 400 significant lines; this is 444 over it, 2.11× 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.
ClassTooLong: RunCommand src/commands/run.rs:40— ClassTooLong — 843 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 20 methods, 3 blocks, lines 40-1368. The bar is 400 significant lines; this is 443 over it, 2.11× 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.
ClassTooLong: Codegen cranelift/isle/isle/src/codegen.rs:70— ClassTooLong — 755 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 20 methods, 2 blocks, lines 70-1197. The bar is 400 significant lines; this is 355 over it, 1.89× 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.
ClassTooLong: Solver cranelift/isle/veri/veri/src/solver.rs:95— ClassTooLong — 735 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 51 methods, 3 blocks, lines 95-1222. The bar is 400 significant lines; this is 335 over it, 1.84× 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.
ClassTooLong: CommonOptions crates/cli-flags/src/lib.rs:707— ClassTooLong — 675 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 7 methods, 4 blocks, lines 707-1841. The bar is 400 significant lines; this is 275 over it, 1.69× 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.
ClassTooLong: Instance crates/wasmtime/src/runtime/vm/instance.rs:91— ClassTooLong — 669 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 70 methods, 3 blocks, lines 91-1553. The bar is 400 significant lines; this is 269 over it, 1.67× 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.
ClassTooLong: Val crates/wasmtime/src/runtime/component/values.rs:80— ClassTooLong — 664 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 7 methods, 17 blocks, lines 80-1394. The bar is 400 significant lines; this is 264 over it, 1.66× 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.
ClassTooLong: Runner cranelift/isle/veri/veri/src/runner.rs:519— ClassTooLong — 653 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 27 methods, 2 blocks, lines 519-1524. The bar is 400 significant lines; this is 253 over it, 1.63× 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.
ClassTooLong: ComponentTypesBuilder crates/environ/src/component/types_builder.rs:30— ClassTooLong — 626 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 76 methods, 5 blocks, lines 30-986. The bar is 400 significant lines; this is 226 over it, 1.57× 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.
ClassTooLong: ObjectModule cranelift/object/src/backend.rs:237— ClassTooLong — 624 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 5 methods, 4 blocks, lines 237-1114. The bar is 400 significant lines; this is 224 over it, 1.56× 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.
ClassTooLong: WastContext crates/wast/src/wast.rs:17— ClassTooLong — 558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 25 methods, 2 blocks, lines 17-885. The bar is 400 significant lines; this is 158 over it, 1.40× 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.
ClassTooLong: ExplorerWriter cranelift/isle/veri/veri/src/explorer.rs:20— ClassTooLong — 545 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 48 methods, 2 blocks, lines 20-807. The bar is 400 significant lines; this is 145 over it, 1.36× 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.
ClassTooLong: DrcCompiler crates/cranelift/src/func_environ/gc/drc.rs:19— ClassTooLong — 529 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 8 methods, 3 blocks, lines 19-938. The bar is 400 significant lines; this is 129 over it, 1.32× 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.
TooManyMethods: FuncEnvironment crates/cranelift/src/func_environ.rs:170— TooManyMethods — 228 methods, declared across 2 files: src/func_environ.rs (218), func_environ/gc.rs (10). The bar is 30 methods; this is 198 over it, 7.60× 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.
TooManyMethods: StoreOpaque crates/wasmtime/src/runtime/store.rs:439— TooManyMethods — 173 methods, declared across 10 files: runtime/store.rs (64), store/gc.rs (34), component/concurrent.rs (29), component/store.rs (23), +6 more file(s). The bar is 30 methods; this is 143 over it, 5.77× 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.
TooManyMethods: Compiler crates/environ/src/fact/trampoline.rs:50— TooManyMethods — 118 methods. The bar is 30 methods; this is 88 over it, 3.93× 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.
TooManyMethods: Config crates/wasmtime/src/config.rs:159— TooManyMethods — 114 methods. The bar is 30 methods; this is 84 over it, 3.80× 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.
TooManyMethods: Engine crates/wasmtime/src/engine.rs:45— TooManyMethods — 90 methods, declared across 3 files: src/config.rs (45), src/engine.rs (44), runtime/type_registry.rs (1). The bar is 30 methods; this is 60 over it, 3.00× 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.
TooManyMethods: Parser cranelift/reader/src/parser.rs:196— TooManyMethods — 88 methods. The bar is 30 methods; this is 58 over it, 2.93× 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.
TooManyMethods: Instance crates/wasmtime/src/runtime/component/instance.rs:39— TooManyMethods — 88 methods, declared across 4 files: concurrent/futures_and_streams.rs (32), component/instance.rs (25), component/concurrent.rs (24), runtime/debug.rs (7). The bar is 30 methods; this is 58 over it, 2.93× 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.
TooManyMethods: ComponentTypesBuilder crates/environ/src/component/types_builder.rs:30— TooManyMethods — 76 methods, declared across 2 files: component/types_builder.rs (66), fact/signature.rs (10). The bar is 30 methods; this is 46 over it, 2.53× 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.
TooManyMethods: TryIndexMap crates/environ/src/collections/index_map.rs:24— TooManyMethods — 74 methods. The bar is 30 methods; this is 44 over it, 2.47× 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.
TooManyMethods: Instance crates/wasmtime/src/runtime/vm/instance.rs:91— TooManyMethods — 70 methods. The bar is 30 methods; this is 40 over it, 2.33× 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.
TooManyMethods: Parser cranelift/isle/isle/src/parser.rs:28— TooManyMethods — 68 methods. The bar is 30 methods; this is 38 over it, 2.27× 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.
TooManyMethods: ConditionsBuilder cranelift/isle/veri/veri/src/veri.rs:1104— TooManyMethods — 68 methods. The bar is 30 methods; this is 38 over it, 2.27× 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.
TooManyMethods: BuiltinFunctions crates/cranelift/src/func_environ.rs:88— TooManyMethods — 54 methods. The bar is 30 methods; this is 24 over it, 1.80× 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.
TooManyMethods: Solver cranelift/isle/veri/veri/src/solver.rs:95— TooManyMethods — 51 methods. The bar is 30 methods; this is 21 over it, 1.70× 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.
TooManyMethods: FunctionBuilder cranelift/frontend/src/frontend.rs:38— TooManyMethods — 49 methods. The bar is 30 methods; this is 19 over it, 1.63× 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.
TooManyMethods: PoolingAllocationConfig crates/wasmtime/src/config.rs:4013— TooManyMethods — 49 methods, declared across 2 files: src/config.rs (48), allocator/pooling.rs (1). The bar is 30 methods; this is 19 over it, 1.63× 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.
TooManyMethods: ExplorerWriter cranelift/isle/veri/veri/src/explorer.rs:20— TooManyMethods — 48 methods. The bar is 30 methods; this is 18 over it, 1.60× 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.
TooManyMethods: Store crates/wasmtime/src/runtime/store.rs:196— TooManyMethods — 47 methods, declared across 7 files: runtime/store.rs (22), store/async_.rs (6), component/store.rs (5), store/gc.rs (5), +3 more file(s). The bar is 30 methods; this is 17 over it, 1.57× 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.
TooManyMethods: ConcurrentState crates/wasmtime/src/runtime/component/concurrent.rs:5939— TooManyMethods — 44 methods, declared across 3 files: component/concurrent.rs (33), concurrent/futures_and_streams.rs (7), concurrent/task_group_hook.rs (4). The bar is 30 methods; this is 14 over it, 1.47× 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.
TooManyMethods: StoreContextMut crates/wasmtime/src/runtime/store/context.rs:19— TooManyMethods — 44 methods, declared across 9 files: component/concurrent.rs (12), runtime/store.rs (9), component/store.rs (5), store/async_.rs (5), +5 more file(s). The bar is 30 methods; this is 14 over it, 1.47× 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.
TooManyMethods: VMGcRef crates/wasmtime/src/runtime/vm/gc/gc_ref.rs:131— TooManyMethods — 42 methods, declared across 6 files: gc/gc_ref.rs (23), enabled/arrayref.rs (5), enabled/exnref.rs (4), enabled/externref.rs (4), +2 more file(s). The bar is 30 methods; this is 12 over it, 1.40× 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.
TooManyMethods: ComponentInstance crates/wasmtime/src/runtime/vm/component.rs:106— TooManyMethods — 41 methods. The bar is 30 methods; this is 11 over it, 1.37× 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.
TooManyMethods: Module crates/wasmtime/src/runtime/module.rs:128— TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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.
TooManyMethods: HeapType crates/wasmtime/src/runtime/types.rs:721— TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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.
TooManyMethods: InterfaceGenerator crates/wit-bindgen/src/lib.rs:1865— TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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.
FunctionTooLong: wasmtime_internal_cranelift::translate::code_translator::translate_operator crates/cranelift/src/translate/code_translator.rs:121— FunctionTooLong — wasmtime_internal_cranelift::translate::code_translator::translate_operator runs 2373 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 2273 over it, 23.73× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_interpreter::step::step cranelift/interpreter/src/step.rs:63— FunctionTooLong — cranelift_interpreter::step::step runs 955 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 855 over it, 9.55× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::cls::cls64 cranelift/isle/veri/veri/src/encoded/cls.rs:9— FunctionTooLong — cranelift_isle_veri::encoded::cls::cls64 runs 567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 467 over it, 5.67× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::cls::cls32 cranelift/isle/veri/veri/src/encoded/cls.rs:770— FunctionTooLong — cranelift_isle_veri::encoded::cls::cls32 runs 490 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 390 over it, 4.90× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::cls::cls16 cranelift/isle/veri/veri/src/encoded/cls.rs:1429— FunctionTooLong — cranelift_isle_veri::encoded::cls::cls16 runs 385 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 285 over it, 3.85× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::cls::cls8 cranelift/isle/veri/veri/src/encoded/cls.rs:1948— FunctionTooLong — cranelift_isle_veri::encoded::cls::cls8 runs 313 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 213 over it, 3.13× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_component_macro::component::expand_flags crates/component-macro/src/component.rs:1159— FunctionTooLong — wasmtime_internal_component_macro::component::expand_flags runs 276 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 176 over it, 2.76× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::clz::clz64 cranelift/isle/veri/veri/src/encoded/clz.rs:9— FunctionTooLong — cranelift_isle_veri::encoded::clz::clz64 runs 243 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 143 over it, 2.43× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::func_environ::stack_switching::instructions::translate_resume_impl crates/cranelift/src/func_environ/stack_switching/instructions.rs:1660— FunctionTooLong — wasmtime_internal_cranelift::func_environ::stack_switching::instructions::translate_resume_impl runs 233 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 133 over it, 2.33× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri_isaspec::bin::constraints::define_insts cranelift/isle/veri/isaspec/src/bin/constraints.rs:70— FunctionTooLong — cranelift_isle_veri_isaspec::bin::constraints::define_insts runs 210 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 110 over it, 2.10× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::clz::clz32 cranelift/isle/veri/veri/src/encoded/clz.rs:339— FunctionTooLong — cranelift_isle_veri::encoded::clz::clz32 runs 208 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 108 over it, 2.08× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::translate::code_translator::type_of crates/cranelift/src/translate/code_translator.rs:4167— FunctionTooLong — wasmtime_internal_cranelift::translate::code_translator::type_of runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::func_environ::gc::translate_ref_test crates/cranelift/src/func_environ/gc.rs:1244— FunctionTooLong — wasmtime_internal_cranelift::func_environ::gc::translate_ref_test runs 175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 75 over it, 1.75× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::clz::clz16 cranelift/isle/veri/veri/src/encoded/clz.rs:622— FunctionTooLong — cranelift_isle_veri::encoded::clz::clz16 runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_fuzzgen::function_generator::valid_for_target cranelift/fuzzgen/src/function_generator.rs:424— FunctionTooLong — cranelift_fuzzgen::function_generator::valid_for_target runs 168 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 68 over it, 1.68× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::debug::transform::attr::clone_die_attributes crates/cranelift/src/debug/transform/attr.rs:40— FunctionTooLong — wasmtime_internal_cranelift::debug::transform::attr::clone_die_attributes runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::debug::transform::expression::compile_expression crates/cranelift/src/debug/transform/expression.rs:436— FunctionTooLong — wasmtime_internal_cranelift::debug::transform::expression::compile_expression runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_wasi::p2::add_named_to_linker_with_options_async crates/wasi/src/p2/mod.rs:653— FunctionTooLong — wasmtime_wasi::p2::add_named_to_linker_with_options_async runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::func_environ::stack_switching::instructions::translate_switch crates/cranelift/src/func_environ/stack_switching/instructions.rs:2276— FunctionTooLong — wasmtime_internal_cranelift::func_environ::stack_switching::instructions::translate_switch runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::bounds_checks::bounds_check_field_access crates/cranelift/src/bounds_checks.rs:167— FunctionTooLong — wasmtime_internal_cranelift::bounds_checks::bounds_check_field_access runs 148 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 48 over it, 1.48× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri_isaspec::instructions::amode_cases cranelift/isle/veri/isaspec/src/instructions.rs:1101— FunctionTooLong — cranelift_isle_veri_isaspec::instructions::amode_cases runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::encoded::clz::clz8 cranelift/isle/veri/veri/src/encoded/clz.rs:857— FunctionTooLong — cranelift_isle_veri::encoded::clz::clz8 runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: cranelift_isle_veri::bin::veri::main cranelift/isle/veri/veri/src/bin/veri.rs:188— FunctionTooLong — cranelift_isle_veri::bin::veri::main runs 135 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 35 over it, 1.35× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_internal_cranelift::debug::transform::unit::clone_unit crates/cranelift/src/debug/transform/unit.rs:261— FunctionTooLong — wasmtime_internal_cranelift::debug::transform::unit::clone_unit runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
FunctionTooLong: wasmtime_wasi::filesystem::primitives::windows::create_file_at_w::CreateFileAtW crates/wasi/src/filesystem/primitives/windows/create_file_at_w.rs:75— FunctionTooLong — wasmtime_wasi::filesystem::primitives::windows::create_file_at_w::CreateFileAtW runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 26 over it, 1.26× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
Duplicated block (14 lines × 2) cranelift/codegen/src/ir/dfg.rs:546— cranelift/codegen/src/ir/dfg.rs:546-559 | cranelift/codegen/src/ir/dfg.rs:586-599 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:1178— cranelift/codegen/src/isa/aarch64/abi.rs:1178-1191 | cranelift/codegen/src/isa/riscv64/abi.rs:597-610 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2158— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2158-2171 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2204-2217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2753— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2753-2766 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:3028-3041 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:970— cranelift/codegen/src/isa/aarch64/inst/mod.rs:970-983 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:360-373 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/riscv64/inst/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:3165— cranelift/codegen/src/isa/aarch64/inst/mod.rs:3165-3178 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3697-3710 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:3442— cranelift/codegen/src/isa/s390x/inst/emit.rs:3442-3455 | cranelift/codegen/src/isa/s390x/inst/emit.rs:3673-3686 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/unwind/winarm64.rs:112— cranelift/codegen/src/isa/unwind/winarm64.rs:112-125 | cranelift/codegen/src/isa/unwind/winarm64.rs:132-145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:1006— cranelift/codegen/src/isa/x64/inst/emit.rs:1006-1019 | cranelift/codegen/src/isa/x64/inst/emit.rs:1213-1226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/codegen/src/opts/div_const.rs:146— cranelift/codegen/src/opts/div_const.rs:146-159 | cranelift/codegen/src/opts/div_const.rs:189-202 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:978— cranelift/isle/veri/isaspec/src/instructions.rs:978-991 | cranelift/isle/veri/isaspec/src/instructions.rs:1086-1099 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/cranelift/src/func_environ.rs:2134— crates/cranelift/src/func_environ.rs:2134-2147 | crates/cranelift/src/func_environ.rs:2155-2168 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/cranelift/src/func_environ.rs:2758— crates/cranelift/src/func_environ.rs:2758-2771 | crates/cranelift/src/func_environ.rs:3705-3718 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/cranelift/src/func_environ/gc.rs:680— crates/cranelift/src/func_environ/gc.rs:680-694 | crates/cranelift/src/func_environ/gc.rs:802-815 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/cranelift/src/translate/code_translator.rs:2673— crates/cranelift/src/translate/code_translator.rs:2673-2686 | crates/cranelift/src/translate/code_translator.rs:3094-3114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/cranelift/src/translate/code_translator.rs:3922— crates/cranelift/src/translate/code_translator.rs:3922-3935 | crates/cranelift/src/translate/code_translator.rs:3977-3990 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/environ/src/fact/trampoline.rs:2096— crates/environ/src/fact/trampoline.rs:2096-2109 | crates/environ/src/fact/trampoline.rs:2187-2200 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/fiber/src/stackswitch/riscv32imac.rs:83— crates/fiber/src/stackswitch/riscv32imac.rs:83-96 | crates/fiber/src/stackswitch/riscv64.rs:105-118 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14 lines × 2) crates/wasi-preview1-component-adapter/src/lib.rs:682— crates/wasi-preview1-component-adapter/src/lib.rs:682-695 | crates/wasi-preview1-component-adapter/src/lib.rs:734-747 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/wasmtime/src/runtime/gc/enabled/exnref.rs:549— crates/wasmtime/src/runtime/gc/enabled/exnref.rs:549-562 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:505-518 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` and `crates/wasmtime/src/runtime/gc/enabled/structref.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 114 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 — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) winch/codegen/src/codegen/mod.rs:972— winch/codegen/src/codegen/mod.rs:972-985 | winch/codegen/src/codegen/mod.rs:1168-1181 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) winch/codegen/src/isa/aarch64/masm.rs:1557— winch/codegen/src/isa/aarch64/masm.rs:1557-1570 | winch/codegen/src/isa/x64/masm.rs:1589-1602 — `winch/codegen/src/isa/aarch64/masm.rs` and `winch/codegen/src/isa/x64/masm.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 68 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (14 lines × 2) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:306— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:306-319 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:214-227 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/arrayref.rs` and `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 72 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 — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) crates/cranelift/src/func_environ/gc/drc.rs:755— crates/cranelift/src/func_environ/gc/drc.rs:755-770 | crates/cranelift/src/func_environ/gc/drc.rs:885-898 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14 lines × 2) crates/fuzzing/src/generators/gc_ops/ops.rs:1560— crates/fuzzing/src/generators/gc_ops/ops.rs:1560-1573 | crates/fuzzing/src/generators/gc_ops/ops.rs:1591-1604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/meta/src/shared/instructions.rs:501— cranelift/codegen/meta/src/shared/instructions.rs:501-511 | cranelift/codegen/meta/src/shared/instructions.rs:525-535 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:634— cranelift/codegen/src/isa/aarch64/inst/emit.rs:634-644 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:647-657 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:525— cranelift/codegen/src/isa/aarch64/inst/mod.rs:525-535 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:576-586 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:662— cranelift/codegen/src/isa/aarch64/inst/mod.rs:662-672 | cranelift/codegen/src/isa/s390x/inst/mod.rs:724-734 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/aarch64/lower/isle.rs:695— cranelift/codegen/src/isa/aarch64/lower/isle.rs:695-705 | cranelift/codegen/src/isa/aarch64/lower/isle.rs:743-753 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:223— cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:223-233 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:266-276 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:633— cranelift/codegen/src/isa/riscv64/inst/emit.rs:633-643 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:733-743 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/riscv64/inst/encode.rs:144— cranelift/codegen/src/isa/riscv64/inst/encode.rs:144-154 | cranelift/codegen/src/isa/riscv64/inst/encode.rs:181-191 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/riscv64/inst/mod.rs:1045— cranelift/codegen/src/isa/riscv64/inst/mod.rs:1045-1055 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:1073-1083 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:856— cranelift/codegen/src/isa/s390x/inst/emit.rs:856-866 | cranelift/codegen/src/isa/s390x/inst/emit.rs:904-914 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/frontend/src/frontend.rs:848— cranelift/frontend/src/frontend.rs:848-858 | cranelift/frontend/src/frontend.rs:1048-1058 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/isle/veri/veri/src/encoded/clz.rs:66— cranelift/isle/veri/veri/src/encoded/clz.rs:66-76 | cranelift/isle/veri/veri/src/encoded/clz.rs:398-408 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) cranelift/isle/veri/veri/src/encoded/clz.rs:340— cranelift/isle/veri/veri/src/encoded/clz.rs:340-350 | cranelift/isle/veri/veri/src/encoded/clz.rs:858-868 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/environ/src/fact/trampoline.rs:1404— crates/environ/src/fact/trampoline.rs:1404-1414 | crates/environ/src/fact/trampoline.rs:1420-1430 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/environ/src/fact/trampoline.rs:2047— crates/environ/src/fact/trampoline.rs:2047-2057 | crates/environ/src/fact/trampoline.rs:2301-2311 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/wasi-preview1-component-adapter/src/lib.rs:1071— crates/wasi-preview1-component-adapter/src/lib.rs:1071-1081 | crates/wasi/src/p1.rs:931-941 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 2) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3391— crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3391-3401 | crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3411-3421 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/wasmtime/src/runtime/gc/enabled/exnref.rs:356— crates/wasmtime/src/runtime/gc/enabled/exnref.rs:356-366 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:357-367 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` and `crates/wasmtime/src/runtime/gc/enabled/structref.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 114 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 — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) src/commands/hot_blocks.rs:462— src/commands/hot_blocks.rs:462-472 | src/commands/hot_blocks.rs:477-487 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) winch/codegen/src/codegen/mod.rs:1075— winch/codegen/src/codegen/mod.rs:1075-1085 | winch/codegen/src/codegen/mod.rs:2061-2071 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) winch/codegen/src/codegen/mod.rs:2667— winch/codegen/src/codegen/mod.rs:2667-2677 | winch/codegen/src/codegen/mod.rs:2699-2709 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/environ/src/graphs.rs:124— crates/environ/src/graphs.rs:124-134 | crates/wasmtime/src/compile.rs:1214-1224 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 2) cranelift/isle/veri/veri/src/solver.rs:752— cranelift/isle/veri/veri/src/solver.rs:752-762 | cranelift/isle/veri/veri/src/solver.rs:767-777 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/fuzzing/src/generators/gc_access.rs:1213— crates/fuzzing/src/generators/gc_access.rs:1213-1223 | crates/fuzzing/src/generators/gc_access.rs:1301-1311 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) crates/test-programs/src/bin/p2_api_proxy_streaming.rs:72— crates/test-programs/src/bin/p2_api_proxy_streaming.rs:72-82 | crates/test-programs/src/bin/p2_api_proxy_streaming.rs:121-131 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2102— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2102-2114 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2128-2140 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:458— cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:458-470 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:532-544 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/codegen/src/isa/s390x/abi.rs:1541— cranelift/codegen/src/isa/s390x/abi.rs:1541-1553 | cranelift/codegen/src/isa/s390x/abi.rs:1609-1621 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/codegen/src/isa/x64/lower/isle.rs:1441— cranelift/codegen/src/isa/x64/lower/isle.rs:1441-1453 | cranelift/codegen/src/isa/x64/lower/isle.rs:1456-1468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/codegen/src/machinst/mod.rs:685— cranelift/codegen/src/machinst/mod.rs:685-697 | cranelift/codegen/src/machinst/mod.rs:734-746 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1189— cranelift/isle/veri/isaspec/src/instructions.rs:1189-1201 | cranelift/isle/veri/isaspec/src/instructions.rs:1227-1239 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/isle/veri/veri/src/bin/rule_stats.rs:75— cranelift/isle/veri/veri/src/bin/rule_stats.rs:75-87 | cranelift/isle/veri/veri/src/runner.rs:402-414 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) cranelift/isle/veri/veri/src/encoded/clz.rs:16— cranelift/isle/veri/veri/src/encoded/clz.rs:16-28 | cranelift/isle/veri/veri/src/encoded/clz.rs:348-360 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/isle/veri/veri/src/solver.rs:1003— cranelift/isle/veri/veri/src/solver.rs:1003-1015 | cranelift/isle/veri/veri/src/solver.rs:1065-1077 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/component-macro/src/component.rs:486— crates/component-macro/src/component.rs:486-498 | crates/component-macro/src/component.rs:577-589 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/cranelift/src/translate/code_translator.rs:3013— crates/cranelift/src/translate/code_translator.rs:3013-3025 | crates/cranelift/src/translate/code_translator.rs:3047-3059 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/cranelift/src/translate/code_translator.rs:3030— crates/cranelift/src/translate/code_translator.rs:3030-3042 | crates/cranelift/src/translate/code_translator.rs:3065-3077 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/wasmtime/src/compile.rs:534— crates/wasmtime/src/compile.rs:534-546 | crates/wasmtime/src/compile.rs:554-566 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/wit-bindgen/src/lib.rs:1999— crates/wit-bindgen/src/lib.rs:1999-2011 | crates/wit-bindgen/src/lib.rs:2214-2226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) src/commands/run.rs:335— src/commands/run.rs:335-347 | src/commands/serve.rs:585-597 — before extracting anything, compare `src/commands/run.rs` and `src/commands/serve.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 113 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 — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) winch/codegen/src/codegen/mod.rs:925— winch/codegen/src/codegen/mod.rs:925-937 | winch/codegen/src/codegen/mod.rs:1103-1115 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) winch/codegen/src/isa/x64/asm.rs:461— winch/codegen/src/isa/x64/asm.rs:461-473 | winch/codegen/src/isa/x64/asm.rs:508-520 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) cranelift/isle/veri/veri/src/runner.rs:883— cranelift/isle/veri/veri/src/runner.rs:883-896 | cranelift/isle/veri/veri/src/runner.rs:908-920 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/wasmtime/src/runtime/component/func/typed.rs:2365— crates/wasmtime/src/runtime/component/func/typed.rs:2365-2377 | crates/wasmtime/src/runtime/component/func/typed.rs:2396-2408 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/fuzzing/src/generators/gc_access.rs:537— crates/fuzzing/src/generators/gc_access.rs:537-549 | crates/fuzzing/src/generators/gc_access.rs:552-564 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/fuzzing/src/generators/value.rs:63— crates/fuzzing/src/generators/value.rs:63-78 | crates/fuzzing/src/generators/value.rs:89-101 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/fuzzing/src/oracles/api.rs:956— crates/fuzzing/src/oracles/api.rs:956-968 | crates/fuzzing/src/oracles/api.rs:1270-1282 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/test-programs/src/bin/async_cancel_caller.rs:398— crates/test-programs/src/bin/async_cancel_caller.rs:398-410 | crates/test-programs/src/bin/async_cancel_caller.rs:417-429 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) crates/test-programs/src/bin/p2_http_outbound_request_get.rs:17— crates/test-programs/src/bin/p2_http_outbound_request_get.rs:17-29 | crates/test-programs/src/bin/p3_http_outbound_request_get.rs:26-38 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) crates/test-programs/src/bin/p2_path_rename.rs:113— crates/test-programs/src/bin/p2_path_rename.rs:113-125 | crates/test-programs/src/bin/p2_path_rename.rs:132-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
XxxComment tests/disas.rs:313— // XXX: Avoid spawning a `wasmtime objdump` subprocess for every — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment src/commands/objdump.rs:123— // XXX: This is only `pub` so it can be shared with the `disas` test runner, — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/wasmtime/src/config.rs:793— /// XXX: For internal fuzzing and debugging use only! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/cli-flags/src/lib.rs:227— /// XXX: For internal fuzzing and debugging use only! — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/wasmtime/src/runtime/type_registry.rs:922— // XXX: Do not write new entries to `self` or its arenas in this block — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/wasmtime/src/runtime/type_registry.rs:941— // XXX: From the creation of the `Undo` and afterwards, we can write to — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/wasmtime/src/runtime/gc/enabled/rooting.rs:1520— // XXX: Don't use this `DerefMut` implementation to `mem::{swap,replace}` or — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/wasmtime/src/compile/code_builder.rs:54— // XXX: we can't use `'a` here without forcing us to change a bunch of — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/fuzzing/src/oom.rs:111— // XXX: `env_logger` internally buffers writes in a `Vec` which — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/environ/src/compile/mod.rs:330— // XXX: the `object` crate won't successfully build an object — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/environ/src/compile/module_environ.rs:153— /// XXX: Being "known" requires more here than it does for functions: it is — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/environ/src/collections/secondary_map.rs:31— /// XXX: `Clone::clone(&<V as Default>::default())` should never allocate. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/environ/src/collections/secondary_map.rs:43— /// XXX: `Clone::clone(&<V as Default>::default())` should never allocate. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/environ/src/collections/secondary_map.rs:55— /// XXX: `Clone::clone(&default)` should never allocate. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/cranelift/src/func_environ.rs:404— /// XXX: Keep the `{memory,global,table}_alias_region` methods in sync with — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/cranelift/src/func_environ.rs:449— /// XXX: Keep the `{memory,global,table}_alias_region` methods in sync with — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/cranelift/src/func_environ.rs:483— /// XXX: Keep the `{memory,global,table}_alias_region` methods in sync with — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/cranelift/src/compiler/component.rs:1524— // XXX: we can't implement this for `TrampolineCompiler` directly because it — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/core/src/error/backtrace.rs:12— /// XXX: This is only exposed for internal testing, to work around cargo — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/core/src/error/error.rs:79— /// XXX: Must have a compatible layout with `ConcreteError<E>`. See the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/core/src/error/error.rs:94— /// XXX: Must have a compatible layout with `DynError`. See the — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
XxxComment crates/core/src/alloc/arc.rs:5— /// XXX: Stable Rust doesn't actually give us any method to build fallible — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
cranelift_codegen::isa::x64::inst::emit::emit (cognitive 127) cranelift/codegen/src/isa/x64/inst/emit.rs:162— cranelift_codegen::isa::x64::inst::emit::emit has cognitive complexity 127 (threshold 15). Drivers by points: if/else 44 (76 pts), match/switch 27 (49 pts), loops 1 (2 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
cranelift_codegen::isa::pulley_shared::inst::emit::pulley_emit (cognitive 75) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:118— cranelift_codegen::isa::pulley_shared::inst::emit::pulley_emit has cognitive complexity 75 (threshold 15). Drivers by points: if/else 22 (39 pts), match/switch 18 (26 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 30). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_codegen::remove_constant_phis::do_remove_constant_phis (cognitive 71) cranelift/codegen/src/remove_constant_phis.rs:222— cranelift_codegen::remove_constant_phis::do_remove_constant_phis has cognitive complexity 71 (threshold 15). Drivers by points: loops 17 (31 pts), if/else 10 (28 pts), match/switch 2 (11 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
cranelift_codegen::ir::immediates::parse_float (cognitive 50) cranelift/codegen/src/ir/immediates.rs:1075— cranelift_codegen::ir::immediates::parse_float has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (33 pts), match/switch 6 (15 pts), boolean chains 1, 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.
cranelift_codegen::isa::riscv64::inst::riscv64_get_operands (cognitive 46) cranelift/codegen/src/isa/riscv64/inst/mod.rs:273— cranelift_codegen::isa::riscv64::inst::riscv64_get_operands has cognitive complexity 46 (threshold 15). Drivers by points: loops 11 (23 pts), if/else 10 (16 pts), match/switch 4 (7 pts) (nesting depth added 21). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_codegen::inline::inline_one (cognitive 43) cranelift/codegen/src/inline.rs:357— cranelift_codegen::inline::inline_one has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 4 (8 pts), match/switch 1 (4 pts), boolean chains 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.
cranelift_codegen::ir::immediates::parse_u64 (cognitive 34) cranelift/codegen/src/ir/immediates.rs:253— cranelift_codegen::ir::immediates::parse_u64 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 4 (14 pts), loops 2 (4 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.
cranelift_codegen::isa::pulley_shared::inst::pulley_get_operands (cognitive 34) cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:120— cranelift_codegen::isa::pulley_shared::inst::pulley_get_operands has cognitive complexity 34 (threshold 15). Drivers by points: loops 11 (22 pts), if/else 3 (6 pts), match/switch 4 (6 pts) (nesting depth added 16). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_codegen::isa::aarch64::inst::aarch64_get_operands (cognitive 32) cranelift/codegen/src/isa/aarch64/inst/mod.rs:396— cranelift_codegen::isa::aarch64::inst::aarch64_get_operands has cognitive complexity 32 (threshold 15). Drivers by points: loops 8 (16 pts), if/else 4 (8 pts), match/switch 5 (8 pts) (nesting depth added 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_codegen::isa::unwind::winarm64::create_unwind_info_from_insts (cognitive 31) cranelift/codegen/src/isa/unwind/winarm64.rs:193— cranelift_codegen::isa::unwind::winarm64::create_unwind_info_from_insts has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (17 pts), match/switch 4 (13 pts), loops 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.
cranelift_codegen::souper_harvest::harvest_candidate_lhs (cognitive 31) cranelift/codegen/src/souper_harvest.rs:83— cranelift_codegen::souper_harvest::harvest_candidate_lhs has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 11 (27 pts), if/else 3 (4 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.
cranelift_codegen::inline::do_inlining (cognitive 28) cranelift/codegen/src/inline.rs:112— cranelift_codegen::inline::do_inlining has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (11 pts), loops 2 (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.
cranelift_codegen::isa::x64::inst::x64_get_operands (cognitive 27) cranelift/codegen/src/isa/x64/inst/mod.rs:882— cranelift_codegen::isa::x64::inst::x64_get_operands has cognitive complexity 27 (threshold 15). Drivers by points: loops 8 (16 pts), match/switch 4 (7 pts), if/else 2 (4 pts) (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_codegen::isa::s390x::inst::s390x_get_operands (cognitive 25) cranelift/codegen/src/isa/s390x/inst/mod.rs:465— cranelift_codegen::isa::s390x::inst::s390x_get_operands has cognitive complexity 25 (threshold 15). Drivers by points: loops 8 (16 pts), match/switch 4 (7 pts), if/else 1 (2 pts) (nesting depth added 12). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_codegen::isa::x64::lower::lower_to_amode (cognitive 22) cranelift/codegen/src/isa/x64/lower.rs:232— cranelift_codegen::isa::x64::lower::lower_to_amode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
cranelift_codegen::ir::immediates::format_float (cognitive 21) cranelift/codegen/src/ir/immediates.rs:1000— cranelift_codegen::ir::immediates::format_float has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (21 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.
cranelift_codegen::souper_harvest::post_order_dfs (cognitive 21) cranelift/codegen/src/souper_harvest.rs:410— cranelift_codegen::souper_harvest::post_order_dfs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (6 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.
cranelift_codegen::isa::s390x::inst::emit::mem_finalize (cognitive 19) cranelift/codegen/src/isa/s390x/inst/emit.rs:98— cranelift_codegen::isa::s390x::inst::emit::mem_finalize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 5 (7 pts), boolean chains 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.
cranelift_codegen::opts::div_const::magic_u32 (cognitive 18) cranelift/codegen/src/opts/div_const.rs:41— cranelift_codegen::opts::div_const::magic_u32 has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, 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. This shape REPEATS in the file: one other method here (cranelift_codegen::opts::div_const::magic_u64) has the same decision points, in the same order, at the same nesting depths — 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.
cranelift_codegen::opts::div_const::magic_u64 (cognitive 18) cranelift/codegen/src/opts/div_const.rs:87— cranelift_codegen::opts::div_const::magic_u64 has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, 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. This shape REPEATS in the file: one other method here (cranelift_codegen::opts::div_const::magic_u32) has the same decision points, in the same order, at the same nesting depths — 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.
cranelift_codegen::isa::winch::reverse_stack (cognitive 17) cranelift/codegen/src/isa/winch.rs:5— cranelift_codegen::isa::winch::reverse_stack has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 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.
cranelift_codegen::isa::aarch64::abi::add_macho_compact_unwind_paired_regs (cognitive 16) cranelift/codegen/src/isa/aarch64/abi.rs:86— cranelift_codegen::isa::aarch64::abi::add_macho_compact_unwind_paired_regs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
Duplicated block (5 lines × 3) cranelift/codegen/src/isa/aarch64/inst/mod.rs:532— cranelift/codegen/src/isa/aarch64/inst/mod.rs:532-536 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:583-587 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:602-606 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:1242— cranelift/codegen/src/isa/s390x/inst/emit.rs:1242-1246 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1292-1296 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1346-1350 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/cranelift/src/translate/code_translator.rs:1685— crates/cranelift/src/translate/code_translator.rs:1685-1690 | crates/cranelift/src/translate/code_translator.rs:1694-1698 | crates/cranelift/src/translate/code_translator.rs:1702-1706 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/debugger/src/host/opaque.rs:438— crates/debugger/src/host/opaque.rs:438-442 | crates/debugger/src/host/opaque.rs:461-465 | crates/debugger/src/host/opaque.rs:484-488 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/environ/src/fact/trampoline.rs:1368— crates/environ/src/fact/trampoline.rs:1368-1372 | crates/environ/src/fact/trampoline.rs:1388-1392 | crates/environ/src/fact/trampoline.rs:3478-3482 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:859— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:859-863 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:504-508 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:460-464 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/arrayref.rs` and `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 72 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) pulley/src/interp.rs:5014— pulley/src/interp.rs:5014-5018 | pulley/src/interp.rs:5038-5042 | pulley/src/interp.rs:5466-5470 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) pulley/src/interp.rs:5026— pulley/src/interp.rs:5026-5030 | pulley/src/interp.rs:5050-5054 | pulley/src/interp.rs:5478-5482 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) pulley/src/interp.rs:5086— pulley/src/interp.rs:5086-5090 | pulley/src/interp.rs:5110-5114 | pulley/src/interp.rs:5514-5518 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) pulley/src/interp.rs:5098— pulley/src/interp.rs:5098-5102 | pulley/src/interp.rs:5122-5126 | pulley/src/interp.rs:5526-5530 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) cranelift/codegen/src/isa/s390x/inst/mod.rs:515— cranelift/codegen/src/isa/s390x/inst/mod.rs:515-519 | cranelift/codegen/src/isa/s390x/inst/mod.rs:521-525 | cranelift/codegen/src/isa/s390x/inst/mod.rs:526-530 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/c-api/src/arrayref.rs:132— crates/c-api/src/arrayref.rs:132-136 | crates/c-api/src/exnref.rs:139-143 | crates/c-api/src/structref.rs:117-121 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (5 lines × 3) crates/wasmtime/src/runtime/gc/enabled/anyref.rs:281— crates/wasmtime/src/runtime/gc/enabled/anyref.rs:281-285 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:174-178 | crates/wasmtime/src/runtime/gc/enabled/externref.rs:571-575 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/anyref.rs` and `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:913— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:913-917 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:564-568 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:520-524 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/arrayref.rs` and `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 72 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) cranelift/codegen/src/isa/pulley_shared/inst/regs.rs:7— cranelift/codegen/src/isa/pulley_shared/inst/regs.rs:7-11 | cranelift/codegen/src/isa/pulley_shared/inst/regs.rs:31-35 | cranelift/codegen/src/isa/riscv64/inst/regs.rs:132-136 — there are 3 copies across 2 file(s) — 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.
Duplicated block (5 lines × 3) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:82— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:82-86 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:85-89 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:82-86 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/arrayref.rs` and `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 72 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) crates/c-api/src/arrayref.rs:95— crates/c-api/src/arrayref.rs:95-99 | crates/c-api/src/arrayref.rs:116-120 | crates/c-api/src/structref.rs:81-85 — there are 3 copies across 2 file(s) — 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.
Duplicated block (5 lines × 3) cranelift/codegen/src/isa/riscv64/inst/emit.rs:1837— cranelift/codegen/src/isa/riscv64/inst/emit.rs:1837-1841 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1869-1873 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1950-1954 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:790— cranelift/codegen/src/isa/s390x/inst/emit.rs:790-794 | cranelift/codegen/src/isa/s390x/inst/emit.rs:809-813 | cranelift/codegen/src/isa/s390x/inst/emit.rs:831-835 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/test-programs/src/bin/p3_http_outbound_request_content_length.rs:48— crates/test-programs/src/bin/p3_http_outbound_request_content_length.rs:48-52 | crates/test-programs/src/bin/p3_http_outbound_request_content_length.rs:65-69 | crates/test-programs/src/bin/p3_http_outbound_request_content_length.rs:102-106 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) crates/test-programs/src/bin/p3_http_outbound_request_get.rs:10— crates/test-programs/src/bin/p3_http_outbound_request_get.rs:10-14 | crates/test-programs/src/bin/p3_http_outbound_request_post.rs:11-15 | crates/test-programs/src/bin/p3_http_outbound_request_put.rs:10-14 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (5 lines × 3) crates/test-programs/src/bin/p1_cli_much_stdout.rs:2— crates/test-programs/src/bin/p1_cli_much_stdout.rs:2-6 | crates/test-programs/src/bin/p2_cli_much_stdout.rs:2-6 | crates/test-programs/src/bin/p3_cli_much_stdout.rs:9-13 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Low cohesion: WasiP1Ctx (LCOM4 38) crates/wasi/src/p1.rs:141— WasiP1Ctx's methods fall into 38 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 38 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: WasiFilesystemCtxView (LCOM4 26) crates/wasi/src/filesystem.rs:74— WasiFilesystemCtxView's methods fall into 26 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 26 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: ResourceTable (LCOM4 15) crates/wasmtime/src/runtime/component/resource_table.rs:36— ResourceTable's methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: Config (LCOM4 13) crates/wasmtime/src/config.rs:159— Config's methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: FuncEnvironment (LCOM4 12) crates/cranelift/src/func_environ.rs:170— FuncEnvironment's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: WasiSocketsCtxView (LCOM4 9) crates/wasi/src/sockets/mod.rs:74— WasiSocketsCtxView's methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: StoreOpaque (LCOM4 8) crates/wasmtime/src/runtime/store.rs:439— StoreOpaque's methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: CacheConfig (LCOM4 7) crates/cache/src/config.rs:26— CacheConfig's methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — 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.
Low cohesion: Config (LCOM4 6) crates/bench-api/src/lib.rs:329— Config's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: Instance (LCOM4 6) crates/wasmtime/src/runtime/component/instance.rs:39— Instance's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: NullHeap (LCOM4 6) crates/wasmtime/src/runtime/vm/gc/enabled/null.rs:56— NullHeap's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: Compiler (LCOM4 5) crates/cranelift/src/compiler.rs:82— Compiler's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: TcpSocket (LCOM4 5) crates/wasi/src/p2/tcp.rs:20— TcpSocket's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: StoreInner (LCOM4 5) crates/wasmtime/src/runtime/store.rs:237— StoreInner's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: CopyingHeap (LCOM4 5) crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs:236— CopyingHeap's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: Instance (LCOM4 5) crates/wasmtime/src/runtime/vm/instance.rs:91— Instance's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: UnsafeBytecodeStream (LCOM4 5) pulley/src/decode.rs:194— UnsafeBytecodeStream's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: Error (LCOM4 4) crates/core/src/error/error.rs:425— Error's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: Debugger (LCOM4 4) crates/gdbstub-component/src/lib.rs:73— Debugger's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: ComponentInstance (LCOM4 4) crates/wasmtime/src/runtime/vm/component.rs:106— ComponentInstance's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: DrcHeap (LCOM4 4) crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs:158— DrcHeap's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Low cohesion: VMGcRef (LCOM4 4) crates/wasmtime/src/runtime/vm/gc/gc_ref.rs:131— VMGcRef's 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 — your repository's 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 — and which would otherwise dominate this list — 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.
Duplicated block (8 lines × 3) cranelift/codegen/src/isa/aarch64/abi.rs:1525— cranelift/codegen/src/isa/aarch64/abi.rs:1525-1532 | cranelift/codegen/src/isa/aarch64/abi.rs:1595-1602 | cranelift/codegen/src/isa/aarch64/abi.rs:1663-1670 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) cranelift/codegen/src/isa/aarch64/mod.rs:138— cranelift/codegen/src/isa/aarch64/mod.rs:138-145 | cranelift/codegen/src/isa/riscv64/mod.rs:148-155 | cranelift/codegen/src/isa/s390x/mod.rs:134-141 — `cranelift/codegen/src/isa/aarch64/mod.rs` and `cranelift/codegen/src/isa/riscv64/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (8 lines × 3) cranelift/codegen/src/isa/pulley_shared/abi.rs:1075— cranelift/codegen/src/isa/pulley_shared/abi.rs:1075-1082 | cranelift/codegen/src/isa/riscv64/abi.rs:1007-1014 | cranelift/codegen/src/isa/riscv64/abi.rs:1090-1097 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (8 lines × 3) cranelift/codegen/src/isa/s390x/abi.rs:1376— cranelift/codegen/src/isa/s390x/abi.rs:1376-1383 | cranelift/codegen/src/isa/s390x/abi.rs:1422-1429 | cranelift/codegen/src/isa/s390x/abi.rs:1475-1482 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) cranelift/isle/veri/veri/src/bin/count.rs:64— cranelift/isle/veri/veri/src/bin/count.rs:64-71 | cranelift/isle/veri/veri/src/bin/expand.rs:71-78 | cranelift/isle/veri/veri/src/bin/reachable.rs:45-52 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (8 lines × 3) crates/component-macro/src/component.rs:730— crates/component-macro/src/component.rs:730-737 | crates/component-macro/src/component.rs:828-835 | crates/component-macro/src/component.rs:885-892 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) crates/cranelift/src/func_environ.rs:4934— crates/cranelift/src/func_environ.rs:4934-4941 | crates/cranelift/src/func_environ/gc/copying.rs:112-119 | crates/cranelift/src/func_environ/gc/drc.rs:545-552 — before extracting anything, compare `crates/cranelift/src/func_environ/gc/copying.rs` and `crates/cranelift/src/func_environ/gc/drc.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) crates/environ/src/collections/hash_map.rs:182— crates/environ/src/collections/hash_map.rs:182-189 | crates/environ/src/collections/index_map.rs:296-303 | crates/environ/src/collections/index_map.rs:309-316 — there are 3 copies across 2 file(s) — 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.
Duplicated block (8 lines × 3) crates/environ/src/fact/trampoline.rs:2398— crates/environ/src/fact/trampoline.rs:2398-2405 | crates/environ/src/fact/trampoline.rs:2571-2578 | crates/environ/src/fact/trampoline.rs:2632-2639 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) winch/codegen/src/codegen/exceptions.rs:229— winch/codegen/src/codegen/exceptions.rs:229-236 | winch/codegen/src/codegen/exceptions.rs:422-429 | winch/codegen/src/codegen/gc.rs:277-284 — there are 3 copies across 2 file(s) — 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.
Duplicated block (8 lines × 3) crates/fiber/src/nostd.rs:198— crates/fiber/src/nostd.rs:198-205 | crates/fiber/src/unix.rs:301-308 | crates/fiber/src/windows.rs:216-223 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (8 lines × 3) crates/wasmtime/src/config.rs:5086— crates/wasmtime/src/config.rs:5086-5094 | crates/wasmtime/src/config.rs:5105-5112 | crates/wasmtime/src/config.rs:5186-5196 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) cranelift/isle/veri/isaspec/src/instructions.rs:772— cranelift/isle/veri/isaspec/src/instructions.rs:772-780 | cranelift/isle/veri/isaspec/src/instructions.rs:1850-1857 | cranelift/isle/veri/isaspec/src/instructions.rs:2263-2272 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) crates/core/src/alloc/vec.rs:469— crates/core/src/alloc/vec.rs:469-476 | crates/environ/src/collections/index_set.rs:125-132 | crates/environ/src/string_pool.rs:139-146 — 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 — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (8 lines × 3) crates/wasi-http/src/p3/host/types.rs:405— crates/wasi-http/src/p3/host/types.rs:405-412 | crates/wasi-http/src/p3/host/types.rs:430-437 | crates/wasi-http/src/p3/host/types.rs:455-462 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 3) crates/test-programs/src/bin/p1_file_read_write.rs:30— crates/test-programs/src/bin/p1_file_read_write.rs:30-37 | crates/test-programs/src/bin/p1_file_read_write.rs:131-138 | crates/test-programs/src/bin/p1_file_unbuffered_write.rs:47-55 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_read_write.rs` and `crates/test-programs/src/bin/p1_file_unbuffered_write.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 — extracting one helper per block leaves the fork in place.
cranelift_codegen::isa::aarch64::inst::aarch64_get_operands (cyclomatic 142) cranelift/codegen/src/isa/aarch64/inst/mod.rs:396— cranelift_codegen::isa::aarch64::inst::aarch64_get_operands has cyclomatic complexity 142 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::s390x::inst::s390x_get_operands (cyclomatic 139) cranelift/codegen/src/isa/s390x/inst/mod.rs:465— cranelift_codegen::isa::s390x::inst::s390x_get_operands has cyclomatic complexity 139 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::x64::inst::emit::emit (cyclomatic 136) cranelift/codegen/src/isa/x64/inst/emit.rs:162— cranelift_codegen::isa::x64::inst::emit::emit has cyclomatic complexity 136 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::riscv64::inst::riscv64_get_operands (cyclomatic 80) cranelift/codegen/src/isa/riscv64/inst/mod.rs:273— cranelift_codegen::isa::riscv64::inst::riscv64_get_operands has cyclomatic complexity 80 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::pulley_shared::inst::emit::pulley_emit (cyclomatic 74) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:118— cranelift_codegen::isa::pulley_shared::inst::emit::pulley_emit has cyclomatic complexity 74 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::x64::inst::x64_get_operands (cyclomatic 46) cranelift/codegen/src/isa/x64/inst/mod.rs:882— cranelift_codegen::isa::x64::inst::x64_get_operands has cyclomatic complexity 46 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::write::write_operands (cyclomatic 46) cranelift/codegen/src/write.rs:390— cranelift_codegen::write::write_operands has cyclomatic complexity 46 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::souper_harvest::harvest_candidate_lhs (cyclomatic 44) cranelift/codegen/src/souper_harvest.rs:83— cranelift_codegen::souper_harvest::harvest_candidate_lhs 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::pulley_shared::inst::pulley_get_operands (cyclomatic 43) cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:120— cranelift_codegen::isa::pulley_shared::inst::pulley_get_operands has cyclomatic complexity 43 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::remove_constant_phis::do_remove_constant_phis (cyclomatic 31) cranelift/codegen/src/remove_constant_phis.rs:222— cranelift_codegen::remove_constant_phis::do_remove_constant_phis has cyclomatic complexity 31 (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.
cranelift_codegen::ir::immediates::parse_float (cyclomatic 28) cranelift/codegen/src/ir/immediates.rs:1075— cranelift_codegen::ir::immediates::parse_float 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.
cranelift_codegen::isa::s390x::inst::emit::mem_finalize (cyclomatic 21) cranelift/codegen/src/isa/s390x/inst/emit.rs:98— cranelift_codegen::isa::s390x::inst::emit::mem_finalize 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::riscv64::inst::reg_name (cyclomatic 20) cranelift/codegen/src/isa/riscv64/inst/mod.rs:875— cranelift_codegen::isa::riscv64::inst::reg_name 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen::isa::unwind::winarm64::create_unwind_info_from_insts (cyclomatic 18) cranelift/codegen/src/isa/unwind/winarm64.rs:193— cranelift_codegen::isa::unwind::winarm64::create_unwind_info_from_insts 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.
cranelift_codegen::inline::inline_one (cyclomatic 16) cranelift/codegen/src/inline.rs:357— cranelift_codegen::inline::inline_one 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.
Duplicated block (16 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2066— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2066-2081 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2084-2099 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) cranelift/codegen/src/isa/aarch64/lower/isle.rs:126— cranelift/codegen/src/isa/aarch64/lower/isle.rs:126-141 | cranelift/codegen/src/isa/aarch64/lower/isle.rs:149-164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:1789— cranelift/codegen/src/isa/riscv64/inst/emit.rs:1789-1804 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1972-1987 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2288— cranelift/codegen/src/isa/s390x/inst/emit.rs:2288-2303 | cranelift/codegen/src/isa/s390x/inst/emit.rs:2334-2349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:2956— cranelift/codegen/src/isa/s390x/inst/mod.rs:2956-2971 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3021-3036 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) crates/core/src/alloc/string.rs:201— crates/core/src/alloc/string.rs:201-216 | crates/core/src/alloc/vec.rs:227-242 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (16 lines × 2) crates/cranelift/src/compiler/component.rs:2169— crates/cranelift/src/compiler/component.rs:2169-2184 | crates/cranelift/src/compiler/component.rs:2278-2293 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) crates/environ/src/fact/trampoline.rs:2603— crates/environ/src/fact/trampoline.rs:2603-2618 | crates/environ/src/fact/trampoline.rs:2713-2728 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) crates/wasmtime/src/runtime/gc/enabled/exnref.rs:530— crates/wasmtime/src/runtime/gc/enabled/exnref.rs:530-545 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:486-501 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` and `crates/wasmtime/src/runtime/gc/enabled/structref.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 114 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 — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) crates/wiggle/generate/src/config.rs:474— crates/wiggle/generate/src/config.rs:474-489 | crates/wiggle/generate/src/config.rs:631-646 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) winch/codegen/src/isa/aarch64/asm.rs:839— winch/codegen/src/isa/aarch64/asm.rs:839-854 | winch/codegen/src/isa/aarch64/asm.rs:879-894 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) crates/wit-bindgen/src/lib.rs:3835— crates/wit-bindgen/src/lib.rs:3835-3850 | crates/wit-bindgen/src/lib.rs:3876-3897 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) crates/test-programs/src/bin/async_poll_stackless.rs:31— crates/test-programs/src/bin/async_poll_stackless.rs:31-46 | crates/test-programs/src/bin/async_poll_synchronous.rs:21-36 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (16 lines × 2) crates/test-programs/src/bin/p2_tcp_states.rs:113— crates/test-programs/src/bin/p2_tcp_states.rs:113-128 | crates/test-programs/src/bin/p2_tcp_states.rs:174-189 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) crates/test-programs/src/bin/p2_path_filestat.rs:63— crates/test-programs/src/bin/p2_path_filestat.rs:63-78 | crates/test-programs/src/bin/p2_symlink_filestat.rs:92-107 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 3) cranelift/codegen/src/isa/aarch64/lower/isle.rs:89— cranelift/codegen/src/isa/aarch64/lower/isle.rs:89-98 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:76-85 | cranelift/codegen/src/isa/x64/lower/isle.rs:302-311 — 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 — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (10 lines × 3) cranelift/codegen/src/isa/aarch64/lower/isle.rs:109— cranelift/codegen/src/isa/aarch64/lower/isle.rs:109-118 | cranelift/codegen/src/isa/pulley_shared/lower/isle.rs:153-162 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:96-105 — before extracting anything, compare `cranelift/codegen/src/isa/pulley_shared/lower/isle.rs` and `cranelift/codegen/src/isa/riscv64/lower/isle.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) cranelift/filetests/src/function_runner.rs:825— cranelift/filetests/src/function_runner.rs:825-834 | crates/wasmtime/src/runtime/vm/libcalls.rs:1024-1033 | crates/wasmtime/src/runtime/vm/libcalls.rs:1085-1094 — there are 3 copies across 2 file(s) — 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.
Duplicated block (10 lines × 3) cranelift/isle/veri/isaspec/src/instructions.rs:248— cranelift/isle/veri/isaspec/src/instructions.rs:248-257 | cranelift/isle/veri/isaspec/src/instructions.rs:494-503 | cranelift/isle/veri/isaspec/src/instructions.rs:1402-1411 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) crates/c-api/src/component/types/component.rs:57— crates/c-api/src/component/types/component.rs:57-66 | crates/c-api/src/component/types/component.rs:107-116 | crates/c-api/src/component/types/instance.rs:53-62 — there are 3 copies across 2 file(s) — 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.
Duplicated block (10 lines × 3) crates/debugger/src/host/opaque.rs:444— crates/debugger/src/host/opaque.rs:444-453 | crates/debugger/src/host/opaque.rs:467-476 | crates/debugger/src/host/opaque.rs:490-499 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs:797— crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs:797-806 | crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs:1041-1050 | crates/wasmtime/src/runtime/vm/gc/enabled/null.rs:296-305 — before extracting anything, compare `crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs` and `crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs:808— crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs:808-817 | crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs:1052-1061 | crates/wasmtime/src/runtime/vm/gc/enabled/null.rs:307-316 — before extracting anything, compare `crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs` and `crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) crates/wasmtime/src/runtime/vm/gc/enabled/arrayref.rs:38— crates/wasmtime/src/runtime/vm/gc/enabled/arrayref.rs:38-47 | crates/wasmtime/src/runtime/vm/gc/enabled/exnref.rs:38-47 | crates/wasmtime/src/runtime/vm/gc/enabled/structref.rs:38-47 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (10 lines × 3) crates/fuzzing/src/generators/gc_access.rs:1216— crates/fuzzing/src/generators/gc_access.rs:1216-1225 | crates/fuzzing/src/generators/gc_access.rs:1278-1287 | crates/fuzzing/src/generators/gc_access.rs:1304-1313 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) crates/fuzzing/src/oracles/api.rs:319— crates/fuzzing/src/oracles/api.rs:319-328 | crates/fuzzing/src/oracles/api.rs:336-345 | crates/fuzzing/src/oracles/api.rs:883-892 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 3) crates/test-programs/src/bin/async_round_trip_many_stackless.rs:36— crates/test-programs/src/bin/async_round_trip_many_stackless.rs:36-45 | crates/test-programs/src/bin/async_round_trip_many_synchronous.rs:37-46 | crates/test-programs/src/bin/async_round_trip_many_wait.rs:37-46 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (10 lines × 3) crates/test-programs/src/bin/piped_multiple.rs:3— crates/test-programs/src/bin/piped_multiple.rs:3-12 | crates/test-programs/src/bin/piped_polling.rs:3-12 | crates/test-programs/src/bin/piped_simple.rs:3-12 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
wasmtime_internal_cranelift::translate::code_translator::translate_operator (cognitive 152) crates/cranelift/src/translate/code_translator.rs:121— wasmtime_internal_cranelift::translate::code_translator::translate_operator has cognitive complexity 152 (threshold 15). Drivers by points: if/else 53 (93 pts), match/switch 13 (30 pts), loops 8 (19 pts), boolean chains 10 (nesting depth added 68). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
wasmtime_internal_cranelift::debug::transform::attr::clone_die_attributes (cognitive 128) crates/cranelift/src/debug/transform/attr.rs:40— wasmtime_internal_cranelift::debug::transform::attr::clone_die_attributes has cognitive complexity 128 (threshold 15). Drivers by points: if/else 26 (91 pts), match/switch 6 (19 pts), loops 4 (18 pts) (nesting depth added 92). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
wasmtime_internal_cranelift::debug::transform::expression::compile_expression (cognitive 104) crates/cranelift/src/debug/transform/expression.rs:436— wasmtime_internal_cranelift::debug::transform::expression::compile_expression has cognitive complexity 104 (threshold 15). Drivers by points: if/else 38 (86 pts), match/switch 4 (10 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
wasmtime_internal_cranelift::debug::gc::has_valid_code_range (cognitive 37) crates/cranelift/src/debug/gc.rs:17— wasmtime_internal_cranelift::debug::gc::has_valid_code_range has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (26 pts), match/switch 3 (8 pts), loops 1 (3 pts) (nesting depth added 24). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
wasmtime_internal_cranelift::debug::transform::unit::clone_unit (cognitive 37) crates/cranelift/src/debug/transform/unit.rs:261— wasmtime_internal_cranelift::debug::transform::unit::clone_unit has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 4, match/switch 1 (3 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.
wasmtime_internal_cranelift::debug::transform::line_program::clone_line_program (cognitive 32) crates/cranelift/src/debug/transform/line_program.rs:6— wasmtime_internal_cranelift::debug::transform::line_program::clone_line_program has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 2 (3 pts), match/switch 1 (3 pts) (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.
wasmtime_internal_cranelift::func_environ::gc::translate_ref_test (cognitive 20) crates/cranelift/src/func_environ/gc.rs:1244— wasmtime_internal_cranelift::func_environ::gc::translate_ref_test has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 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.
wasmtime_internal_cranelift::bounds_checks::bounds_check_field_access (cognitive 19) crates/cranelift/src/bounds_checks.rs:167— wasmtime_internal_cranelift::bounds_checks::bounds_check_field_access has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth — 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.
wasmtime_internal_cranelift::debug::transform::address_transform::build_function_lookup (cognitive 19) crates/cranelift/src/debug/transform/address_transform.rs:86— wasmtime_internal_cranelift::debug::transform::address_transform::build_function_lookup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2, match/switch 1 (2 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.
wasmtime_internal_cranelift::func_environ::stack_switching::instructions::vmcontref_store_payloads (cognitive 17) crates/cranelift/src/func_environ/stack_switching/instructions.rs:1173— wasmtime_internal_cranelift::func_environ::stack_switching::instructions::vmcontref_store_payloads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 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.
wasmtime_internal_cranelift::func_environ::gc::read_field_at_addr (cognitive 16) crates/cranelift/src/func_environ/gc.rs:318— wasmtime_internal_cranelift::func_environ::gc::read_field_at_addr has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 1 (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.
wasmtime_internal_cranelift::translate::code_translator::translate_unreachable_operator (cognitive 16) crates/cranelift/src/translate/code_translator.rs:3457— wasmtime_internal_cranelift::translate::code_translator::translate_unreachable_operator has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 2 (5 pts), boolean chains 2 (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.
Duplicated block (15 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:1209— cranelift/codegen/src/isa/riscv64/inst/emit.rs:1209-1223 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1260-1274 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2471— cranelift/codegen/src/isa/s390x/inst/emit.rs:2471-2485 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1988-2002 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) cranelift/native/src/lib.rs:151— cranelift/native/src/lib.rs:151-165 | crates/wasmtime/src/config.rs:4864-4878 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (15 lines × 2) crates/cranelift/src/debug/transform/address_transform.rs:247— crates/cranelift/src/debug/transform/address_transform.rs:247-261 | crates/cranelift/src/debug/transform/address_transform.rs:310-324 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) crates/cranelift/src/debug/transform/unit.rs:218— crates/cranelift/src/debug/transform/unit.rs:218-232 | crates/cranelift/src/debug/transform/unit.rs:235-249 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) crates/cranelift/src/func_environ/gc.rs:284— crates/cranelift/src/func_environ/gc.rs:284-298 | crates/cranelift/src/func_environ/gc.rs:1368-1382 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) crates/wasi-preview1-component-adapter/src/descriptors.rs:45— crates/wasi-preview1-component-adapter/src/descriptors.rs:45-59 | crates/wasi-preview1-component-adapter/src/descriptors.rs:73-87 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) crates/wasi/src/p2/host/filesystem.rs:485— crates/wasi/src/p2/host/filesystem.rs:485-499 | crates/wasi/src/p3/filesystem/mod.rs:259-273 — before extracting anything, compare `crates/wasi/src/p2/host/filesystem.rs` and `crates/wasi/src/p3/filesystem/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) crates/fuzzing/src/oracles/api.rs:182— crates/fuzzing/src/oracles/api.rs:182-196 | crates/fuzzing/src/oracles/api.rs:287-301 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 2) crates/test-programs/src/bin/async_cancel_transmit.rs:264— crates/test-programs/src/bin/async_cancel_transmit.rs:264-278 | crates/test-programs/src/bin/async_synchronous_transmit.rs:199-213 — before extracting anything, compare `crates/test-programs/src/bin/async_cancel_transmit.rs` and `crates/test-programs/src/bin/async_synchronous_transmit.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) crates/test-programs/src/bin/p1_cli_hostcall_fuel.rs:93— crates/test-programs/src/bin/p1_cli_hostcall_fuel.rs:93-107 | crates/test-programs/src/bin/p1_sleep_quickly_but_lots.rs:60-74 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15 lines × 2) crates/test-programs/src/bin/p2_nofollow_errors.rs:56— crates/test-programs/src/bin/p2_nofollow_errors.rs:56-70 | crates/test-programs/src/bin/p2_symlink_create.rs:6-22 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Inst::print_with_state (cyclomatic 843) cranelift/codegen/src/isa/s390x/inst/mod.rs:1327— Inst::print_with_state has cyclomatic complexity 843 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::emit_with_alloc_consumer (cyclomatic 816) cranelift/codegen/src/isa/s390x/inst/emit.rs:1480— Inst::emit_with_alloc_consumer has cyclomatic complexity 816 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::emit (cyclomatic 579) cranelift/codegen/src/isa/aarch64/inst/emit.rs:804— Inst::emit has cyclomatic complexity 579 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::print_with_state (cyclomatic 411) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1393— Inst::print_with_state has cyclomatic complexity 411 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::emit_uncompressed (cyclomatic 127) cranelift/codegen/src/isa/riscv64/inst/emit.rs:856— Inst::emit_uncompressed has cyclomatic complexity 127 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::print_with_state (cyclomatic 107) cranelift/codegen/src/isa/riscv64/inst/mod.rs:917— Inst::print_with_state has cyclomatic complexity 107 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::try_emit_compressed (cyclomatic 97) cranelift/codegen/src/isa/riscv64/inst/emit.rs:289— Inst::try_emit_compressed has cyclomatic complexity 97 (threshold 15). Of this number, 96 points are the body's 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 — the same kind of value, with no behaviour of its own — 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.
Inst::pretty_print (cyclomatic 52) cranelift/codegen/src/isa/x64/inst/mod.rs:378— Inst::pretty_print has cyclomatic complexity 52 (threshold 15). Of this number, 51 points are the body's 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 — the same kind of value, with no behaviour of its own — 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.
Inst::available_in_isa (cyclomatic 49) cranelift/codegen/src/isa/s390x/inst/mod.rs:103— Inst::available_in_isa has cyclomatic complexity 49 (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 — the same kind of value, with no behaviour of its own — 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.
Inst::load (cyclomatic 22) cranelift/codegen/src/isa/x64/inst/mod.rs:270— Inst::load 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 — the same kind of value, with no behaviour of its own — 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.
Inst::store (cyclomatic 19) cranelift/codegen/src/isa/x64/inst/mod.rs:334— Inst::store 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 — the same kind of value, with no behaviour of its own — 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.
Change coupling: drc.rs ↔ null.rs crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs:1— `crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs` and `crates/wasmtime/src/runtime/vm/gc/enabled/null.rs` change together 82% of the time (9 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's 10,000 most recent commits rather than its whole history — 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 — a sibling reference still needs an import — 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 9 shared commits counted here, the most recent 3 are `7a882e9d` Replace almost every manually-written `AliasRegions` helper method wi…; `66f26915` Defer DRC drops in host-side `write_gc_ref` (#13842); `17836e91` Use `Trap` for more error conditions in GC (#13465) — run `git show` on any of them.
Change coupling: builtin.rs ↔ libcalls.rs crates/environ/src/builtin.rs:1— `crates/environ/src/builtin.rs` and `crates/wasmtime/src/runtime/vm/libcalls.rs` change together 80% of the time (28 of the 35 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's 10,000 most recent commits rather than its whole history — 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 — 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 — the registration is the link, and it is meant not to be an import — 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 28 shared commits counted here, the most recent 3 are `1bde3f94` [stack-switching] Fix ASan-host interop (#14538); `11eac9de` [stack-switching] Interop with ASan (#14398); `9a0b0e0d` Trigger GC in the DRC collector when the OASR list is twice the size … — run `git show` on any of them.
Change coupling: on_demand.rs ↔ pooling.rs crates/wasmtime/src/runtime/vm/instance/allocator/on_demand.rs:1— `crates/wasmtime/src/runtime/vm/instance/allocator/on_demand.rs` and `crates/wasmtime/src/runtime/vm/instance/allocator/pooling.rs` change together 73% of the time (11 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's 10,000 most recent commits rather than its whole history — 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 — a sibling reference still needs an import — 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 11 shared commits counted here, the most recent 3 are `64e08f26` Fix leaking GC heap slots on errors (#13634); `2cf5e4af` Fix GC heap using wrong `MemoryKind` tunables in on-demand allocator …; `9bc302ad` Reduce type complexity of `InstanceAllocator` async functions (#12887) — run `git show` on any of them.
Change coupling: request.rs ↔ response.rs crates/wasi-http/src/p3/request.rs:1— `crates/wasi-http/src/p3/request.rs` and `crates/wasi-http/src/p3/response.rs` change together 73% of the time (8 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's 10,000 most recent commits rather than its whole history — 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 — a sibling reference still needs an import — 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 `842cbb4e` wasmtime-wasi-http p3: apply forbidden header check to trailers (#14823); `1991962d` Scope futures returned by wasip3 http implementations (#14220); `130ec83d` Centralize handling of headers in wasi-http (#13835) — run `git show` on any of them.
Change coupling: lib.rs ↔ wasmtime_wast.rs crates/cli-flags/src/lib.rs:1— `crates/cli-flags/src/lib.rs` and `crates/test-util/src/wasmtime_wast.rs` change together 71% of the time (12 of the 17 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's 10,000 most recent commits rather than its whole history — 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 — 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 — the registration is the link, and it is meant not to be an import — 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 12 shared commits counted here, the most recent 3 are `4b3cef02` Add accessors flag to wasmtime CLI (#14497); `08c1bc4a` Add support for the compact imports proposal (#14335); `ca3b393e` add canonical names flag to wasmtime CLI (#14344) — run `git show` on any of them.
Change coupling: cranelift-fuzzgen.rs ↔ cranelift-icache.rs fuzz/fuzz_targets/cranelift-fuzzgen.rs:1— `fuzz/fuzz_targets/cranelift-fuzzgen.rs` and `fuzz/fuzz_targets/cranelift-icache.rs` 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's 10,000 most recent commits rather than its whole history — 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 — a sibling reference still needs an import — 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 `c3a6060b` Polyfill `ToWasmtimeResult` and add eventually-necessary call sites (…; `72e909c4` Migrate fuzzing to `wasmtime::error` (#12269); `43ebcb89` Remove usage of `gen` as an identifier (#9958) — run `git show` on any of them.
Change coupling: module.rs ↔ wasmtime_wast.rs crates/fuzzing/src/generators/module.rs:1— `crates/fuzzing/src/generators/module.rs` and `crates/test-util/src/wasmtime_wast.rs` change together 65% of the time (11 of the 17 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's 10,000 most recent commits rather than its whole history — 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 — 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 — the registration is the link, and it is meant not to be an import — 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 11 shared commits counted here, the most recent 3 are `4b3cef02` Add accessors flag to wasmtime CLI (#14497); `08c1bc4a` Add support for the compact imports proposal (#14335); `ca3b393e` add canonical names flag to wasmtime CLI (#14344) — run `git show` on any of them.
Change coupling: fact-valid-module.rs ↔ trampoline.rs crates/environ/fuzz/fuzz_targets/fact-valid-module.rs:1— `crates/environ/fuzz/fuzz_targets/fact-valid-module.rs` and `crates/environ/src/fact/trampoline.rs` change together 64% of the time (9 of the 14 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's 10,000 most recent commits rather than its whole history — 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 — 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 — the registration is the link, and it is meant not to be an import — 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 9 shared commits counted here, the most recent 3 are `8801023b` Initial component model and GC support in fused adapters (#11020); `bc8e36a6` Refactor and optimize the flat type calculations (#4708); `bd70dbeb` Deduplicate some size/align calculations (#4658) — run `git show` on any of them.
Change coupling: func_environ.rs ↔ vmtypes.rs crates/cranelift/src/func_environ.rs:1— `crates/cranelift/src/func_environ.rs` and `crates/environ/src/vmtypes.rs` change together 64% of the time (7 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's 10,000 most recent commits rather than its whole history — 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 — 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 — the registration is the link, and it is meant not to be an import — 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 `11eac9de` [stack-switching] Interop with ASan (#14398); `cd4ec0e4` Skip `{enter,exit}-sync-call` for "thread-transparent" adapters (#14270); `7a882e9d` Replace almost every manually-written `AliasRegions` helper method wi… — run `git show` on any of them.
Change coupling: vmoffsets.rs ↔ export.rs crates/environ/src/vmoffsets.rs:1— `crates/environ/src/vmoffsets.rs` and `crates/wasmtime/src/runtime/vm/export.rs` change together 57% of the time (8 of the 14 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's 10,000 most recent commits rather than its whole history — 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 — 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 — the registration is the link, and it is meant not to be an import — 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 `c4fd2f7b` Refactor globals to no longer use `Stored` (#10902); `46306693` Add a `DefinedTableIndex` to table imports/exports (#10879); `598562bd` Add `VMContext` and `DefinedTagIndex` fields to tag-related imports/e… — run `git show` on any of them.
Change coupling: export.rs ↔ vmcontext.rs crates/wasmtime/src/runtime/vm/export.rs:1— `crates/wasmtime/src/runtime/vm/export.rs` and `crates/wasmtime/src/runtime/vm/vmcontext.rs` change together 50% of the time (7 of the 14 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's 10,000 most recent commits rather than its whole history — 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 — a sibling reference still needs an import — 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 7 shared commits counted here, the most recent 3 are `c4fd2f7b` Refactor globals to no longer use `Stored` (#10902); `46306693` Add a `DefinedTableIndex` to table imports/exports (#10879); `598562bd` Add `VMContext` and `DefinedTagIndex` fields to tag-related imports/e… — run `git show` on any of them.
Duplicated block (7 lines × 3) cranelift/codegen/src/isa/aarch64/abi.rs:1465— cranelift/codegen/src/isa/aarch64/abi.rs:1465-1472 | cranelift/codegen/src/isa/aarch64/abi.rs:1535-1541 | cranelift/codegen/src/isa/aarch64/abi.rs:1605-1613 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2236— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2236-2242 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2415-2421 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2533-2539 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2229— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2229-2235 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2399-2405 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2407-2413 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) cranelift/codegen/src/isa/x64/abi.rs:1212— cranelift/codegen/src/isa/x64/abi.rs:1212-1218 | cranelift/codegen/src/isa/x64/abi.rs:1232-1238 | cranelift/codegen/src/isa/x64/abi.rs:1265-1271 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) cranelift/codegen/src/isa/x64/lower/isle.rs:1594— cranelift/codegen/src/isa/x64/lower/isle.rs:1594-1600 | cranelift/codegen/src/isa/x64/lower/isle.rs:1609-1615 | cranelift/codegen/src/isa/x64/lower/isle.rs:1623-1629 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) crates/cranelift/src/func_environ.rs:4007— crates/cranelift/src/func_environ.rs:4007-4013 | crates/cranelift/src/func_environ/gc/drc.rs:162-168 | crates/cranelift/src/func_environ/gc/null.rs:54-64 — before extracting anything, compare `crates/cranelift/src/func_environ/gc/drc.rs` and `crates/cranelift/src/func_environ/gc/null.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) crates/wasmtime/src/runtime/trampoline/global.rs:48— crates/wasmtime/src/runtime/trampoline/global.rs:48-54 | crates/wasmtime/src/runtime/trampoline/global.rs:56-62 | crates/wasmtime/src/runtime/trampoline/global.rs:64-70 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) crates/wasmtime/src/runtime/vm/gc/enabled/arrayref.rs:89— crates/wasmtime/src/runtime/vm/gc/enabled/arrayref.rs:89-95 | crates/wasmtime/src/runtime/vm/gc/enabled/exnref.rs:89-95 | crates/wasmtime/src/runtime/vm/gc/enabled/structref.rs:89-95 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (7 lines × 3) crates/wasmtime/src/runtime/vm/mmap_vec.rs:208— crates/wasmtime/src/runtime/vm/mmap_vec.rs:208-214 | crates/wasmtime/src/runtime/vm/mmap_vec.rs:222-228 | crates/wasmtime/src/runtime/vm/mmap_vec.rs:237-243 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 3) crates/test-programs/src/bin/p2_cli_serve_config.rs:13— crates/test-programs/src/bin/p2_cli_serve_config.rs:13-19 | crates/test-programs/src/bin/p2_cli_serve_hello_world.rs:12-18 | crates/test-programs/src/bin/p2_cli_serve_keyvalue.rs:13-19 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (7 lines × 3) crates/test-programs/src/bin/p2_tcp_sockopts.rs:137— crates/test-programs/src/bin/p2_tcp_sockopts.rs:137-143 | crates/test-programs/src/bin/p2_tcp_sockopts.rs:171-177 | crates/test-programs/src/bin/p2_tcp_sockopts.rs:218-224 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:38— cranelift/isle/veri/veri/src/encoded/cls.rs:38-43 | cranelift/isle/veri/veri/src/encoded/cls.rs:382-388 | cranelift/isle/veri/veri/src/encoded/clz.rs:38-43 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:86— cranelift/isle/veri/veri/src/encoded/cls.rs:86-91 | cranelift/isle/veri/veri/src/encoded/cls.rs:438-444 | cranelift/isle/veri/veri/src/encoded/clz.rs:86-91 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:134— cranelift/isle/veri/veri/src/encoded/cls.rs:134-139 | cranelift/isle/veri/veri/src/encoded/cls.rs:494-500 | cranelift/isle/veri/veri/src/encoded/clz.rs:134-139 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:182— cranelift/isle/veri/veri/src/encoded/cls.rs:182-187 | cranelift/isle/veri/veri/src/encoded/cls.rs:550-556 | cranelift/isle/veri/veri/src/encoded/clz.rs:182-187 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:230— cranelift/isle/veri/veri/src/encoded/cls.rs:230-235 | cranelift/isle/veri/veri/src/encoded/cls.rs:606-612 | cranelift/isle/veri/veri/src/encoded/clz.rs:230-235 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:278— cranelift/isle/veri/veri/src/encoded/cls.rs:278-283 | cranelift/isle/veri/veri/src/encoded/cls.rs:662-668 | cranelift/isle/veri/veri/src/encoded/clz.rs:278-283 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:801— cranelift/isle/veri/veri/src/encoded/cls.rs:801-806 | cranelift/isle/veri/veri/src/encoded/cls.rs:1097-1103 | cranelift/isle/veri/veri/src/encoded/clz.rs:370-375 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:849— cranelift/isle/veri/veri/src/encoded/cls.rs:849-854 | cranelift/isle/veri/veri/src/encoded/cls.rs:1153-1159 | cranelift/isle/veri/veri/src/encoded/clz.rs:418-423 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:897— cranelift/isle/veri/veri/src/encoded/cls.rs:897-902 | cranelift/isle/veri/veri/src/encoded/cls.rs:1209-1215 | cranelift/isle/veri/veri/src/encoded/clz.rs:466-471 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:945— cranelift/isle/veri/veri/src/encoded/cls.rs:945-950 | cranelift/isle/veri/veri/src/encoded/cls.rs:1265-1271 | cranelift/isle/veri/veri/src/encoded/clz.rs:514-519 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:993— cranelift/isle/veri/veri/src/encoded/cls.rs:993-998 | cranelift/isle/veri/veri/src/encoded/cls.rs:1321-1327 | cranelift/isle/veri/veri/src/encoded/clz.rs:562-567 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Inst::emit (cognitive 332) cranelift/codegen/src/isa/aarch64/inst/emit.rs:804— Inst::emit has cognitive complexity 332 (threshold 15). Drivers by points: match/switch 83 (162 pts), if/else 77 (142 pts), loops 8 (19 pts), boolean chains 9 (nesting depth added 155). 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.
Inst::emit_with_alloc_consumer (cognitive 245) cranelift/codegen/src/isa/s390x/inst/emit.rs:1480— Inst::emit_with_alloc_consumer has cognitive complexity 245 (threshold 15). Drivers by points: match/switch 75 (139 pts), if/else 52 (81 pts), boolean chains 16, loops 4 (9 pts) (nesting depth added 98). 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.
Inst::print_with_state (cognitive 240) cranelift/codegen/src/isa/s390x/inst/mod.rs:1327— Inst::print_with_state has cognitive complexity 240 (threshold 15). Drivers by points: match/switch 81 (136 pts), if/else 57 (85 pts), boolean chains 15, loops 2 (4 pts) (nesting depth added 85). 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.
Inst::print_with_state (cognitive 134) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1393— Inst::print_with_state has cognitive complexity 134 (threshold 15). Drivers by points: match/switch 50 (93 pts), if/else 18 (26 pts), loops 6 (13 pts), boolean chains 2 (nesting depth added 58). Of this number, 133 points are the body's 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.
Inst::emit_uncompressed (cognitive 121) cranelift/codegen/src/isa/riscv64/inst/emit.rs:856— Inst::emit_uncompressed has cognitive complexity 121 (threshold 15). Drivers by points: if/else 45 (82 pts), match/switch 12 (25 pts), loops 5 (12 pts), boolean chains 2 (nesting depth added 57). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Inst::try_emit_compressed (cognitive 87) cranelift/codegen/src/isa/riscv64/inst/emit.rs:289— Inst::try_emit_compressed has cognitive complexity 87 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 27, match/switch 11 (25 pts) (nesting depth added 31). Of this number, 86 points are the body's 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.
Inst::print_with_state (cognitive 70) cranelift/codegen/src/isa/riscv64/inst/mod.rs:917— Inst::print_with_state has cognitive complexity 70 (threshold 15). Drivers by points: if/else 23 (33 pts), match/switch 12 (21 pts), loops 6 (14 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.
Inst::load_constant (cognitive 24) cranelift/codegen/src/isa/aarch64/inst/mod.rs:120— Inst::load_constant has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 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.
Inst::pretty_print (cognitive 18) cranelift/codegen/src/isa/x64/inst/mod.rs:378— Inst::pretty_print has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (7 pts), match/switch 2 (3 pts) (nesting depth added 7). Of this number, 16 points are the body's 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.
Inst::load (cognitive 17) cranelift/codegen/src/isa/x64/inst/mod.rs:270— Inst::load has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (8 pts), boolean chains 6, if/else 2 (3 pts) (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.
cranelift_codegen_meta::gen_inst::gen_instruction_data_impl (cognitive 85) cranelift/codegen/meta/src/gen_inst.rs:167— cranelift_codegen_meta::gen_inst::gen_instruction_data_impl has cognitive complexity 85 (threshold 15). Drivers by points: if/else 31 (45 pts), loops 14 (22 pts), match/switch 13 (18 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.
cranelift_codegen_meta::gen_inst::gen_inst_builder (cognitive 55) cranelift/codegen/meta/src/gen_inst.rs:1113— cranelift_codegen_meta::gen_inst::gen_inst_builder has cognitive complexity 55 (threshold 15). Drivers by points: if/else 27 (38 pts), loops 10 (14 pts), boolean chains 2, 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.
cranelift_codegen_meta::gen_asm::isle_constructors (cognitive 33) cranelift/codegen/meta/src/gen_asm.rs:404— cranelift_codegen_meta::gen_asm::isle_constructors has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 7 (18 pts), if/else 6 (15 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.
cranelift_codegen_meta::pulley::generate_raw_inst_display (cognitive 30) cranelift/codegen/meta/src/pulley.rs:107— cranelift_codegen_meta::pulley::generate_raw_inst_display has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 2 (3 pts), match/switch 1 (3 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.
cranelift_codegen_meta::pulley::generate_rust (cognitive 30) cranelift/codegen/meta/src/pulley.rs:184— cranelift_codegen_meta::pulley::generate_rust has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (6 pts), match/switch 2 (6 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.
cranelift_codegen_meta::cdsl::instructions::verify_polymorphic (cognitive 21) cranelift/codegen/meta/src/cdsl/instructions.rs:375— cranelift_codegen_meta::cdsl::instructions::verify_polymorphic has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, 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.
cranelift_codegen_meta::cdsl::instructions::is_ctrl_typevar_candidate (cognitive 20) cranelift/codegen/meta/src/cdsl/instructions.rs:456— cranelift_codegen_meta::cdsl::instructions::is_ctrl_typevar_candidate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (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.
cranelift_codegen_meta::gen_inst::gen_type_constraints (cognitive 20) cranelift/codegen/meta/src/gen_inst.rs:883— cranelift_codegen_meta::gen_inst::gen_type_constraints has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (6 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.
cranelift_codegen_meta::gen_asm::generate_isle_inst_decls (cognitive 18) cranelift/codegen/meta/src/gen_asm.rs:532— cranelift_codegen_meta::gen_asm::generate_isle_inst_decls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), match/switch 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.
cranelift_codegen_meta::pulley::generate_isle (cognitive 18) cranelift/codegen/meta/src/pulley.rs:325— cranelift_codegen_meta::pulley::generate_isle has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 3 (8 pts), loops 4 (6 pts), if/else 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.
Instance::guest_read (cognitive 41) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3845— Instance::guest_read has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (31 pts), match/switch 4 (7 pts), boolean chains 3 (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.
Instance::guest_write (cognitive 39) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3586— Instance::guest_write has cognitive complexity 39 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 5, match/switch 3 (5 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.
Instance::subtask_cancel (cognitive 36) crates/wasmtime/src/runtime/component/concurrent.rs:4519— Instance::subtask_cancel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (27 pts), match/switch 2 (6 pts), loops 1 (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.
Instance::copy (cognitive 32) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3364— Instance::copy has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 8, loops 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.
Instance::stage_call (cognitive 28) crates/wasmtime/src/runtime/component/concurrent.rs:3015— Instance::stage_call has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 13). Of this number, 27 points are the body's 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.
Instance::start_call (cognitive 24) crates/wasmtime/src/runtime/component/concurrent.rs:3502— Instance::start_call has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (23 pts), 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.
Instance::initialize_vmctx (cognitive 23) crates/wasmtime/src/runtime/vm/instance.rs:1168— Instance::initialize_vmctx has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 7 (8 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.
Instance::prepare_call (cognitive 17) crates/wasmtime/src/runtime/component/concurrent.rs:3271— Instance::prepare_call has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (8 pts), if/else 4 (5 pts), loops 2 (4 pts) (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.
Instance::cancel_write (cognitive 16) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:4113— Instance::cancel_write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (4 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. This shape REPEATS in the file: one other method here (Instance::cancel_read) has the same decision points, in the same order, at the same nesting depths — 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.
Instance::cancel_read (cognitive 16) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:4207— Instance::cancel_read has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 2 (4 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. This shape REPEATS in the file: one other method here (Instance::cancel_write) has the same decision points, in the same order, at the same nesting depths — 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.
TooManyFunctions: pulley_interpreter::interp::tail_loop pulley/src/interp/tail_loop.rs:72— TooManyFunctions — 546 free functions. The bar is 30 free functions; this is 516 over it, 18.20× 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.
TooManyFunctions: cranelift_assembler_x64::custom::display cranelift/assembler-x64/src/custom.rs:198— TooManyFunctions — 85 free functions. The bar is 30 free functions; this is 55 over it, 2.83× 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.
TooManyFunctions: cranelift_assembler_x64::custom::mnemonic cranelift/assembler-x64/src/custom.rs:88— TooManyFunctions — 81 free functions. The bar is 30 free functions; this is 51 over it, 2.70× 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.
TooManyFunctions: wasmtime::runtime::vm::component::libcalls crates/wasmtime/src/runtime/vm/component/libcalls.rs:168— TooManyFunctions — 67 free functions. The bar is 30 free functions; this is 37 over it, 2.23× 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.
TooManyFunctions: wasmtime_c_api_impl::vec crates/c-api/src/vec.rs:159— TooManyFunctions — 65 free functions. The bar is 30 free functions; this is 35 over it, 2.17× 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.
TooManyFunctions: wasmtime::runtime::vm::component::libcalls::trampolines crates/wasmtime/src/runtime/vm/component/libcalls.rs:162— TooManyFunctions — 63 free functions. The bar is 30 free functions; this is 33 over it, 2.10× 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.
TooManyFunctions: wasmtime::runtime::vm::libcalls crates/wasmtime/src/runtime/vm/libcalls.rs:240— TooManyFunctions — 52 free functions. The bar is 30 free functions; this is 22 over it, 1.73× 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.
TooManyFunctions: wasmtime::runtime::vm::libcalls::raw crates/wasmtime/src/runtime/vm/libcalls.rs:165— TooManyFunctions — 51 free functions. The bar is 30 free functions; this is 21 over it, 1.70× 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.
TooManyFunctions: wasmtime_c_api_impl::component::val crates/c-api/src/component/val.rs:12— TooManyFunctions — 44 free functions. The bar is 30 free functions; this is 14 over it, 1.47× 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.
Duplicated block (17 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:2959— cranelift/codegen/src/isa/s390x/inst/emit.rs:2959-2975 | cranelift/codegen/src/isa/s390x/inst/emit.rs:2981-2997 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) cranelift/codegen/src/print_errors.rs:98— cranelift/codegen/src/print_errors.rs:98-114 | cranelift/codegen/src/print_errors.rs:136-152 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) crates/fiber/src/stackswitch/riscv32imac.rs:100— crates/fiber/src/stackswitch/riscv32imac.rs:100-116 | crates/fiber/src/stackswitch/riscv64.rs:121-137 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) crates/wasmtime/src/runtime/gc/enabled/exnref.rs:305— crates/wasmtime/src/runtime/gc/enabled/exnref.rs:305-321 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:309-325 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` and `crates/wasmtime/src/runtime/gc/enabled/structref.rs` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 114 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 — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) crates/test-programs/src/bin/p1_path_open_lots.rs:9— crates/test-programs/src/bin/p1_path_open_lots.rs:9-25 | crates/test-programs/src/bin/p1_path_open_lots.rs:34-50 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) crates/test-programs/src/bin/p1_path_open_lots.rs:57— crates/test-programs/src/bin/p1_path_open_lots.rs:57-73 | crates/test-programs/src/bin/p1_path_open_lots.rs:80-96 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 2) crates/test-programs/src/bin/p2_http_outbound_request_response_build.rs:66— crates/test-programs/src/bin/p2_http_outbound_request_response_build.rs:66-82 | crates/test-programs/src/bin/p3_http_outbound_request_response_build.rs:71-87 — before extracting anything, compare `crates/test-programs/src/bin/p2_http_outbound_request_response_build.rs` and `crates/test-programs/src/bin/p3_http_outbound_request_response_build.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 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 — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:68— crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:68-84 | crates/test-programs/src/bin/p3_file_rename_across_perms.rs:63-79 — before extracting anything, compare `crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p3_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) crates/test-programs/src/p3/sockets.rs:132— crates/test-programs/src/p3/sockets.rs:132-148 | crates/test-programs/src/sockets.rs:395-411 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Off the main sequence: cranelift-control — cranelift-control: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 6 project(s), so it's rigid to change.
Off the main sequence: cranelift-isle-veri-aslp — cranelift-isle-veri-aslp: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: cranelift-isle-veri-caching — cranelift-isle-veri-caching: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: cranelift-srcgen — cranelift-srcgen: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
Off the main sequence: wasmtime-internal-wmemcheck — wasmtime-internal-wmemcheck: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: cranelift-isle — cranelift-isle: abstractness 0.04, instability 0.00, distance 0.96 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
Off the main sequence: wasmtime-internal-wit-bindgen — wasmtime-internal-wit-bindgen: abstractness 0.06, instability 0.00, distance 0.94 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
Off the main sequence: cranelift-frontend — cranelift-frontend: abstractness 0.00, instability 0.20, distance 0.80 — zone of pain — concrete and depended on by 4 project(s), so it's rigid to change.
Off the main sequence: cranelift-reader — cranelift-reader: abstractness 0.00, instability 0.25, distance 0.75 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
wasmtime_internal_cranelift::translate::code_translator::translate_operator (cyclomatic 472) crates/cranelift/src/translate/code_translator.rs:121— wasmtime_internal_cranelift::translate::code_translator::translate_operator has cyclomatic complexity 472 (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 — the same kind of value, with no behaviour of its own — 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.
wasmtime_internal_cranelift::debug::transform::expression::compile_expression (cyclomatic 47) crates/cranelift/src/debug/transform/expression.rs:436— wasmtime_internal_cranelift::debug::transform::expression::compile_expression 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.
wasmtime_internal_cranelift::debug::transform::attr::clone_die_attributes (cyclomatic 37) crates/cranelift/src/debug/transform/attr.rs:40— wasmtime_internal_cranelift::debug::transform::attr::clone_die_attributes has cyclomatic complexity 37 (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.
wasmtime_internal_cranelift::debug::transform::unit::clone_unit (cyclomatic 20) crates/cranelift/src/debug/transform/unit.rs:261— wasmtime_internal_cranelift::debug::transform::unit::clone_unit 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.
wasmtime_internal_cranelift::bounds_checks::bounds_check_field_access (cyclomatic 19) crates/cranelift/src/bounds_checks.rs:167— wasmtime_internal_cranelift::bounds_checks::bounds_check_field_access 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.
wasmtime_internal_cranelift::debug::gc::has_valid_code_range (cyclomatic 18) crates/cranelift/src/debug/gc.rs:17— wasmtime_internal_cranelift::debug::gc::has_valid_code_range 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.
wasmtime_internal_cranelift::func_environ::gc::translate_ref_test (cyclomatic 17) crates/cranelift/src/func_environ/gc.rs:1244— wasmtime_internal_cranelift::func_environ::gc::translate_ref_test 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.
wasmtime_internal_cranelift::func_environ::gc::read_field_at_addr (cyclomatic 16) crates/cranelift/src/func_environ/gc.rs:318— wasmtime_internal_cranelift::func_environ::gc::read_field_at_addr 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 — the same kind of value, with no behaviour of its own — 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.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×8
Members sharing a duplicated core (4 members, 50+ identical tokens) cranelift/codegen/src/isa/x64/lower/isle.rs:990— cranelift/codegen/src/isa/x64/lower/isle.rs:990-998 | cranelift/codegen/src/isa/x64/lower/isle.rs:1000-1008 | cranelift/codegen/src/isa/x64/lower/isle.rs:1010-1018 | cranelift/codegen/src/isa/x64/lower/isle.rs:1557-1565 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) cranelift/codegen/src/isa/x64/lower/isle.rs:1631— cranelift/codegen/src/isa/x64/lower/isle.rs:1631-1641 | cranelift/codegen/src/isa/x64/lower/isle.rs:1643-1658 | cranelift/codegen/src/isa/x64/lower/isle.rs:1660-1674 | cranelift/codegen/src/isa/x64/lower/isle.rs:1676-1693 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) crates/environ/src/fact/trampoline.rs:1806— crates/environ/src/fact/trampoline.rs:1806-1977 | crates/environ/src/fact/trampoline.rs:1997-2062 | crates/environ/src/fact/trampoline.rs:2081-2160 | crates/environ/src/fact/trampoline.rs:2173-2325 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) crates/wit-bindgen/src/lib.rs:2096— crates/wit-bindgen/src/lib.rs:2096-2111 | crates/wit-bindgen/src/lib.rs:2120-2134 | crates/wit-bindgen/src/lib.rs:2510-2522 | crates/wit-bindgen/src/lib.rs:2524-2539 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) crates/test-programs/src/bin/p2_api_proxy.rs:11— crates/test-programs/src/bin/p2_api_proxy.rs:11-80 | crates/test-programs/src/bin/p2_cli_serve_config.rs:12-26 | crates/test-programs/src/bin/p2_cli_serve_hello_world.rs:11-24 | crates/test-programs/src/bin/p2_cli_serve_keyvalue.rs:12-27 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:61— crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:61-86 | crates/test-programs/src/bin/p2_file_rename_across_perms.rs:53-78 | crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:67-92 | crates/test-programs/src/bin/p3_file_rename_across_perms.rs:62-87 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) crates/test-programs/src/bin/p2_tcp_sockopts.rs:109— crates/test-programs/src/bin/p2_tcp_sockopts.rs:109-188 | crates/test-programs/src/bin/p2_tcp_sockopts.rs:190-229 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:113-175 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:177-217 — 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 — 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' 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. 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.
Members sharing a duplicated core (4 members, 50+ identical tokens) crates/test-programs/src/bin/p3_sockets_tcp_states.rs:11— crates/test-programs/src/bin/p3_sockets_tcp_states.rs:11-54 | crates/test-programs/src/bin/p3_sockets_tcp_states.rs:56-103 | crates/test-programs/src/bin/p3_sockets_tcp_states.rs:105-163 | crates/test-programs/src/bin/p3_sockets_tcp_states.rs:165-219 — 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 — 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' 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. 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.
Duplicated block (21 lines × 2) cranelift/codegen/src/ir/globalvalue.rs:140— cranelift/codegen/src/ir/globalvalue.rs:140-160 | cranelift/codegen/src/ir/globalvalue.rs:184-204 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21 lines × 2) cranelift/codegen/src/isa/pulley_shared/abi.rs:513— cranelift/codegen/src/isa/pulley_shared/abi.rs:513-533 | cranelift/codegen/src/isa/riscv64/abi.rs:659-679 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (21 lines × 2) cranelift/codegen/src/isa/s390x/inst/args.rs:196— cranelift/codegen/src/isa/s390x/inst/args.rs:196-216 | cranelift/codegen/src/isa/s390x/inst/args.rs:218-238 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21 lines × 2) crates/wasi/src/filesystem.rs:512— crates/wasi/src/filesystem.rs:512-532 | crates/wasi/src/filesystem.rs:609-629 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21 lines × 2) crates/wasi/src/p2/host/filesystem.rs:514— crates/wasi/src/p2/host/filesystem.rs:514-534 | crates/wasi/src/p3/filesystem/mod.rs:288-308 — before extracting anything, compare `crates/wasi/src/p2/host/filesystem.rs` and `crates/wasi/src/p3/filesystem/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 2) crates/wasi/src/p2/host/filesystem.rs:539— crates/wasi/src/p2/host/filesystem.rs:539-559 | crates/wasi/src/p3/filesystem/mod.rs:313-333 — before extracting anything, compare `crates/wasi/src/p2/host/filesystem.rs` and `crates/wasi/src/p3/filesystem/mod.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 2) crates/test-programs/src/bin/async_round_trip_many_stackful.rs:89— crates/test-programs/src/bin/async_round_trip_many_stackful.rs:89-109 | crates/test-programs/src/bin/async_round_trip_stackful.rs:71-91 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (21 lines × 2) crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:16— crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:16-36 | crates/test-programs/src/bin/p3_file_rename_across_perms.rs:15-35 — before extracting anything, compare `crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p3_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) cranelift/codegen/src/ir/condcodes.rs:258— cranelift/codegen/src/ir/condcodes.rs:258-275 | cranelift/codegen/src/ir/condcodes.rs:277-294 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:3810— cranelift/codegen/src/isa/aarch64/inst/emit.rs:3810-3827 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:3081-3098 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (18 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:2913— cranelift/codegen/src/isa/aarch64/inst/mod.rs:2913-2930 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3506-3523 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) cranelift/isle/isle/src/codegen.rs:398— cranelift/isle/isle/src/codegen.rs:398-415 | cranelift/isle/isle/src/codegen.rs:434-451 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) crates/wasi-tls/src/p3/host.rs:63— crates/wasi-tls/src/p3/host.rs:63-80 | crates/wasi-tls/src/p3/host.rs:125-142 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) crates/wasmtime/src/runtime/gc/enabled/anyref.rs:369— crates/wasmtime/src/runtime/gc/enabled/anyref.rs:369-386 | crates/wasmtime/src/runtime/gc/enabled/eqref.rs:206-223 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/anyref.rs` and `crates/wasmtime/src/runtime/gc/enabled/eqref.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 93 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 — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 2) cranelift/codegen/meta/src/shared/instructions.rs:133— cranelift/codegen/meta/src/shared/instructions.rs:133-154 | cranelift/codegen/meta/src/shared/instructions.rs:156-173 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18 lines × 2) crates/test-programs/src/bin/p2_path_rename.rs:36— crates/test-programs/src/bin/p2_path_rename.rs:36-53 | crates/test-programs/src/bin/p2_path_rename.rs:59-76 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 4) cranelift/codegen/src/isa/aarch64/inst/mod.rs:948— cranelift/codegen/src/isa/aarch64/inst/mod.rs:948-958 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:967-977 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:338-348 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:357-367 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/riscv64/inst/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 4) cranelift/isle/veri/isaspec/src/instructions.rs:1106— cranelift/isle/veri/isaspec/src/instructions.rs:1106-1116 | cranelift/isle/veri/isaspec/src/instructions.rs:1133-1143 | cranelift/isle/veri/isaspec/src/instructions.rs:1166-1176 | cranelift/isle/veri/isaspec/src/instructions.rs:1204-1214 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:306— cranelift/isle/veri/veri/src/encoded/cls.rs:306-316 | cranelift/isle/veri/veri/src/encoded/cls.rs:1021-1031 | cranelift/isle/veri/veri/src/encoded/cls.rs:1632-1642 | cranelift/isle/veri/veri/src/encoded/cls.rs:2103-2113 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:352— cranelift/isle/veri/veri/src/encoded/cls.rs:352-362 | cranelift/isle/veri/veri/src/encoded/cls.rs:1067-1077 | cranelift/isle/veri/veri/src/encoded/cls.rs:1678-1688 | cranelift/isle/veri/veri/src/encoded/cls.rs:2149-2159 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:698— cranelift/isle/veri/veri/src/encoded/cls.rs:698-708 | cranelift/isle/veri/veri/src/encoded/cls.rs:1357-1367 | cranelift/isle/veri/veri/src/encoded/cls.rs:1880-1890 | cranelift/isle/veri/veri/src/encoded/cls.rs:2303-2313 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:162— cranelift/isle/veri/veri/src/encoded/clz.rs:162-172 | cranelift/isle/veri/veri/src/encoded/clz.rs:494-504 | cranelift/isle/veri/veri/src/encoded/clz.rs:729-739 | cranelift/isle/veri/veri/src/encoded/clz.rs:916-926 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:210— cranelift/isle/veri/veri/src/encoded/clz.rs:210-220 | cranelift/isle/veri/veri/src/encoded/clz.rs:542-552 | cranelift/isle/veri/veri/src/encoded/clz.rs:777-787 | cranelift/isle/veri/veri/src/encoded/clz.rs:964-974 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 4) crates/fuzzing/src/oracles/api.rs:716— crates/fuzzing/src/oracles/api.rs:716-726 | crates/fuzzing/src/oracles/api.rs:929-939 | crates/fuzzing/src/oracles/api.rs:1063-1073 | crates/fuzzing/src/oracles/api.rs:1236-1246 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
TermEnv::translate_expr (cognitive 53) cranelift/isle/isle/src/sema.rs:2665— TermEnv::translate_expr has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (32 pts), match/switch 6 (12 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 25). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
TermEnv::collect_extractor_templates (cognitive 42) cranelift/isle/isle/src/sema.rs:1871— TermEnv::collect_extractor_templates has cognitive complexity 42 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 5 (19 pts), loops 3 (4 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.
TermEnv::collect_rules (cognitive 32) cranelift/isle/isle/src/sema.rs:2205— TermEnv::collect_rules has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 3 (7 pts), loops 4, 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.
TermEnv::translate_pattern (cognitive 29) cranelift/isle/isle/src/sema.rs:2411— TermEnv::translate_pattern has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (19 pts), match/switch 5 (9 pts), boolean chains 1 (nesting depth added 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
TermEnv::collect_externs (cognitive 21) cranelift/isle/isle/src/sema.rs:2066— TermEnv::collect_externs 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.
TermEnv::collect_term_sigs (cognitive 16) cranelift/isle/isle/src/sema.rs:1660— TermEnv::collect_term_sigs has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 2 (6 pts), boolean chains 1, 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.
TermEnv::collect_constructors (cognitive 16) cranelift/isle/isle/src/sema.rs:1800— TermEnv::collect_constructors has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (15 pts), loops 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.
TooManyFields: VMComponentBuiltins crates/wasmtime/src/runtime/vm/component/libcalls.rs:44— TooManyFields — 63 stored fields beside 1 method. The bar is 30 stored fields; this is 33 over it, 2.10× 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 — each reader then names only the group it uses.
TooManyFields: WasmOptions crates/cli-flags/src/lib.rs:391— TooManyFields — 54 stored fields beside 3 methods. The bar is 30 stored fields; this is 24 over it, 1.80× 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 — each reader then names only the group it uses.
TooManyFields: VMBuiltinFunctionsArray crates/wasmtime/src/runtime/vm/vmcontext.rs:722— TooManyFields — 51 stored fields beside 1 method. The bar is 30 stored fields; this is 21 over it, 1.70× 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 — each reader then names only the group it uses.
TooManyFields: OptimizeOptions crates/cli-flags/src/lib.rs:49— TooManyFields — 46 stored fields beside 3 methods. The bar is 30 stored fields; this is 16 over it, 1.53× 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 — each reader then names only the group it uses.
TooManyFields: Tunables crates/environ/src/tunables.rs:63— TooManyFields — 35 stored fields beside 6 methods. The bar is 30 stored fields; this is 5 over it, 1.17× 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 — each reader then names only the group it uses.
TooManyFields: ConfigTunables crates/environ/src/tunables.rs:213— TooManyFields — 35 stored fields beside 2 methods. The bar is 30 stored fields; this is 5 over it, 1.17× 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 — each reader then names only the group it uses.
TooManyFields: WasiOptions crates/cli-flags/src/lib.rs:552— TooManyFields — 34 stored fields beside 3 methods. The bar is 30 stored fields; this is 4 over it, 1.13× 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 — each reader then names only the group it uses.
Duplicated block (11–12 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2078— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2078-2088 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2136-2147 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–12 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:1136— cranelift/codegen/src/isa/s390x/inst/emit.rs:1136-1146 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1162-1173 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–12 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1484— cranelift/isle/veri/isaspec/src/instructions.rs:1484-1494 | cranelift/isle/veri/isaspec/src/instructions.rs:1600-1611 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–12 lines × 2) crates/wasi-nn/src/backend/pytorch.rs:170— crates/wasi-nn/src/backend/pytorch.rs:170-180 | crates/wasi-nn/src/backend/pytorch.rs:205-216 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–12 lines × 2) winch/codegen/src/codegen/drc.rs:267— winch/codegen/src/codegen/drc.rs:267-277 | winch/codegen/src/codegen/mod.rs:2350-2361 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (11–12 lines × 2) crates/fuzzing/src/generators/gc_access.rs:1217— crates/fuzzing/src/generators/gc_access.rs:1217-1228 | crates/fuzzing/src/generators/gc_access.rs:1279-1289 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–12 lines × 2) crates/fuzzing/src/oracles/api.rs:750— crates/fuzzing/src/oracles/api.rs:750-760 | crates/fuzzing/src/oracles/api.rs:861-872 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 3) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2101— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2101-2111 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2127-2137 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2222-2232 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) cranelift/codegen/src/isa/s390x/inst/mod.rs:1475— cranelift/codegen/src/isa/s390x/inst/mod.rs:1475-1485 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3161-3171 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3221-3231 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) cranelift/codegen/src/isa/x64/inst/mod.rs:208— cranelift/codegen/src/isa/x64/inst/mod.rs:208-218 | winch/codegen/src/isa/x64/asm.rs:461-472 | winch/codegen/src/isa/x64/asm.rs:508-518 — there are 3 copies across 2 file(s) — 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.
Duplicated block (11 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:771— cranelift/isle/veri/veri/src/encoded/cls.rs:771-781 | cranelift/isle/veri/veri/src/encoded/cls.rs:1430-1440 | cranelift/isle/veri/veri/src/encoded/cls.rs:1949-1959 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) cranelift/isle/veri/veri/src/encoded/clz.rs:114— cranelift/isle/veri/veri/src/encoded/clz.rs:114-124 | cranelift/isle/veri/veri/src/encoded/clz.rs:446-456 | cranelift/isle/veri/veri/src/encoded/clz.rs:681-691 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) cranelift/isle/veri/veri/src/type_inference.rs:327— cranelift/isle/veri/veri/src/type_inference.rs:327-337 | cranelift/isle/veri/veri/src/type_inference.rs:339-349 | cranelift/isle/veri/veri/src/type_inference.rs:351-361 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 3) crates/wasmtime/src/runtime/vm/gc/gc_ref.rs:558— crates/wasmtime/src/runtime/vm/gc/gc_ref.rs:558-568 | crates/wasmtime/src/runtime/vm/gc/gc_ref.rs:570-580 | crates/wasmtime/src/runtime/vm/gc/gc_ref.rs:582-592 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:880— cranelift/codegen/src/isa/s390x/inst/emit.rs:880-885 | cranelift/codegen/src/isa/s390x/inst/emit.rs:928-933 | cranelift/codegen/src/isa/s390x/inst/emit.rs:994-999 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) crates/winch/src/compiler.rs:274— crates/winch/src/compiler.rs:274-279 | crates/winch/src/compiler.rs:351-356 | crates/winch/src/compiler.rs:371-376 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) winch/codegen/src/isa/aarch64/masm.rs:1050— winch/codegen/src/isa/aarch64/masm.rs:1050-1055 | winch/codegen/src/isa/aarch64/masm.rs:1076-1081 | winch/codegen/src/isa/aarch64/masm.rs:1102-1107 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) winch/codegen/src/isa/x64/masm.rs:2068— winch/codegen/src/isa/x64/masm.rs:2068-2073 | winch/codegen/src/isa/x64/masm.rs:2107-2112 | winch/codegen/src/isa/x64/masm.rs:2185-2190 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 3) crates/wasmtime/src/engine.rs:60— crates/wasmtime/src/engine.rs:60-65 | crates/wasmtime/src/runtime/component/component.rs:70-75 | crates/wasmtime/src/runtime/module.rs:138-143 — 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 — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times.
Duplicated block (6 lines × 3) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:919— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:919-924 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:570-575 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:526-531 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/arrayref.rs` and `crates/wasmtime/src/runtime/gc/enabled/exnref.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 72 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) crates/environ/src/frame_table.rs:75— crates/environ/src/frame_table.rs:75-80 | crates/environ/src/frame_table.rs:84-89 | crates/environ/src/frame_table.rs:94-99 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Parser::parse_spec_expr (cognitive 58) cranelift/isle/isle/src/parser.rs:551— Parser::parse_spec_expr has cognitive complexity 58 (threshold 15). Drivers by points: loops 9 (30 pts), if/else 24 (27 pts), boolean chains 1 (nesting depth added 24). 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.
Parser::parse_model_type (cognitive 39) cranelift/isle/isle/src/parser.rs:875— Parser::parse_model_type has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 2 (7 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.
Parser::parse_instruction (cognitive 25) cranelift/reader/src/parser.rs:2232— Parser::parse_instruction has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 2 (5 pts), loops 2 (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.
Parser::parse_pattern (cognitive 20) cranelift/isle/isle/src/parser.rs:1167— Parser::parse_pattern has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 2 (6 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
Parser::parse_spec (cognitive 17) cranelift/isle/isle/src/parser.rs:441— Parser::parse_spec has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 2 (4 pts), match/switch 1 (2 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.
Parser::parse_target_specs (cognitive 17) cranelift/reader/src/parser.rs:1086— Parser::parse_target_specs has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 5, loops 1 (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.
InterfaceGenerator::generate_trait (cognitive 55) crates/wit-bindgen/src/lib.rs:3432— InterfaceGenerator::generate_trait has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (35 pts), loops 10 (12 pts), match/switch 4 (7 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.
InterfaceGenerator::generate_guest_import_closure (cognitive 46) crates/wit-bindgen/src/lib.rs:2932— InterfaceGenerator::generate_guest_import_closure has cognitive complexity 46 (threshold 15). Drivers by points: if/else 32 (38 pts), match/switch 3 (5 pts), loops 3 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
InterfaceGenerator::generate_add_to_linker (cognitive 30) crates/wit-bindgen/src/lib.rs:2640— InterfaceGenerator::generate_add_to_linker has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 6 (12 pts), loops 5 (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.
InterfaceGenerator::define_rust_guest_export (cognitive 26) crates/wit-bindgen/src/lib.rs:3230— InterfaceGenerator::define_rust_guest_export has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (22 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
InterfaceGenerator::print_rust_enum (cognitive 20) crates/wit-bindgen/src/lib.rs:2205— InterfaceGenerator::print_rust_enum has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 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.
InterfaceGenerator::type_record (cognitive 16) crates/wit-bindgen/src/lib.rs:1998— InterfaceGenerator::type_record has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 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.
Duplicated block (24 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1739— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1739-1762 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:1780-1803 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2245— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2245-2268 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2424-2447 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:1070— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:1070-1093 | crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:1170-1193 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) crates/wasmtime/src/runtime/gc/enabled/structref.rs:666— crates/wasmtime/src/runtime/gc/enabled/structref.rs:666-689 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:766-789 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24 lines × 2) crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs:13— crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs:13-36 | crates/test-programs/src/bin/p1_file_rename_across_perms.rs:12-35 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p1_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 2) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:132— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:132-155 | crates/test-programs/src/bin/p1_file_read_write.rs:151-174 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_pread_pwrite.rs` and `crates/test-programs/src/bin/p1_file_read_write.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 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 — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 2) cranelift/codegen/src/inline.rs:153— cranelift/codegen/src/inline.rs:153-175 | cranelift/codegen/src/inline.rs:195-217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:2558— cranelift/codegen/src/isa/aarch64/inst/emit.rs:2558-2580 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:2601-2623 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1986— cranelift/isle/veri/isaspec/src/instructions.rs:1986-2008 | cranelift/isle/veri/isaspec/src/instructions.rs:2043-2065 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) cranelift/isle/veri/veri/src/bin/spec_lines.rs:52— cranelift/isle/veri/veri/src/bin/spec_lines.rs:52-74 | cranelift/isle/veri/veri/src/program.rs:30-52 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (23 lines × 2) crates/environ/src/types.rs:553— crates/environ/src/types.rs:553-575 | crates/environ/src/types.rs:582-604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) crates/environ/src/gc/drc.rs:29— crates/environ/src/gc/drc.rs:29-51 | crates/environ/src/gc/null.rs:25-47 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (14–15 lines × 2) cranelift/codegen/meta/src/shared/instructions.rs:477— cranelift/codegen/meta/src/shared/instructions.rs:477-490 | cranelift/codegen/meta/src/shared/instructions.rs:3001-3015 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) cranelift/isle/veri/veri/src/type_inference.rs:413— cranelift/isle/veri/veri/src/type_inference.rs:413-427 | cranelift/isle/veri/veri/src/veri.rs:221-234 — before extracting anything, compare `cranelift/isle/veri/veri/src/type_inference.rs` and `cranelift/isle/veri/veri/src/veri.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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 — extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 2) crates/environ/src/fact/trampoline.rs:863— crates/environ/src/fact/trampoline.rs:863-876 | crates/environ/src/fact/trampoline.rs:948-962 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) crates/environ/src/fact/trampoline.rs:1827— crates/environ/src/fact/trampoline.rs:1827-1841 | crates/environ/src/fact/trampoline.rs:2016-2029 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) winch/codegen/src/isa/aarch64/mod.rs:115— winch/codegen/src/isa/aarch64/mod.rs:115-128 | winch/codegen/src/isa/x64/mod.rs:120-134 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14–15 lines × 2) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:92— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:92-105 | crates/test-programs/src/bin/p1_file_read_write.rs:101-115 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_pread_pwrite.rs` and `crates/test-programs/src/bin/p1_file_read_write.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 4) cranelift/codegen/src/isa/s390x/abi.rs:1516— cranelift/codegen/src/isa/s390x/abi.rs:1516-1525 | cranelift/codegen/src/isa/s390x/abi.rs:1540-1549 | cranelift/codegen/src/isa/s390x/abi.rs:1586-1595 | cranelift/codegen/src/isa/s390x/abi.rs:1608-1617 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) cranelift/codegen/src/isa/s390x/inst/emit.rs:2959— cranelift/codegen/src/isa/s390x/inst/emit.rs:2959-2968 | cranelift/codegen/src/isa/s390x/inst/emit.rs:2981-2990 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2570-2579 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2590-2599 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:331— cranelift/isle/veri/veri/src/encoded/cls.rs:331-340 | cranelift/isle/veri/veri/src/encoded/cls.rs:1046-1055 | cranelift/isle/veri/veri/src/encoded/cls.rs:1657-1666 | cranelift/isle/veri/veri/src/encoded/cls.rs:2128-2137 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:727— cranelift/isle/veri/veri/src/encoded/cls.rs:727-736 | cranelift/isle/veri/veri/src/encoded/cls.rs:1386-1395 | cranelift/isle/veri/veri/src/encoded/cls.rs:1905-1914 | cranelift/isle/veri/veri/src/encoded/cls.rs:2328-2337 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:327— cranelift/isle/veri/veri/src/encoded/clz.rs:327-337 | cranelift/isle/veri/veri/src/encoded/clz.rs:611-620 | cranelift/isle/veri/veri/src/encoded/clz.rs:846-855 | cranelift/isle/veri/veri/src/encoded/clz.rs:1032-1042 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 4) crates/fuzzing/src/oracles/api.rs:979— crates/fuzzing/src/oracles/api.rs:979-988 | crates/fuzzing/src/oracles/api.rs:1136-1145 | crates/fuzzing/src/oracles/api.rs:1149-1158 | crates/fuzzing/src/oracles/api.rs:1293-1302 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
cranelift_codegen_meta::gen_inst::gen_instruction_data_impl (cyclomatic 72) cranelift/codegen/meta/src/gen_inst.rs:167— cranelift_codegen_meta::gen_inst::gen_instruction_data_impl has cyclomatic complexity 72 (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.
cranelift_codegen_meta::gen_inst::gen_inst_builder (cyclomatic 33) cranelift/codegen/meta/src/gen_inst.rs:1113— cranelift_codegen_meta::gen_inst::gen_inst_builder has cyclomatic complexity 33 (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.
cranelift_codegen_meta::pulley::generate_rust (cyclomatic 18) cranelift/codegen/meta/src/pulley.rs:184— cranelift_codegen_meta::pulley::generate_rust 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.
cranelift_codegen_meta::gen_asm::isle_constructors (cyclomatic 17) cranelift/codegen/meta/src/gen_asm.rs:404— cranelift_codegen_meta::gen_asm::isle_constructors 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_codegen_meta::gen_asm::generate_macro_inst_fn (cyclomatic 16) cranelift/codegen/meta/src/gen_asm.rs:104— cranelift_codegen_meta::gen_asm::generate_macro_inst_fn 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 — the same kind of value, with no behaviour of its own — 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.
Instance::guest_write (cyclomatic 29) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3586— Instance::guest_write 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.
Instance::guest_read (cyclomatic 28) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3845— Instance::guest_read 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.
Instance::copy (cyclomatic 22) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3364— Instance::copy 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.
Instance::subtask_cancel (cyclomatic 19) crates/wasmtime/src/runtime/component/concurrent.rs:4519— Instance::subtask_cancel 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.
Instance::initialize_vmctx (cyclomatic 17) crates/wasmtime/src/runtime/vm/instance.rs:1168— Instance::initialize_vmctx 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.
wasmtime::runtime::wave::component::ensure_type_val (cognitive 41) crates/wasmtime/src/runtime/wave/component.rs:305— wasmtime::runtime::wave::component::ensure_type_val has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 5 (12 pts), loops 5 (10 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.
wasmtime::runtime::component::func::typed::lower_string (cognitive 28) crates/wasmtime/src/runtime/component/func/typed.rs:1369— wasmtime::runtime::component::func::typed::lower_string has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (10 pts), match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
wasmtime::runtime::component::concurrent::futures_and_streams::write (cognitive 27) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3064— wasmtime::runtime::component::concurrent::futures_and_streams::write has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 4 (9 pts), loops 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.
wasmtime::runtime::native_debug::relocate_dwarf_sections (cognitive 17) crates/wasmtime/src/runtime/native_debug.rs:34— wasmtime::runtime::native_debug::relocate_dwarf_sections has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (9 pts), loops 3 (4 pts), if/else 1 (3 pts), boolean chains 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.
wasmtime::runtime::vm::sys::unix::pagemap::reset_with_pagemap (cognitive 16) crates/wasmtime/src/runtime/vm/sys/unix/pagemap.rs:237— wasmtime::runtime::vm::sys::unix::pagemap::reset_with_pagemap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (3 pts), match/switch 2 (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.
Duplicated block (13–14 lines × 2) cranelift/isle/veri/aslp/src/main.rs:18— cranelift/isle/veri/aslp/src/main.rs:18-30 | cranelift/isle/veri/isaspec/src/bin/constraints.rs:33-46 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13–14 lines × 2) crates/core/src/alloc/boxed.rs:17— crates/core/src/alloc/boxed.rs:17-30 | crates/core/src/error/boxed.rs:31-43 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13–14 lines × 2) crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs:327— crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs:327-339 | crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs:459-472 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–14 lines × 2) crates/wit-bindgen/src/lib.rs:2024— crates/wit-bindgen/src/lib.rs:2024-2037 | crates/wit-bindgen/src/lib.rs:2240-2252 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–14 lines × 2) winch/codegen/src/isa/x64/masm.rs:2107— winch/codegen/src/isa/x64/masm.rs:2107-2119 | winch/codegen/src/isa/x64/masm.rs:2185-2198 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 3) cranelift/codegen/src/isa/pulley_shared/abi.rs:115— cranelift/codegen/src/isa/pulley_shared/abi.rs:115-127 | cranelift/codegen/src/isa/riscv64/abi.rs:150-162 | cranelift/codegen/src/isa/x64/abi.rs:344-356 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (13 lines × 3) cranelift/codegen/src/isa/pulley_shared/abi.rs:1043— cranelift/codegen/src/isa/pulley_shared/abi.rs:1043-1055 | cranelift/codegen/src/isa/riscv64/abi.rs:999-1011 | cranelift/codegen/src/isa/riscv64/abi.rs:1066-1078 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (13 lines × 3) cranelift/isle/veri/isaspec/src/instructions.rs:309— cranelift/isle/veri/isaspec/src/instructions.rs:309-321 | cranelift/isle/veri/isaspec/src/instructions.rs:450-462 | cranelift/isle/veri/isaspec/src/instructions.rs:746-758 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) crates/cranelift/src/translate/code_translator.rs:3923— crates/cranelift/src/translate/code_translator.rs:3923-3935 | crates/cranelift/src/translate/code_translator.rs:3978-3990 | crates/cranelift/src/translate/code_translator.rs:4066-4078 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 3) crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:477— crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:477-489 | crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:585-597 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:242-254 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/arrayref.rs` and `crates/wasmtime/src/runtime/gc/enabled/structref.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:169— cranelift/isle/veri/veri/src/encoded/clz.rs:169-180 | cranelift/isle/veri/veri/src/encoded/clz.rs:453-464 | cranelift/isle/veri/veri/src/encoded/clz.rs:688-699 | cranelift/isle/veri/veri/src/encoded/clz.rs:875-886 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:217— cranelift/isle/veri/veri/src/encoded/clz.rs:217-228 | cranelift/isle/veri/veri/src/encoded/clz.rs:501-512 | cranelift/isle/veri/veri/src/encoded/clz.rs:736-747 | cranelift/isle/veri/veri/src/encoded/clz.rs:923-934 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:265— cranelift/isle/veri/veri/src/encoded/clz.rs:265-276 | cranelift/isle/veri/veri/src/encoded/clz.rs:549-560 | cranelift/isle/veri/veri/src/encoded/clz.rs:784-795 | cranelift/isle/veri/veri/src/encoded/clz.rs:971-982 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 4) cranelift/codegen/src/isa/pulley_shared/lower/isle.rs:169— cranelift/codegen/src/isa/pulley_shared/lower/isle.rs:169-180 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:112-123 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:130-141 | cranelift/codegen/src/isa/s390x/lower/isle.rs:191-202 — before extracting anything, compare `cranelift/codegen/src/isa/pulley_shared/lower/isle.rs` and `cranelift/codegen/src/isa/riscv64/lower/isle.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 4) crates/test-programs/src/bin/p2_tcp_states.rs:40— crates/test-programs/src/bin/p2_tcp_states.rs:40-51 | crates/test-programs/src/bin/p2_tcp_states.rs:91-102 | crates/test-programs/src/bin/p2_tcp_states.rs:149-160 | crates/test-programs/src/bin/p2_tcp_states.rs:200-211 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:1137— cranelift/codegen/src/isa/s390x/inst/emit.rs:1137-1145 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1191-1199 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1218-1226 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) cranelift/filetests/src/function_runner.rs:810— cranelift/filetests/src/function_runner.rs:810-818 | crates/wasmtime/src/runtime/vm/libcalls.rs:1009-1017 | crates/wasmtime/src/runtime/vm/libcalls.rs:1070-1078 — there are 3 copies across 2 file(s) — 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.
Duplicated block (9 lines × 3) cranelift/isle/veri/veri/src/encoded/rev.rs:117— cranelift/isle/veri/veri/src/encoded/rev.rs:117-125 | cranelift/isle/veri/veri/src/encoded/rev.rs:209-217 | cranelift/isle/veri/veri/src/encoded/rev.rs:267-275 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) crates/c-api/src/component/linker.rs:118— crates/c-api/src/component/linker.rs:118-126 | crates/c-api/src/component/linker.rs:184-193 | crates/c-api/src/component/linker.rs:337-345 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 3) crates/fuzzing/src/oracles.rs:844— crates/fuzzing/src/oracles.rs:844-852 | crates/fuzzing/src/oracles.rs:859-867 | crates/fuzzing/src/oracles.rs:874-882 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) cranelift/codegen/meta/src/shared/instructions.rs:1550— cranelift/codegen/meta/src/shared/instructions.rs:1550-1557 | cranelift/codegen/meta/src/shared/instructions.rs:1598-1605 | cranelift/codegen/meta/src/shared/instructions.rs:1618-1625 | cranelift/codegen/meta/src/shared/instructions.rs:1640-1647 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) crates/environ/src/component/translate/inline.rs:839— crates/environ/src/component/translate/inline.rs:839-846 | crates/environ/src/component/translate/inline.rs:859-866 | crates/environ/src/component/translate/inline.rs:956-963 | crates/environ/src/component/translate/inline.rs:976-983 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) crates/environ/src/fact/trampoline.rs:1807— crates/environ/src/fact/trampoline.rs:1807-1814 | crates/environ/src/fact/trampoline.rs:1998-2005 | crates/environ/src/fact/trampoline.rs:2082-2089 | crates/environ/src/fact/trampoline.rs:2174-2181 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) cranelift/codegen/src/isa/s390x/inst/mod.rs:1478— cranelift/codegen/src/isa/s390x/inst/mod.rs:1478-1485 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1952-1959 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3164-3171 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3224-3231 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 4) crates/fuzzing/src/oracles/api.rs:992— crates/fuzzing/src/oracles/api.rs:992-999 | crates/fuzzing/src/oracles/api.rs:1162-1169 | crates/fuzzing/src/oracles/api.rs:1306-1313 | crates/fuzzing/src/oracles/api.rs:1319-1326 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) cranelift/codegen/src/isa/x64/lower/isle.rs:992— cranelift/codegen/src/isa/x64/lower/isle.rs:992-998 | cranelift/codegen/src/isa/x64/lower/isle.rs:1002-1008 | cranelift/codegen/src/isa/x64/lower/isle.rs:1012-1018 | cranelift/codegen/src/isa/x64/lower/isle.rs:1559-1565 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) cranelift/isle/veri/veri/src/encoded/rev.rs:11— cranelift/isle/veri/veri/src/encoded/rev.rs:11-17 | cranelift/isle/veri/veri/src/encoded/rev.rs:121-127 | cranelift/isle/veri/veri/src/encoded/rev.rs:213-219 | cranelift/isle/veri/veri/src/encoded/rev.rs:271-277 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) crates/cranelift/src/translate/code_translator.rs:767— crates/cranelift/src/translate/code_translator.rs:767-773 | crates/cranelift/src/translate/code_translator.rs:832-838 | crates/cranelift/src/translate/code_translator.rs:858-864 | crates/cranelift/src/translate/code_translator.rs:2728-2734 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 4) cranelift/codegen/src/isa/aarch64/mod.rs:255— cranelift/codegen/src/isa/aarch64/mod.rs:255-261 | cranelift/codegen/src/isa/riscv64/mod.rs:270-276 | cranelift/codegen/src/isa/s390x/mod.rs:228-234 | cranelift/codegen/src/isa/x64/mod.rs:256-262 — `cranelift/codegen/src/isa/aarch64/mod.rs` and `cranelift/codegen/src/isa/riscv64/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 4) crates/core/src/alloc/vec.rs:469— crates/core/src/alloc/vec.rs:469-475 | crates/environ/src/collections/index_set.rs:125-131 | crates/environ/src/collections/secondary_map.rs:222-228 | crates/environ/src/string_pool.rs:139-145 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times.
Duplicated block (6 lines × 4) cranelift/codegen/src/isa/s390x/inst/emit.rs:856— cranelift/codegen/src/isa/s390x/inst/emit.rs:856-861 | cranelift/codegen/src/isa/s390x/inst/emit.rs:904-909 | cranelift/codegen/src/isa/s390x/inst/emit.rs:950-955 | cranelift/codegen/src/isa/s390x/inst/emit.rs:971-976 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 4) crates/cranelift/src/compiler/component.rs:416— crates/cranelift/src/compiler/component.rs:416-421 | crates/cranelift/src/compiler/component.rs:432-437 | crates/cranelift/src/compiler/component.rs:513-518 | crates/cranelift/src/compiler/component.rs:529-534 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 4) crates/wit-bindgen/src/lib.rs:2097— crates/wit-bindgen/src/lib.rs:2097-2102 | crates/wit-bindgen/src/lib.rs:2121-2126 | crates/wit-bindgen/src/lib.rs:2511-2516 | crates/wit-bindgen/src/lib.rs:2525-2530 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 4) crates/c-api/src/func.rs:47— crates/c-api/src/func.rs:47-52 | crates/c-api/src/global.rs:26-31 | crates/c-api/src/memory.rs:26-31 | crates/c-api/src/table.rs:30-35 — 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 — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (6 lines × 4) crates/c-api/src/types/func.rs:112— crates/c-api/src/types/func.rs:112-117 | crates/c-api/src/types/global.rs:36-41 | crates/c-api/src/types/memory.rs:34-39 | crates/c-api/src/types/table.rs:34-39 — 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 — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Val::store (cyclomatic 65) crates/wasmtime/src/runtime/component/values.rs:585— Val::store has cyclomatic complexity 65 (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 — the same kind of value, with no behaviour of its own — 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.
Val::eq (cyclomatic 63) crates/wasmtime/src/runtime/component/values.rs:805— Val::eq has cyclomatic complexity 63 (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 — the same kind of value, with no behaviour of its own — 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.
Val::lower (cyclomatic 62) crates/wasmtime/src/runtime/component/values.rs:416— Val::lower has cyclomatic complexity 62 (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 — the same kind of value, with no behaviour of its own — 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.
Val::load (cyclomatic 33) crates/wasmtime/src/runtime/component/values.rs:260— Val::load 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 — the same kind of value, with no behaviour of its own — 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.
InterfaceGenerator::generate_trait (cyclomatic 31) crates/wit-bindgen/src/lib.rs:3432— InterfaceGenerator::generate_trait 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.
InterfaceGenerator::generate_guest_import_closure (cyclomatic 29) crates/wit-bindgen/src/lib.rs:2932— InterfaceGenerator::generate_guest_import_closure has cyclomatic complexity 29 (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.
InterfaceGenerator::generate_add_to_linker (cyclomatic 18) crates/wit-bindgen/src/lib.rs:2640— InterfaceGenerator::generate_add_to_linker 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.
InterfaceGenerator::define_rust_guest_export (cyclomatic 17) crates/wit-bindgen/src/lib.rs:3230— InterfaceGenerator::define_rust_guest_export has cyclomatic complexity 17 (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.
VCode::emit (cognitive 157) cranelift/codegen/src/machinst/vcode.rs:736— VCode::emit has cognitive complexity 157 (threshold 15). Drivers by points: if/else 40 (119 pts), loops 11 (26 pts), match/switch 3 (8 pts), boolean chains 4 (nesting depth added 99). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VCode::log_value_labels_ranges (cognitive 113) cranelift/codegen/src/machinst/vcode.rs:1319— VCode::log_value_labels_ranges has cognitive complexity 113 (threshold 15). Drivers by points: if/else 33 (75 pts), loops 14 (30 pts), match/switch 4 (8 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
VCode::compute_value_labels_ranges (cognitive 21) cranelift/codegen/src/machinst/vcode.rs:1226— VCode::compute_value_labels_ranges has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 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.
VCode::compute_clobbers_and_function_calls (cognitive 18) cranelift/codegen/src/machinst/vcode.rs:668— VCode::compute_clobbers_and_function_calls has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (4 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.
Codegen::emit_block_contents (cognitive 76) cranelift/isle/isle/src/codegen.rs:672— Codegen::emit_block_contents has cognitive complexity 76 (threshold 15). Drivers by points: if/else 16 (49 pts), match/switch 7 (22 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Codegen::generate_internal_types (cognitive 25) cranelift/isle/isle/src/codegen.rs:394— Codegen::generate_internal_types has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 2 (5 pts), loops 2 (4 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.
Codegen::emit_expr (cognitive 25) cranelift/isle/isle/src/codegen.rs:915— Codegen::emit_expr has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 5 (10 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.
Codegen::emit_fields (cognitive 17) cranelift/isle/isle/src/codegen.rs:1136— Codegen::emit_fields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 1 (4 pts), loops 1 (2 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.
StoreContextMut::poll_until (cognitive 52) crates/wasmtime/src/runtime/component/concurrent.rs:1370— StoreContextMut::poll_until has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (40 pts), match/switch 5 (11 pts), loops 1 (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.
StoreContextMut::new_transmit (cognitive 38) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:2650— StoreContextMut::new_transmit has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 4, match/switch 4 (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.
StoreContextMut::set_consumer (cognitive 38) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:2847— StoreContextMut::set_consumer has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 8 (12 pts), loops 1 (2 pts), boolean chains 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.
StoreContextMut::handle_work_item (cognitive 23) crates/wasmtime/src/runtime/component/concurrent.rs:1611— StoreContextMut::handle_work_item has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 2 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Config::validate (cognitive 51) crates/wasmtime/src/config.rs:2696— Config::validate has cognitive complexity 51 (threshold 15). Drivers by points: if/else 29 (36 pts), boolean chains 9, loops 2 (3 pts), match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
Config::parse (cognitive 33) crates/component-macro/src/bindgen.rs:78— Config::parse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (28 pts), match/switch 1 (3 pts), loops 1 (2 pts) (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.
Config::build_compiler (cognitive 28) crates/wasmtime/src/config.rs:3060— Config::build_compiler has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 3, match/switch 2 (3 pts), 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.
Config::build (cognitive 21) crates/wiggle/generate/src/config.rs:99— Config::build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (18 pts), 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.
Verifier::verify_global_values (cognitive 42) cranelift/codegen/src/verifier/mod.rs:333— Verifier::verify_global_values has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (34 pts), match/switch 2 (5 pts), loops 2 (3 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.
Verifier::verify_entity_references (cognitive 27) cranelift/codegen/src/verifier/mod.rs:525— Verifier::verify_entity_references has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 2, loops 2, 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.
Verifier::verify_inst_arg (cognitive 20) cranelift/codegen/src/verifier/mod.rs:1016— Verifier::verify_inst_arg has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Verifier::typecheck_function_signature (cognitive 16) cranelift/codegen/src/verifier/mod.rs:1969— Verifier::typecheck_function_signature has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, 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.
wasmtime_wasi::filesystem::primitives::windows::create_file_at_w::CreateFileAtW (cognitive 42) crates/wasi/src/filesystem/primitives/windows/create_file_at_w.rs:75— wasmtime_wasi::filesystem::primitives::windows::create_file_at_w::CreateFileAtW has cognitive complexity 42 (threshold 15). Drivers by points: if/else 29 (36 pts), boolean chains 4, match/switch 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
wasmtime_wasi::filesystem::primitives::windows::open_unchecked::handle_open_result (cognitive 35) crates/wasi/src/filesystem/primitives/windows/open_unchecked.rs:137— wasmtime_wasi::filesystem::primitives::windows::open_unchecked::handle_open_result has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (27 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 21). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
wasmtime_wasi::filesystem::primitives::manually::open::stat (cognitive 33) crates/wasi/src/filesystem/primitives/manually/open.rs:437— wasmtime_wasi::filesystem::primitives::manually::open::stat has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (29 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
wasmtime_wasi::filesystem::primitives::windows::open_unchecked::open_at (cognitive 22) crates/wasi/src/filesystem/primitives/windows/open_unchecked.rs:43— wasmtime_wasi::filesystem::primitives::windows::open_unchecked::open_at has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 2 (6 pts), loops 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.
Compiler::convert_variant (cognitive 32) crates/environ/src/fact/trampoline.rs:3248— Compiler::convert_variant has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 8 (18 pts), if/else 3 (7 pts), loops 4 (7 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.
Compiler::translate (cognitive 22) crates/environ/src/fact/trampoline.rs:984— Compiler::translate has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 5 (6 pts), loops 2 (6 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.
Compiler::append_code (cognitive 21) crates/cranelift/src/compiler.rs:692— Compiler::append_code has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (7 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.
Compiler::compile_sync_to_sync_adapter (cognitive 16) crates/environ/src/fact/trampoline.rs:628— Compiler::compile_sync_to_sync_adapter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — 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.
Duplicated block (19 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:210— cranelift/isle/veri/veri/src/encoded/cls.rs:210-228 | cranelift/isle/veri/veri/src/encoded/cls.rs:925-943 | cranelift/isle/veri/veri/src/encoded/cls.rs:1536-1554 | cranelift/isle/veri/veri/src/encoded/cls.rs:2007-2025 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:258— cranelift/isle/veri/veri/src/encoded/cls.rs:258-276 | cranelift/isle/veri/veri/src/encoded/cls.rs:973-991 | cranelift/isle/veri/veri/src/encoded/cls.rs:1584-1602 | cranelift/isle/veri/veri/src/encoded/cls.rs:2055-2073 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:586— cranelift/isle/veri/veri/src/encoded/cls.rs:586-604 | cranelift/isle/veri/veri/src/encoded/cls.rs:1245-1263 | cranelift/isle/veri/veri/src/encoded/cls.rs:1784-1802 | cranelift/isle/veri/veri/src/encoded/cls.rs:2207-2225 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:642— cranelift/isle/veri/veri/src/encoded/cls.rs:642-660 | cranelift/isle/veri/veri/src/encoded/cls.rs:1301-1319 | cranelift/isle/veri/veri/src/encoded/cls.rs:1832-1850 | cranelift/isle/veri/veri/src/encoded/cls.rs:2255-2273 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1158— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1158-1176 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1254-1272 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2275— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2275-2293 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2454-2472 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19 lines × 2) cranelift/src/interpret.rs:42— cranelift/src/interpret.rs:42-60 | cranelift/src/run.rs:55-73 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (19 lines × 2) crates/cranelift/src/translate/code_translator.rs:3082— crates/cranelift/src/translate/code_translator.rs:3082-3100 | crates/cranelift/src/translate/code_translator.rs:3117-3135 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 4) cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:401— cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:401-413 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:432-444 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:475-487 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:506-518 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 4) cranelift/codegen/src/isa/s390x/inst/mod.rs:2960— cranelift/codegen/src/isa/s390x/inst/mod.rs:2960-2972 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2996-3008 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3025-3037 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3114-3126 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 4) crates/cranelift/src/translate/code_translator.rs:3907— crates/cranelift/src/translate/code_translator.rs:3907-3919 | crates/cranelift/src/translate/code_translator.rs:3958-3970 | crates/cranelift/src/translate/code_translator.rs:4008-4020 | crates/cranelift/src/translate/code_translator.rs:4051-4063 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13 lines × 4) crates/test-programs/src/bin/p2_tcp_sockopts.rs:68— crates/test-programs/src/bin/p2_tcp_sockopts.rs:68-80 | crates/test-programs/src/bin/p2_udp_sockopts.rs:24-36 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:72-84 | crates/test-programs/src/bin/p3_sockets_udp_sockopts.rs:27-39 — before extracting anything, compare `crates/test-programs/src/bin/p2_tcp_sockopts.rs` and `crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 77 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12–13 lines × 2) crates/wasi-preview1-component-adapter/src/lib.rs:1017— crates/wasi-preview1-component-adapter/src/lib.rs:1017-1029 | crates/wasi-preview1-component-adapter/src/lib.rs:1811-1822 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) crates/wasmtime/src/runtime/vm/sys/windows/mmap.rs:49— crates/wasmtime/src/runtime/vm/sys/windows/mmap.rs:49-61 | crates/wasmtime/src/runtime/vm/sys/windows/mmap.rs:70-81 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) winch/codegen/src/codegen/mod.rs:911— winch/codegen/src/codegen/mod.rs:911-922 | winch/codegen/src/codegen/mod.rs:2037-2049 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 2) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:157— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:157-168 | crates/test-programs/src/bin/p1_file_read_write.rs:178-190 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_pread_pwrite.rs` and `crates/test-programs/src/bin/p1_file_read_write.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) cranelift/isle/veri/veri/src/encoded/clz.rs:121— cranelift/isle/veri/veri/src/encoded/clz.rs:121-132 | cranelift/isle/veri/veri/src/encoded/clz.rs:405-416 | cranelift/isle/veri/veri/src/encoded/clz.rs:640-651 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 3) crates/wasmtime/src/runtime/vm/table.rs:372— crates/wasmtime/src/runtime/vm/table.rs:372-383 | crates/wasmtime/src/runtime/vm/table.rs:398-409 | crates/wasmtime/src/runtime/vm/table.rs:420-431 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 3) crates/cranelift/src/debug/transform/unit.rs:205— crates/cranelift/src/debug/transform/unit.rs:205-216 | crates/cranelift/src/debug/transform/unit.rs:222-233 | crates/cranelift/src/debug/transform/unit.rs:239-250 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12 lines × 3) crates/fuzzing/src/generators/gc_access.rs:1376— crates/fuzzing/src/generators/gc_access.rs:1376-1387 | crates/fuzzing/src/generators/gc_access.rs:1469-1480 | crates/fuzzing/src/generators/gc_access.rs:1544-1555 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 5) cranelift/codegen/meta/src/shared/instructions.rs:2250— cranelift/codegen/meta/src/shared/instructions.rs:2250-2260 | cranelift/codegen/meta/src/shared/instructions.rs:2268-2278 | cranelift/codegen/meta/src/shared/instructions.rs:2294-2304 | cranelift/codegen/meta/src/shared/instructions.rs:2321-2331 | cranelift/codegen/meta/src/shared/instructions.rs:2341-2351 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 5) cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:177— cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:177-187 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:199-209 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:222-232 | cranelift/codegen/src/isa/x64/inst/mod.rs:1004-1014 | cranelift/codegen/src/isa/x64/inst/mod.rs:1038-1048 — before extracting anything, compare `cranelift/codegen/src/isa/pulley_shared/inst/mod.rs` and `cranelift/codegen/src/isa/x64/inst/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 5) cranelift/codegen/src/isa/s390x/inst/emit.rs:1222— cranelift/codegen/src/isa/s390x/inst/emit.rs:1222-1232 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1272-1282 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1299-1309 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1326-1336 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1353-1363 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 5) crates/wasmtime/src/runtime/gc/enabled/anyref.rs:411— crates/wasmtime/src/runtime/gc/enabled/anyref.rs:411-421 | crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:800-810 | crates/wasmtime/src/runtime/gc/enabled/eqref.rs:248-258 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:472-482 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:425-435 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/anyref.rs` and `crates/wasmtime/src/runtime/gc/enabled/eqref.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 93 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10–11 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1497— cranelift/isle/veri/isaspec/src/instructions.rs:1497-1507 | cranelift/isle/veri/isaspec/src/instructions.rs:1613-1622 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) crates/cranelift/src/func_environ/gc/null.rs:247— crates/cranelift/src/func_environ/gc/null.rs:247-257 | crates/cranelift/src/func_environ/gc/null.rs:297-306 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) crates/wiggle/generate/src/funcs.rs:100— crates/wiggle/generate/src/funcs.rs:100-109 | crates/wiggle/generate/src/funcs.rs:128-138 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–11 lines × 2) crates/test-programs/src/bin/p2_tcp_states.rs:20— crates/test-programs/src/bin/p2_tcp_states.rs:20-29 | crates/test-programs/src/bin/p2_tcp_states.rs:70-80 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–10 lines × 2) cranelift/codegen/src/isa/riscv64/abi.rs:502— cranelift/codegen/src/isa/riscv64/abi.rs:502-510 | cranelift/codegen/src/isa/riscv64/abi.rs:544-553 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–10 lines × 2) winch/codegen/src/isa/aarch64/masm.rs:2357— winch/codegen/src/isa/aarch64/masm.rs:2357-2365 | winch/codegen/src/isa/x64/masm.rs:2705-2714 — `winch/codegen/src/isa/aarch64/masm.rs` and `winch/codegen/src/isa/x64/masm.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 68 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (9–10 lines × 2) winch/codegen/src/isa/x64/masm.rs:736— winch/codegen/src/isa/x64/masm.rs:736-745 | winch/codegen/src/isa/x64/masm.rs:769-777 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–10 lines × 2) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:170— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:170-178 | crates/test-programs/src/bin/p1_file_read_write.rs:194-203 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_pread_pwrite.rs` and `crates/test-programs/src/bin/p1_file_read_write.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 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 — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) cranelift/codegen/src/isa/s390x/inst/emit.rs:2910— cranelift/codegen/src/isa/s390x/inst/emit.rs:2910-2918 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2506-2514 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2570-2578 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2590-2598 — before extracting anything, compare `cranelift/codegen/src/isa/s390x/inst/emit.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 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 — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:760— cranelift/isle/veri/veri/src/encoded/cls.rs:760-768 | cranelift/isle/veri/veri/src/encoded/cls.rs:1419-1427 | cranelift/isle/veri/veri/src/encoded/cls.rs:1938-1946 | cranelift/isle/veri/veri/src/encoded/cls.rs:2361-2369 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 4) crates/cranelift/src/compiler/component.rs:478— crates/cranelift/src/compiler/component.rs:478-486 | crates/cranelift/src/compiler/component.rs:494-502 | crates/cranelift/src/compiler/component.rs:564-572 | crates/cranelift/src/compiler/component.rs:723-731 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 4) crates/cranelift/src/translate/code_translator.rs:3012— crates/cranelift/src/translate/code_translator.rs:3012-3020 | crates/cranelift/src/translate/code_translator.rs:3029-3037 | crates/cranelift/src/translate/code_translator.rs:3046-3054 | crates/cranelift/src/translate/code_translator.rs:3064-3072 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–9 lines × 2) crates/environ/src/fact/trampoline.rs:878— crates/environ/src/fact/trampoline.rs:878-885 | crates/environ/src/fact/trampoline.rs:970-978 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) crates/wasi-nn/src/backend/openvino.rs:161— crates/wasi-nn/src/backend/openvino.rs:161-169 | crates/wasi-nn/src/backend/openvino.rs:197-204 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) crates/fuzzing/src/generators/gc_ops/mutator.rs:135— crates/fuzzing/src/generators/gc_ops/mutator.rs:135-142 | crates/fuzzing/src/generators/gc_ops/mutator.rs:325-333 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–9 lines × 2) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:107— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:107-114 | crates/test-programs/src/bin/p1_file_read_write.rs:119-127 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_pread_pwrite.rs` and `crates/test-programs/src/bin/p1_file_read_write.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 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 — extracting one helper per block leaves the fork in place.
Compiler::translate (cyclomatic 53) crates/environ/src/fact/trampoline.rs:984— Compiler::translate 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 — the same kind of value, with no behaviour of its own — 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.
Compiler::convert_variant (cyclomatic 26) crates/environ/src/fact/trampoline.rs:3248— Compiler::convert_variant 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 — the same kind of value, with no behaviour of its own — 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.
Compiler::translate_string (cyclomatic 17) crates/environ/src/fact/trampoline.rs:1519— Compiler::translate_string 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 — the same kind of value, with no behaviour of its own — 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.
Engine::check_compatible_with_isa_flag (cyclomatic 46) crates/wasmtime/src/engine.rs:547— Engine::check_compatible_with_isa_flag has cyclomatic complexity 46 (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 — the same kind of value, with no behaviour of its own — 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.
Engine::check_compatible_with_shared_flag (cyclomatic 18) crates/wasmtime/src/engine.rs:454— Engine::check_compatible_with_shared_flag 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 — the same kind of value, with no behaviour of its own — 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.
Engine::_check_compatible_with_native_host (cyclomatic 16) crates/wasmtime/src/engine.rs:360— Engine::_check_compatible_with_native_host 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.
Config::validate (cyclomatic 43) crates/wasmtime/src/config.rs:2696— Config::validate has cyclomatic complexity 43 (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.
Config::parse (cyclomatic 29) crates/component-macro/src/bindgen.rs:78— Config::parse 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.
Config::build_compiler (cyclomatic 26) crates/wasmtime/src/config.rs:3060— Config::build_compiler 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.
StoreContextMut::set_consumer (cyclomatic 27) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:2847— StoreContextMut::set_consumer 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.
StoreContextMut::new_transmit (cyclomatic 24) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:2650— StoreContextMut::new_transmit 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.
StoreContextMut::poll_until (cyclomatic 22) crates/wasmtime/src/runtime/component/concurrent.rs:1370— StoreContextMut::poll_until 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.
cranelift_isle_veri::bin::veri::main (cyclomatic 26) cranelift/isle/veri/veri/src/bin/veri.rs:188— cranelift_isle_veri::bin::veri::main has cyclomatic complexity 26 (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.
cranelift_isle_veri::debug::binding_string (cyclomatic 20) cranelift/isle/veri/veri/src/debug.rs:160— cranelift_isle_veri::debug::binding_string 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_isle_veri::trie::binding_type (cyclomatic 17) cranelift/isle/veri/veri/src/trie.rs:52— cranelift_isle_veri::trie::binding_type 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 — the same kind of value, with no behaviour of its own — 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.
Wasmtime::generate (cyclomatic 19) crates/wit-bindgen/src/lib.rs:372— Wasmtime::generate 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.
Wasmtime::world_add_to_linker (cyclomatic 19) crates/wit-bindgen/src/lib.rs:1615— Wasmtime::world_add_to_linker 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.
Wasmtime::export (cyclomatic 17) crates/wit-bindgen/src/lib.rs:703— Wasmtime::export has cyclomatic complexity 17 (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.
Lower::lower_clif_block (cognitive 55) cranelift/codegen/src/machinst/lower.rs:830— Lower::lower_clif_block has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 6 (18 pts), boolean chains 4, match/switch 1 (3 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.
Lower::new (cognitive 43) cranelift/codegen/src/machinst/lower.rs:373— Lower::new has cognitive complexity 43 (threshold 15). Drivers by points: loops 10 (23 pts), if/else 6 (19 pts), boolean chains 1 (nesting depth added 26). 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.
Lower::lower (cognitive 43) cranelift/codegen/src/machinst/lower.rs:1242— Lower::lower has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 3 (11 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
Lexer::next_token (cognitive 47) cranelift/isle/isle/src/lexer.rs:100— Lexer::next_token has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 11 (25 pts), if/else 5 (11 pts), loops 5 (11 pts) (nesting depth added 26). Of this number, 45 points are the body's own statements and 2 belong to 2 function items inside it that branch. 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.
Lexer::scan_number (cognitive 16) cranelift/reader/src/lexer.rs:260— Lexer::scan_number has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (3 pts), match/switch 2 (3 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.
Lexer::next (cognitive 16) cranelift/reader/src/lexer.rs:476— Lexer::next has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 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.
S390xMachineDeps::compute_arg_locs (cognitive 41) cranelift/codegen/src/isa/s390x/abi.rs:302— S390xMachineDeps::compute_arg_locs has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (29 pts), match/switch 4 (7 pts), boolean chains 3, loops 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.
S390xMachineDeps::gen_clobber_save (cognitive 26) cranelift/codegen/src/isa/s390x/abi.rs:698— S390xMachineDeps::gen_clobber_save has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 3 (7 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.
S390xMachineDeps::gen_retval_loads (cognitive 17) cranelift/codegen/src/isa/s390x/abi.rs:1097— S390xMachineDeps::gen_retval_loads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (5 pts), loops 2, 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.
ObjectModule::define_data (cognitive 41) cranelift/object/src/backend.rs:491— ObjectModule::define_data has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (28 pts), match/switch 6 (12 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.
ObjectModule::finish (cognitive 16) cranelift/object/src/backend.rs:678— ObjectModule::finish has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (7 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.
ObjectModule::get_symbol (cognitive 16) cranelift/object/src/backend.rs:756— ObjectModule::get_symbol has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 3 (6 pts) (nesting depth added 6). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
RunCommand::populate_with_wasi (cognitive 36) src/commands/run.rs:1140— RunCommand::populate_with_wasi has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 7 (14 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.
RunCommand::invoke_func (cognitive 27) src/commands/run.rs:1022— RunCommand::invoke_func has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (6 pts), boolean chains 2, loops 2 (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.
RunCommand::load_main_module (cognitive 16) src/commands/run.rs:676— RunCommand::load_main_module has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3 (4 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.
Wasmtime::generate (cognitive 35) crates/wit-bindgen/src/lib.rs:372— Wasmtime::generate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 8 (11 pts), match/switch 3 (10 pts), boolean chains 2 (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.
Wasmtime::export (cognitive 31) crates/wit-bindgen/src/lib.rs:703— Wasmtime::export has cognitive complexity 31 (threshold 15). Drivers by points: loops 10 (21 pts), match/switch 5 (10 pts) (nesting depth added 16). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Wasmtime::world_add_to_linker (cognitive 28) crates/wit-bindgen/src/lib.rs:1615— Wasmtime::world_add_to_linker has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 4 (7 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth — 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.
cranelift_isle_veri::bin::veri::main (cognitive 33) cranelift/isle/veri/veri/src/bin/veri.rs:188— cranelift_isle_veri::bin::veri::main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19, loops 4 (7 pts), match/switch 4 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — 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.
cranelift_isle_veri::debug::print_rule_set (cognitive 19) cranelift/isle/veri/veri/src/debug.rs:94— cranelift_isle_veri::debug::print_rule_set has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (7 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.
cranelift_isle_veri::runner::live_terms (cognitive 18) cranelift/isle/veri/veri/src/runner.rs:1552— cranelift_isle_veri::runner::live_terms has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (8 pts), boolean chains 1 (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.
wasmtime_publish::for_each_dep_table (cognitive 17) crates/misc/publish/src/main.rs:454— wasmtime_publish::for_each_dep_table has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), 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.
wasmtime_publish::bump_version (cognitive 16) crates/misc/publish/src/main.rs:349— wasmtime_publish::bump_version has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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.
wasmtime_publish::verify (cognitive 16) crates/misc/publish/src/main.rs:774— wasmtime_publish::verify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 2, boolean chains 1 (nesting depth added 2). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (verify_capi, verify_crates_io, verify_and_vendor). 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.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (7 members, 50+ identical tokens) cranelift/codegen/src/isa/aarch64/lower/isle.rs:87— cranelift/codegen/src/isa/aarch64/lower/isle.rs:87-98 | cranelift/codegen/src/isa/aarch64/lower/isle.rs:107-118 | cranelift/codegen/src/isa/pulley_shared/lower/isle.rs:151-162 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:74-85 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:94-105 | cranelift/codegen/src/isa/x64/lower/isle.rs:300-311 | cranelift/codegen/src/isa/x64/lower/isle.rs:320-331 — 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 — 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' 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. 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.
Members sharing a duplicated core (7 members, 50+ identical tokens) cranelift/codegen/src/isa/s390x/inst/emit.rs:852— cranelift/codegen/src/isa/s390x/inst/emit.rs:852-866 | cranelift/codegen/src/isa/s390x/inst/emit.rs:874-892 | cranelift/codegen/src/isa/s390x/inst/emit.rs:900-914 | cranelift/codegen/src/isa/s390x/inst/emit.rs:922-940 | cranelift/codegen/src/isa/s390x/inst/emit.rs:948-960 | cranelift/codegen/src/isa/s390x/inst/emit.rs:968-982 | cranelift/codegen/src/isa/s390x/inst/emit.rs:990-1006 — 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 — 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' 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. 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.
Members sharing a duplicated core (7 members, 50+ identical tokens) crates/test-programs/src/bin/p2_tcp_states.rs:7— crates/test-programs/src/bin/p2_tcp_states.rs:7-54 | crates/test-programs/src/bin/p2_tcp_states.rs:56-105 | crates/test-programs/src/bin/p2_tcp_states.rs:107-163 | crates/test-programs/src/bin/p2_tcp_states.rs:165-214 | crates/test-programs/src/bin/p2_udp_states.rs:7-28 | crates/test-programs/src/bin/p2_udp_states.rs:30-55 | crates/test-programs/src/bin/p2_udp_states.rs:57-81 — 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 — 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' 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. 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.
Duplicated block (31 lines × 2) cranelift/codegen/src/inline.rs:832— cranelift/codegen/src/inline.rs:832-862 | cranelift/codegen/src/inline.rs:877-907 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (31 lines × 2) crates/wasmtime/src/runtime/gc/disabled/arrayref.rs:17— crates/wasmtime/src/runtime/gc/disabled/arrayref.rs:17-47 | crates/wasmtime/src/runtime/gc/disabled/exnref.rs:23-77 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (31 lines × 2) crates/test-programs/src/bin/p1_poll_oneoff_files.rs:63— crates/test-programs/src/bin/p1_poll_oneoff_files.rs:63-93 | crates/test-programs/src/bin/p1_poll_oneoff_files.rs:101-131 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) crates/environ/src/compile/module_types.rs:580— crates/environ/src/compile/module_types.rs:580-599 | crates/environ/src/compile/module_types.rs:626-645 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) crates/test-programs/src/bin/async_cancel_transmit.rs:214— crates/test-programs/src/bin/async_cancel_transmit.rs:214-233 | crates/test-programs/src/bin/async_synchronous_transmit.rs:165-184 — before extracting anything, compare `crates/test-programs/src/bin/async_cancel_transmit.rs` and `crates/test-programs/src/bin/async_synchronous_transmit.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 — extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 2) crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:13— crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:13-32 | crates/test-programs/src/bin/p2_file_rename_across_perms.rs:12-31 — before extracting anything, compare `crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p2_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 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 — extracting one helper per block leaves the fork in place.
Duplicated block (16–17 lines × 2) cranelift/isle/veri/isaspec/src/instructions.rs:1554— cranelift/isle/veri/isaspec/src/instructions.rs:1554-1570 | cranelift/isle/veri/isaspec/src/instructions.rs:1671-1686 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16–17 lines × 2) crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3710— crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3710-3725 | crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs:3953-3969 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16–17 lines × 2) winch/codegen/src/isa/x64/masm.rs:2089— winch/codegen/src/isa/x64/masm.rs:2089-2105 | winch/codegen/src/isa/x64/masm.rs:2168-2183 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–17 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:70— cranelift/isle/veri/veri/src/encoded/cls.rs:70-84 | cranelift/isle/veri/veri/src/encoded/cls.rs:783-799 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–17 lines × 2) cranelift/isle/veri/veri/src/encoded/cls.rs:422— cranelift/isle/veri/veri/src/encoded/cls.rs:422-436 | cranelift/isle/veri/veri/src/encoded/cls.rs:1079-1095 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–17 lines × 2) crates/fuzzing/src/oracles/api.rs:129— crates/fuzzing/src/oracles/api.rs:129-145 | crates/fuzzing/src/oracles/api.rs:676-690 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–13 lines × 2) cranelift/fuzzgen/src/function_generator.rs:632— cranelift/fuzzgen/src/function_generator.rs:632-642 | cranelift/fuzzgen/src/function_generator.rs:671-683 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–13 lines × 2) crates/wit-bindgen/src/lib.rs:3575— crates/wit-bindgen/src/lib.rs:3575-3585 | crates/wit-bindgen/src/lib.rs:3659-3671 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11–13 lines × 2) crates/test-programs/src/bin/p2_tcp_sockopts.rs:159— crates/test-programs/src/bin/p2_tcp_sockopts.rs:159-171 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:156-166 — before extracting anything, compare `crates/test-programs/src/bin/p2_tcp_sockopts.rs` and `crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 77 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 — extracting one helper per block leaves the fork in place.
Duplicated block (9–11 lines × 2) crates/cranelift/src/component_sync_call.rs:63— crates/cranelift/src/component_sync_call.rs:63-73 | crates/cranelift/src/component_sync_call.rs:156-164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–11 lines × 2) crates/cranelift/src/func_environ.rs:3436— crates/cranelift/src/func_environ.rs:3436-3446 | crates/cranelift/src/func_environ.rs:3496-3504 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9–11 lines × 2) crates/test-util/src/component_fuzz.rs:286— crates/test-util/src/component_fuzz.rs:286-296 | crates/test-util/src/component_fuzz.rs:454-462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 5) cranelift/codegen/src/isa/aarch64/inst/mod.rs:931— cranelift/codegen/src/isa/aarch64/inst/mod.rs:931-940 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:122-131 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:317-326 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1030-1039 | cranelift/codegen/src/isa/x64/inst/mod.rs:1207-1219 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/pulley_shared/inst/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 5) cranelift/isle/veri/veri/src/encoded/cls.rs:1126— cranelift/isle/veri/veri/src/encoded/cls.rs:1126-1135 | cranelift/isle/veri/veri/src/encoded/cls.rs:1182-1191 | cranelift/isle/veri/veri/src/encoded/cls.rs:1238-1247 | cranelift/isle/veri/veri/src/encoded/cls.rs:1294-1303 | cranelift/isle/veri/veri/src/encoded/cls.rs:1350-1359 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10 lines × 5) crates/fuzzing/src/oracles/api.rs:177— crates/fuzzing/src/oracles/api.rs:177-186 | crates/fuzzing/src/oracles/api.rs:282-291 | crates/fuzzing/src/oracles/api.rs:417-426 | crates/fuzzing/src/oracles/api.rs:924-933 | crates/fuzzing/src/oracles/api.rs:1058-1067 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–10 lines × 2) cranelift/frontend/src/frontend/safepoints.rs:706— cranelift/frontend/src/frontend/safepoints.rs:706-715 | cranelift/frontend/src/frontend/safepoints.rs:794-801 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–10 lines × 2) winch/codegen/src/codegen/drc.rs:387— winch/codegen/src/codegen/drc.rs:387-396 | winch/codegen/src/codegen/gc.rs:167-174 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8–10 lines × 2) crates/test-programs/src/bin/p2_udp_states.rs:35— crates/test-programs/src/bin/p2_udp_states.rs:35-44 | crates/test-programs/src/bin/p2_udp_states.rs:64-71 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–9 lines × 3) cranelift/codegen/src/isa/aarch64/inst/emit.rs:3378— cranelift/codegen/src/isa/aarch64/inst/emit.rs:3378-3386 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:3552-3558 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:3577-3583 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–9 lines × 3) cranelift/codegen/src/isa/pulley_shared/abi.rs:1009— cranelift/codegen/src/isa/pulley_shared/abi.rs:1009-1016 | cranelift/codegen/src/isa/pulley_shared/abi.rs:1093-1099 | cranelift/codegen/src/isa/riscv64/abi.rs:1035-1043 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7–9 lines × 3) winch/codegen/src/isa/x64/masm.rs:740— winch/codegen/src/isa/x64/masm.rs:740-747 | winch/codegen/src/isa/x64/masm.rs:773-779 | winch/codegen/src/isa/x64/masm.rs:793-801 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 8) cranelift/isle/veri/veri/src/encoded/cls.rs:337— cranelift/isle/veri/veri/src/encoded/cls.rs:337-344 | cranelift/isle/veri/veri/src/encoded/cls.rs:733-740 | cranelift/isle/veri/veri/src/encoded/cls.rs:1052-1059 | cranelift/isle/veri/veri/src/encoded/cls.rs:1392-1399 | cranelift/isle/veri/veri/src/encoded/cls.rs:1663-1670 | cranelift/isle/veri/veri/src/encoded/cls.rs:1911-1918 | cranelift/isle/veri/veri/src/encoded/cls.rs:2134-2141 | cranelift/isle/veri/veri/src/encoded/cls.rs:2334-2341 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 8) cranelift/isle/veri/veri/src/encoded/cls.rs:347— cranelift/isle/veri/veri/src/encoded/cls.rs:347-354 | cranelift/isle/veri/veri/src/encoded/cls.rs:743-750 | cranelift/isle/veri/veri/src/encoded/cls.rs:1062-1069 | cranelift/isle/veri/veri/src/encoded/cls.rs:1402-1409 | cranelift/isle/veri/veri/src/encoded/cls.rs:1673-1680 | cranelift/isle/veri/veri/src/encoded/cls.rs:1921-1928 | cranelift/isle/veri/veri/src/encoded/cls.rs:2144-2151 | cranelift/isle/veri/veri/src/encoded/cls.rs:2344-2351 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 8) crates/fuzzing/src/oracles/api.rs:182— crates/fuzzing/src/oracles/api.rs:182-189 | crates/fuzzing/src/oracles/api.rs:287-294 | crates/fuzzing/src/oracles/api.rs:422-429 | crates/fuzzing/src/oracles/api.rs:625-632 | crates/fuzzing/src/oracles/api.rs:716-723 | crates/fuzzing/src/oracles/api.rs:929-936 | crates/fuzzing/src/oracles/api.rs:1063-1070 | crates/fuzzing/src/oracles/api.rs:1236-1243 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 2) cranelift/isle/veri/veri/src/type_inference.rs:375— cranelift/isle/veri/veri/src/type_inference.rs:375-382 | cranelift/isle/veri/veri/src/veri.rs:212-218 — before extracting anything, compare `cranelift/isle/veri/veri/src/type_inference.rs` and `cranelift/isle/veri/veri/src/veri.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7–8 lines × 2) crates/wasmtime/src/runtime/vm/sys/unix/mmap.rs:51— crates/wasmtime/src/runtime/vm/sys/unix/mmap.rs:51-57 | crates/wasmtime/src/runtime/vm/sys/unix/mmap.rs:76-83 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–8 lines × 2) crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:133— crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:133-140 | crates/test-programs/src/bin/p3_sockets_tcp_streams.rs:332-338 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6–8 lines × 2) crates/cranelift/src/translate/code_translator.rs:768— crates/cranelift/src/translate/code_translator.rs:768-773 | crates/cranelift/src/translate/code_translator.rs:2729-2736 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6–8 lines × 2) crates/wasmtime/src/runtime/vm/libcalls.rs:1119— crates/wasmtime/src/runtime/vm/libcalls.rs:1119-1126 | crates/wasmtime/src/runtime/vm/libcalls.rs:1148-1153 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6–8 lines × 2) crates/fuzzing/src/generators/value.rs:160— crates/fuzzing/src/generators/value.rs:160-167 | crates/fuzzing/src/generators/value.rs:175-180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 4) cranelift/codegen/src/isa/x64/lower/isle.rs:1637— cranelift/codegen/src/isa/x64/lower/isle.rs:1637-1641 | cranelift/codegen/src/isa/x64/lower/isle.rs:1654-1658 | cranelift/codegen/src/isa/x64/lower/isle.rs:1670-1674 | cranelift/codegen/src/isa/x64/lower/isle.rs:1689-1693 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:755— cranelift/isle/veri/veri/src/encoded/cls.rs:755-759 | cranelift/isle/veri/veri/src/encoded/cls.rs:1414-1418 | cranelift/isle/veri/veri/src/encoded/cls.rs:1933-1937 | cranelift/isle/veri/veri/src/encoded/cls.rs:2356-2360 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 4) crates/environ/src/frame_table.rs:108— crates/environ/src/frame_table.rs:108-113 | crates/environ/src/frame_table.rs:115-119 | crates/environ/src/frame_table.rs:121-125 | crates/environ/src/frame_table.rs:567-571 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (4–5 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:1061— cranelift/codegen/src/isa/s390x/inst/emit.rs:1061-1065 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1109-1113 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1264-1267 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (4–5 lines × 3) crates/cranelift/src/func_environ/gc/copying.rs:253— crates/cranelift/src/func_environ/gc/copying.rs:253-257 | crates/cranelift/src/func_environ/gc/drc.rs:330-333 | crates/cranelift/src/func_environ/gc/null.rs:220-232 — before extracting anything, compare `crates/cranelift/src/func_environ/gc/copying.rs` and `crates/cranelift/src/func_environ/gc/drc.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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 — extracting one helper per block leaves the fork in place.
Duplicated block (4–5 lines × 3) crates/environ/src/fact/trampoline.rs:1777— crates/environ/src/fact/trampoline.rs:1777-1781 | crates/environ/src/fact/trampoline.rs:1848-1852 | crates/environ/src/fact/trampoline.rs:2211-2214 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
cranelift_interpreter::step::step (cyclomatic 267) cranelift/interpreter/src/step.rs:63— cranelift_interpreter::step::step has cyclomatic complexity 267 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_interpreter::step::fcmp (cyclomatic 22) cranelift/interpreter/src/step.rs:1430— cranelift_interpreter::step::fcmp 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 — the same kind of value, with no behaviour of its own — 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.
Translator::translate_payload (cyclomatic 81) crates/environ/src/component/translate.rs:808— Translator::translate_payload has cyclomatic complexity 81 (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 — the same kind of value, with no behaviour of its own — 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.
Translator::analyze_imports (cyclomatic 31) crates/environ/src/component/translate.rs:559— Translator::analyze_imports 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.
CommonOptions::enable_wasm_features (cyclomatic 71) crates/cli-flags/src/lib.rs:1303— CommonOptions::enable_wasm_features has cyclomatic complexity 71 (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.
CommonOptions::config (cyclomatic 50) crates/cli-flags/src/lib.rs:927— CommonOptions::config has cyclomatic complexity 50 (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's highest cyclomatic complexity: WasmOptions::configure (cyclomatic 54) is higher and carries no row of its own — 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's figures nor in its score.
wasmtime_wast::component::match_val (cyclomatic 57) crates/wast/src/component.rs:62— wasmtime_wast::component::match_val has cyclomatic complexity 57 (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 — the same kind of value, with no behaviour of its own — 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.
wasmtime_wast::core::match_val (cyclomatic 23) crates/wast/src/core.rs:66— wasmtime_wast::core::match_val 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.
VCode::emit (cyclomatic 55) cranelift/codegen/src/machinst/vcode.rs:736— VCode::emit has cyclomatic complexity 55 (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.
VCode::log_value_labels_ranges (cyclomatic 42) cranelift/codegen/src/machinst/vcode.rs:1319— VCode::log_value_labels_ranges has cyclomatic complexity 42 (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.
WasiHttpCtxView::error_to_p3 (cyclomatic 48) crates/wasi-http/src/p3/conv.rs:96— WasiHttpCtxView::error_to_p3 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 — the same kind of value, with no behaviour of its own — 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.
WasiHttpCtxView::handle (cyclomatic 20) crates/wasi-http/src/p2/http_impl.rs:21— WasiHttpCtxView::handle 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 — the same kind of value, with no behaviour of its own — 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.
Verifier::verify_entity_references (cyclomatic 38) cranelift/codegen/src/verifier/mod.rs:525— Verifier::verify_entity_references has cyclomatic complexity 38 (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 — the same kind of value, with no behaviour of its own — 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.
Verifier::verify_global_values (cyclomatic 17) cranelift/codegen/src/verifier/mod.rs:333— Verifier::verify_global_values 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.
ConfigTunables::format (cyclomatic 36) crates/environ/src/tunables.rs:40— ConfigTunables::format has cyclomatic complexity 36 (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 shape REPEATS in the file: one other method here (ConfigTunables::configure) has the same decision points, in the same order, at the same nesting depths — 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.
ConfigTunables::configure (cyclomatic 36) crates/environ/src/tunables.rs:49— ConfigTunables::configure has cyclomatic complexity 36 (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 shape REPEATS in the file: one other method here (ConfigTunables::format) has the same decision points, in the same order, at the same nesting depths — 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.
AArch64MachineDeps::compute_arg_locs (cyclomatic 35) cranelift/codegen/src/isa/aarch64/abi.rs:153— AArch64MachineDeps::compute_arg_locs 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.
AArch64MachineDeps::gen_clobber_save (cyclomatic 18) cranelift/codegen/src/isa/aarch64/abi.rs:795— AArch64MachineDeps::gen_clobber_save 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.
Lexer::next_token (cyclomatic 34) cranelift/isle/isle/src/lexer.rs:100— Lexer::next_token has cyclomatic complexity 34 (threshold 15). Of this number, 30 points are the body's own statements and 4 belong to 2 function items inside it that branch. 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 — the same kind of value, with no behaviour of its own — 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.
Lexer::next (cyclomatic 31) cranelift/reader/src/lexer.rs:476— Lexer::next 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 — the same kind of value, with no behaviour of its own — 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.
Parser::parse_spec_expr (cyclomatic 32) cranelift/isle/isle/src/parser.rs:551— Parser::parse_spec_expr has cyclomatic complexity 32 (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. This is NOT this file's highest cyclomatic complexity: Parser::parse_spec_op (cyclomatic 88) is higher and carries no row of its own — 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's figures nor in its score.
Parser::parse_model_type (cyclomatic 19) cranelift/isle/isle/src/parser.rs:875— Parser::parse_model_type 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. This is NOT this file's highest cyclomatic complexity: Parser::parse_spec_op (cyclomatic 88) is higher and carries no row of its own — 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's figures nor in its score.
TermEnv::translate_expr (cyclomatic 31) cranelift/isle/isle/src/sema.rs:2665— TermEnv::translate_expr 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.
TermEnv::translate_pattern (cyclomatic 24) cranelift/isle/isle/src/sema.rs:2411— TermEnv::translate_pattern 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.
RunCommand::invoke_func (cyclomatic 31) src/commands/run.rs:1022— RunCommand::invoke_func 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 — the same kind of value, with no behaviour of its own — 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.
RunCommand::populate_with_wasi (cyclomatic 19) src/commands/run.rs:1140— RunCommand::populate_with_wasi 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.
Codegen::emit_expr (cyclomatic 28) cranelift/isle/isle/src/codegen.rs:915— Codegen::emit_expr 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 — the same kind of value, with no behaviour of its own — 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.
Codegen::emit_block_contents (cyclomatic 25) cranelift/isle/isle/src/codegen.rs:672— Codegen::emit_block_contents 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.
Wizer::rewrite (cyclomatic 28) crates/wizer/src/rewrite.rs:13— Wizer::rewrite has cyclomatic complexity 28 (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.
Wizer::wasm_validate (cyclomatic 21) crates/wizer/src/lib.rs:270— Wizer::wasm_validate 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 — the same kind of value, with no behaviour of its own — 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.
ModuleTranslation::try_static_init (cyclomatic 26) crates/environ/src/compile/module_environ.rs:1340— ModuleTranslation::try_static_init 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.
ModuleTranslation::try_func_table_init (cyclomatic 16) crates/environ/src/compile/module_environ.rs:1583— ModuleTranslation::try_func_table_init 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 — the same kind of value, with no behaviour of its own — 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's highest cyclomatic complexity: ModuleEnvironment::dwarf_section (cyclomatic 19) is higher and carries no row of its own — 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's figures nor in its score.
Lower::lower_clif_block (cyclomatic 23) cranelift/codegen/src/machinst/lower.rs:830— Lower::lower_clif_block 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.
Lower::new (cyclomatic 18) cranelift/codegen/src/machinst/lower.rs:373— Lower::new has cyclomatic complexity 18 (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.
FuncEnvironment::translate_entity_bounds_check (cyclomatic 20) crates/cranelift/src/func_environ.rs:4321— FuncEnvironment::translate_entity_bounds_check 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 — the same kind of value, with no behaviour of its own — 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's highest cyclomatic complexity: FuncEnvironment::translate_const_expr (cyclomatic 21) is higher and carries no row of its own — 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's figures nor in its score.
FuncEnvironment::emit_raw_array_or_table_copy (cyclomatic 19) crates/cranelift/src/func_environ.rs:4561— FuncEnvironment::emit_raw_array_or_table_copy 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 — the same kind of value, with no behaviour of its own — 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's highest cyclomatic complexity: FuncEnvironment::translate_const_expr (cyclomatic 21) is higher and carries no row of its own — 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's figures nor in its score.
WorkerThread::handle_on_cache_update (cyclomatic 19) crates/cache/src/worker.rs:402— WorkerThread::handle_on_cache_update 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.
WorkerThread::list_cache_contents::enter_dir (cyclomatic 16) crates/cache/src/worker.rs:538— WorkerThread::list_cache_contents::enter_dir 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 — the same kind of value, with no behaviour of its own — 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.
ConcurrentState::take_fibers_and_futures (cyclomatic 19) crates/wasmtime/src/runtime/component/concurrent.rs:6085— ConcurrentState::take_fibers_and_futures 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.
ConcurrentState::trace_fiber_roots (cyclomatic 16) crates/wasmtime/src/runtime/component/concurrent.rs:6188— ConcurrentState::trace_fiber_roots 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.
Linker::command (cyclomatic 18) crates/wasmtime/src/runtime/linker.rs:905— Linker::command has cyclomatic complexity 18 (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.
Linker::define_unknown_imports (cyclomatic 16) crates/wasmtime/src/runtime/component/linker.rs:392— Linker::define_unknown_imports has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (stub_item). 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.
wasmtime_wizer::component::parse::parse_into (cognitive 106) crates/wizer/src/component/parse.rs:29— wasmtime_wizer::component::parse::parse_into has cognitive complexity 106 (threshold 15). Drivers by points: if/else 13 (55 pts), match/switch 7 (26 pts), loops 8 (24 pts), boolean chains 1 (nesting depth added 77). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
wasmtime_wizer::instrument::instrument (cognitive 16) crates/wizer/src/instrument.rs:61— wasmtime_wizer::instrument::instrument has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 1 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). 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.
CommonOptions::enable_wasm_features (cognitive 89) crates/cli-flags/src/lib.rs:1303— CommonOptions::enable_wasm_features has cognitive complexity 89 (threshold 15). Drivers by points: if/else 51 (70 pts), boolean chains 19 (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.
CommonOptions::config (cognitive 53) crates/cli-flags/src/lib.rs:927— CommonOptions::config has cognitive complexity 53 (threshold 15). Drivers by points: if/else 41 (42 pts), match/switch 3 (6 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — 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.
ModuleEnvironment::translate_payload (cognitive 82) crates/environ/src/compile/module_environ.rs:462— ModuleEnvironment::translate_payload has cognitive complexity 82 (threshold 15). Drivers by points: loops 17 (46 pts), match/switch 9 (24 pts), if/else 5 (11 pts), boolean chains 1 (nesting depth added 50). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
ModuleEnvironment::name_section (cognitive 27) crates/environ/src/compile/module_environ.rs:1112— ModuleEnvironment::name_section has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 4 (11 pts), match/switch 1 (2 pts) (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.
wasmtime_wast::component::match_val (cognitive 78) crates/wast/src/component.rs:62— wasmtime_wast::component::match_val has cognitive complexity 78 (threshold 15). Drivers by points: match/switch 24 (49 pts), if/else 7 (20 pts), loops 3 (9 pts) (nesting depth added 44). 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.
wasmtime_wast::core::match_val (cognitive 24) crates/wast/src/core.rs:66— wasmtime_wast::core::match_val has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Inliner::initializer (cognitive 70) crates/environ/src/component/translate/inline.rs:456— Inliner::initializer has cognitive complexity 70 (threshold 15). Drivers by points: match/switch 18 (36 pts), if/else 14 (28 pts), loops 2 (6 pts) (nesting depth added 36). 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.
Inliner::record_export (cognitive 17) crates/environ/src/component/translate/inline.rs:1643— Inliner::record_export has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (7 pts), loops 2 (6 pts), if/else 1 (4 pts) (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
AArch64MachineDeps::compute_arg_locs (cognitive 65) cranelift/codegen/src/isa/aarch64/abi.rs:153— AArch64MachineDeps::compute_arg_locs has cognitive complexity 65 (threshold 15). Drivers by points: if/else 27 (50 pts), boolean chains 10, match/switch 2 (4 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AArch64MachineDeps::gen_clobber_save (cognitive 30) cranelift/codegen/src/isa/aarch64/abi.rs:795— AArch64MachineDeps::gen_clobber_save has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 3 (5 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.
Runner::run (cognitive 65) cranelift/isle/veri/veri/src/runner.rs:666— Runner::run has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (39 pts), loops 8 (16 pts), match/switch 4 (6 pts), boolean chains 4 (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.
Runner::verify_expansion (cognitive 20) cranelift/isle/veri/veri/src/runner.rs:1181— Runner::verify_expansion has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (6 pts), match/switch 2 (5 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
Translator::analyze_imports (cognitive 64) crates/environ/src/component/translate.rs:559— Translator::analyze_imports has cognitive complexity 64 (threshold 15). Drivers by points: if/else 8 (29 pts), match/switch 7 (23 pts), loops 8 (12 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Translator::translate_payload (cognitive 55) crates/environ/src/component/translate.rs:808— Translator::translate_payload has cognitive complexity 55 (threshold 15). Drivers by points: match/switch 10 (27 pts), loops 8 (16 pts), if/else 4 (12 pts) (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.
ModuleTranslation::try_static_init (cognitive 47) crates/environ/src/compile/module_environ.rs:1340— ModuleTranslation::try_static_init has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (34 pts), match/switch 4 (7 pts), loops 5 (6 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.
ModuleTranslation::try_func_table_init (cognitive 26) crates/environ/src/compile/module_environ.rs:1583— ModuleTranslation::try_func_table_init has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 5 (11 pts), loops 2, 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.
Wizer::rewrite (cognitive 46) crates/wizer/src/rewrite.rs:13— Wizer::rewrite has cognitive complexity 46 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (14 pts), match/switch 3 (11 pts), boolean chains 4 (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.
Wizer::wasm_validate (cognitive 21) crates/wizer/src/lib.rs:270— Wizer::wasm_validate has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 3 (10 pts), loops 3 (7 pts), if/else 1 (4 pts) (nesting depth added 14). 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.
WasmBacktrace::fmt (cognitive 43) crates/wasmtime/src/runtime/trap.rs:416— WasmBacktrace::fmt has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (35 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
WasmBacktrace::from_captured (cognitive 17) crates/wasmtime/src/runtime/trap.rs:304— WasmBacktrace::from_captured has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1, 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.
Worker::run_ (cognitive 37) crates/wasi-http/src/handler.rs:418— Worker::run_ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 5 (9 pts), boolean chains 4, 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.
Worker::work (cognitive 17) crates/wasi/src/p2/write_stream.rs:93— Worker::work has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (7 pts), match/switch 2 (7 pts), loops 2 (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.
Elaborator::process_elab_stack (cognitive 36) cranelift/codegen/src/egraph/elaborate.rs:511— Elaborator::process_elab_stack has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 5 (15 pts), match/switch 2 (5 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.
Elaborator::topo_sorted_values (cognitive 23) cranelift/codegen/src/egraph/elaborate.rs:282— Elaborator::topo_sorted_values has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (13 pts), match/switch 2 (6 pts), loops 3 (4 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.
ConfigTunables::format (cognitive 35) crates/environ/src/tunables.rs:40— ConfigTunables::format has cognitive complexity 35 (threshold 15). Drivers by points: if/else 35. To reduce it, split the body: this score is breadth rather than depth — 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. This shape REPEATS in the file: one other method here (ConfigTunables::configure) has the same decision points, in the same order, at the same nesting depths — 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.
ConfigTunables::configure (cognitive 35) crates/environ/src/tunables.rs:49— ConfigTunables::configure has cognitive complexity 35 (threshold 15). Drivers by points: if/else 35. To reduce it, split the body: this score is breadth rather than depth — 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. This shape REPEATS in the file: one other method here (ConfigTunables::format) has the same decision points, in the same order, at the same nesting depths — 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.
Callee::gen_call_args (cognitive 34) cranelift/codegen/src/machinst/abi.rs:1849— Callee::gen_call_args has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 6 (16 pts), if/else 8 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 16). 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.
Callee::gen_call_rets (cognitive 33) cranelift/codegen/src/machinst/abi.rs:2031— Callee::gen_call_rets has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 4 (13 pts), loops 3 (6 pts), boolean chains 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.
wasmtime_environ::component::thread_transparency::for_each_core_def (cognitive 34) crates/environ/src/component/thread_transparency.rs:323— wasmtime_environ::component::thread_transparency::for_each_core_def has cognitive complexity 34 (threshold 15). Drivers by points: loops 10 (20 pts), if/else 5 (8 pts), match/switch 2 (6 pts) (nesting depth added 17). 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.
wasmtime_environ::component::translate::ambiguous_entities (cognitive 22) crates/environ/src/component/translate.rs:2128— wasmtime_environ::component::translate::ambiguous_entities has cognitive complexity 22 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 2 (6 pts), match/switch 3 (6 pts) (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.
LoopAnalysis::discover_loop_blocks (cognitive 29) cranelift/codegen/src/loop_analysis.rs:217— LoopAnalysis::discover_loop_blocks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (7 pts), match/switch 2 (7 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.
LoopAnalysis::assign_loop_levels (cognitive 17) cranelift/codegen/src/loop_analysis.rs:281— LoopAnalysis::assign_loop_levels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 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.
ConcurrentState::take_fibers_and_futures (cognitive 27) crates/wasmtime/src/runtime/component/concurrent.rs:6085— ConcurrentState::take_fibers_and_futures has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 6 (8 pts), match/switch 3 (8 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.
ConcurrentState::trace_fiber_roots (cognitive 22) crates/wasmtime/src/runtime/component/concurrent.rs:6188— ConcurrentState::trace_fiber_roots has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 6 (7 pts), loops 5 (7 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.
WorkerThread::handle_on_cache_update (cognitive 24) crates/cache/src/worker.rs:402— WorkerThread::handle_on_cache_update has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3 (6 pts), boolean chains 3, 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.
WorkerThread::list_cache_contents::enter_dir (cognitive 20) crates/cache/src/worker.rs:538— WorkerThread::list_cache_contents::enter_dir has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 2 (7 pts), boolean chains 2, loops 2 (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.
TypeEnv::from_ast (cognitive 22) cranelift/isle/isle/src/sema.rs:1285— TypeEnv::from_ast has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 3 (8 pts), loops 3 (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.
TypeEnv::type_from_ast (cognitive 16) cranelift/isle/isle/src/sema.rs:1369— TypeEnv::type_from_ast has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
wasmtime_internal_component_macro::component::expand_flags (cognitive 21) crates/component-macro/src/component.rs:1159— wasmtime_internal_component_macro::component::expand_flags has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 4 (5 pts), loops 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.
wasmtime_internal_component_macro::bindgen::parse_function_config (cognitive 16) crates/component-macro/src/bindgen.rs:516— wasmtime_internal_component_macro::bindgen::parse_function_config has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
Val::store (cognitive 21) crates/wasmtime/src/runtime/component/values.rs:585— Val::store has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (9 pts), match/switch 2 (3 pts) (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Val::lower (cognitive 18) crates/wasmtime/src/runtime/component/values.rs:416— Val::lower has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (8 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
StoreOpaque::retry_after_gc_async (cognitive 20) crates/wasmtime/src/runtime/store/gc.rs:460— StoreOpaque::retry_after_gc_async has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 3 (8 pts) (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.
StoreOpaque::resume_fiber (cognitive 16) crates/wasmtime/src/runtime/component/concurrent.rs:2338— StoreOpaque::resume_fiber has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (7 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.
FuncEnvironment::emit_raw_array_or_table_copy (cognitive 19) crates/cranelift/src/func_environ.rs:4561— FuncEnvironment::emit_raw_array_or_table_copy has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 6 (8 pts), boolean chains 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.
FuncEnvironment::translate_global_get (cognitive 17) crates/cranelift/src/func_environ.rs:3393— FuncEnvironment::translate_global_get 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 — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
WastContext::perform_action (cognitive 19) crates/wast/src/wast.rs:279— WastContext::perform_action has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 8 (19 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.
WastContext::module (cognitive 16) crates/wast/src/wast.rs:363— WastContext::module has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 2 (4 pts), loops 1 (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.
Linker::command (cognitive 18) crates/wasmtime/src/runtime/linker.rs:905— Linker::command has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 7, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — 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.
Linker::define_unknown_imports::stub_item (cognitive 16) crates/wasmtime/src/runtime/component/linker.rs:396— Linker::define_unknown_imports::stub_item has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (7 pts), if/else 3 (4 pts), boolean chains 3, 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.
wiggle_generate::module_trait::define_module_trait (cognitive 18) crates/wiggle/generate/src/module_trait.rs:16— wiggle_generate::module_trait::define_module_trait has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 5 (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.
wiggle_generate::names::type_ref (cognitive 17) crates/wiggle/generate/src/names.rs:38— wiggle_generate::names::type_ref has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (17 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.
Near-duplicate member pair (34 shared lines) cranelift/isle/veri/isaspec/src/instructions.rs:1478— cranelift/isle/veri/isaspec/src/instructions.rs:1478-1546 | cranelift/isle/veri/isaspec/src/instructions.rs:1592-1661 — These two members are variants of one another: 34 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' grain — 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.
Near-duplicate member pair (34 shared lines) crates/test-programs/src/bin/p2_http_outbound_request_response_build.rs:3— crates/test-programs/src/bin/p2_http_outbound_request_response_build.rs:3-90 | crates/test-programs/src/bin/p3_http_outbound_request_response_build.rs:9-96 — These two members are variants of one another: 34 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' grain — 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.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×2
Members sharing a duplicated core (5 members, 50+ identical tokens) cranelift/codegen/src/isa/aarch64/inst/mod.rs:396— cranelift/codegen/src/isa/aarch64/inst/mod.rs:396-1093 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:120-345 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:273-704 | cranelift/codegen/src/isa/s390x/inst/mod.rs:465-1105 | cranelift/codegen/src/isa/x64/inst/mod.rs:882-1272 — 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 — 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' 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. 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.
Members sharing a duplicated core (5 members, 50+ identical tokens) cranelift/codegen/src/isa/s390x/inst/emit.rs:236— cranelift/codegen/src/isa/s390x/inst/emit.rs:236-298 | cranelift/codegen/src/isa/s390x/inst/emit.rs:310-350 | cranelift/codegen/src/isa/s390x/inst/emit.rs:361-398 | cranelift/codegen/src/isa/s390x/inst/emit.rs:408-439 | cranelift/codegen/src/isa/s390x/inst/emit.rs:450-480 — 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 — 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' 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. 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.
Duplicated block (34 lines × 2) cranelift/codegen/src/dominator_tree.rs:324— cranelift/codegen/src/dominator_tree.rs:324-357 | cranelift/codegen/src/dominator_tree/simple.rs:115-148 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (34 lines × 2) crates/cranelift/src/func_environ/gc/copying.rs:329— crates/cranelift/src/func_environ/gc/copying.rs:329-362 | crates/cranelift/src/func_environ/gc/drc.rs:425-458 — before extracting anything, compare `crates/cranelift/src/func_environ/gc/copying.rs` and `crates/cranelift/src/func_environ/gc/drc.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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 — extracting one helper per block leaves the fork in place.
Duplicated block (21–22 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:3414— cranelift/codegen/src/isa/aarch64/inst/emit.rs:3414-3434 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:3464-3485 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–22 lines × 2) crates/cranelift/src/func_environ/gc/drc.rs:359— crates/cranelift/src/func_environ/gc/drc.rs:359-379 | crates/cranelift/src/func_environ/gc/drc.rs:410-431 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20–21 lines × 2) cranelift/codegen/src/isa/x64/inst/emit.rs:426— cranelift/codegen/src/isa/x64/inst/emit.rs:426-446 | cranelift/codegen/src/isa/x64/inst/emit.rs:508-527 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20–21 lines × 2) winch/codegen/src/codegen/mod.rs:2570— winch/codegen/src/codegen/mod.rs:2570-2589 | winch/codegen/src/codegen/mod.rs:2615-2635 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–20 lines × 2) crates/wasi/src/p1.rs:1599— crates/wasi/src/p1.rs:1599-1617 | crates/wasi/src/p1.rs:2078-2097 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–20 lines × 2) crates/test-programs/src/bin/p3_sockets_tcp_sample_application.rs:37— crates/test-programs/src/bin/p3_sockets_tcp_sample_application.rs:37-55 | crates/test-programs/src/bin/p3_sockets_tcp_sample_application.rs:70-89 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15–17 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:166— cranelift/isle/veri/veri/src/encoded/cls.rs:166-180 | cranelift/isle/veri/veri/src/encoded/cls.rs:881-895 | cranelift/isle/veri/veri/src/encoded/cls.rs:1492-1506 | cranelift/isle/veri/veri/src/encoded/cls.rs:1961-1977 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15–17 lines × 4) cranelift/isle/veri/veri/src/encoded/cls.rs:534— cranelift/isle/veri/veri/src/encoded/cls.rs:534-548 | cranelift/isle/veri/veri/src/encoded/cls.rs:1193-1207 | cranelift/isle/veri/veri/src/encoded/cls.rs:1740-1754 | cranelift/isle/veri/veri/src/encoded/cls.rs:2161-2177 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15–17 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:118— cranelift/isle/veri/veri/src/encoded/cls.rs:118-132 | cranelift/isle/veri/veri/src/encoded/cls.rs:833-847 | cranelift/isle/veri/veri/src/encoded/cls.rs:1442-1458 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (15–17 lines × 3) cranelift/isle/veri/veri/src/encoded/cls.rs:478— cranelift/isle/veri/veri/src/encoded/cls.rs:478-492 | cranelift/isle/veri/veri/src/encoded/cls.rs:1137-1151 | cranelift/isle/veri/veri/src/encoded/cls.rs:1690-1706 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13–17 lines × 2) crates/wasi/src/p3/filesystem/host.rs:178— crates/wasi/src/p3/filesystem/host.rs:178-194 | crates/wasi/src/p3/filesystem/host.rs:439-451 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–17 lines × 2) crates/test-programs/src/bin/p3_http_middleware.rs:94— crates/test-programs/src/bin/p3_http_middleware.rs:94-106 | crates/test-programs/src/bin/p3_http_middleware.rs:163-179 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–15 lines × 2) cranelift/codegen/src/machinst/abi.rs:1941— cranelift/codegen/src/machinst/abi.rs:1941-1953 | cranelift/codegen/src/machinst/abi.rs:2060-2074 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–15 lines × 2) crates/wit-bindgen/src/lib.rs:2074— crates/wit-bindgen/src/lib.rs:2074-2086 | crates/wit-bindgen/src/lib.rs:2280-2294 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–14 lines × 3) cranelift/codegen/src/isa/s390x/inst/mod.rs:1864— cranelift/codegen/src/isa/s390x/inst/mod.rs:1864-1876 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1905-1918 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1971-1983 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (13–14 lines × 3) cranelift/isle/veri/isaspec/src/instructions.rs:338— cranelift/isle/veri/isaspec/src/instructions.rs:338-350 | cranelift/isle/veri/isaspec/src/instructions.rs:772-785 | cranelift/isle/veri/isaspec/src/instructions.rs:1850-1862 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) cranelift/codegen/src/isa/s390x/inst/mod.rs:2961— cranelift/codegen/src/isa/s390x/inst/mod.rs:2961-2974 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2997-3010 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3026-3039 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (14 lines × 3) crates/test-programs/src/bin/p1_file_truncation.rs:44— crates/test-programs/src/bin/p1_file_truncation.rs:44-57 | crates/test-programs/src/bin/p1_file_truncation_readonly.rs:16-29 | crates/test-programs/src/bin/p1_file_write.rs:55-68 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_truncation.rs` and `crates/test-programs/src/bin/p1_file_write.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12–14 lines × 2) cranelift/jit/src/backend.rs:472— cranelift/jit/src/backend.rs:472-483 | cranelift/jit/src/backend.rs:543-556 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–14 lines × 2) winch/codegen/src/codegen/mod.rs:957— winch/codegen/src/codegen/mod.rs:957-970 | winch/codegen/src/codegen/mod.rs:2122-2133 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–13 lines × 3) winch/codegen/src/codegen/gc.rs:350— winch/codegen/src/codegen/gc.rs:350-359 | winch/codegen/src/codegen/mod.rs:2230-2241 | winch/codegen/src/codegen/mod.rs:2325-2337 — there are 3 copies across 2 file(s) — 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.
Duplicated block (10–13 lines × 3) crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:20— crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:20-32 | crates/test-programs/src/bin/p3_file_rename_across_perms.rs:19-31 | crates/test-programs/src/bin/p3_file_truncation_readonly.rs:35-44 — before extracting anything, compare `crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p3_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 — extracting one helper per block leaves the fork in place.
Duplicated block (10–13 lines × 2) cranelift/codegen/src/isa/riscv64/inst/mod.rs:318— cranelift/codegen/src/isa/riscv64/inst/mod.rs:318-327 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1031-1043 — before extracting anything, compare `cranelift/codegen/src/isa/riscv64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 3 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10–13 lines × 2) crates/test-programs/src/bin/p3_sockets_tcp_sample_application.rs:25— crates/test-programs/src/bin/p3_sockets_tcp_sample_application.rs:25-34 | crates/test-programs/src/bin/p3_sockets_tcp_sample_application.rs:57-69 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–12 lines × 3) src/commands/objdump.rs:481— src/commands/objdump.rs:481-490 | src/commands/objdump.rs:498-507 | src/commands/objdump.rs:513-524 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–12 lines × 3) crates/test-programs/src/bin/p2_tcp_states.rs:13— crates/test-programs/src/bin/p2_tcp_states.rs:13-24 | crates/test-programs/src/bin/p2_tcp_states.rs:121-132 | crates/test-programs/src/bin/p2_tcp_states.rs:182-191 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–12 lines × 2) crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs:390— crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs:390-399 | crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs:409-420 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–12 lines × 2) crates/test-programs/src/bin/p2_tcp_states.rs:77— crates/test-programs/src/bin/p2_tcp_states.rs:77-86 | crates/test-programs/src/bin/p2_tcp_states.rs:130-141 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–11 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:980— cranelift/codegen/src/isa/s390x/inst/mod.rs:980-990 | cranelift/codegen/src/isa/s390x/inst/mod.rs:1006-1012 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–11 lines × 2) cranelift/isle/veri/veri/src/solver.rs:859— cranelift/isle/veri/veri/src/solver.rs:859-865 | cranelift/isle/veri/veri/src/solver.rs:904-914 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8–10 lines × 3) cranelift/isle/isle/src/parser.rs:442— cranelift/isle/isle/src/parser.rs:442-449 | cranelift/isle/isle/src/parser.rs:506-515 | cranelift/isle/isle/src/parser.rs:1111-1118 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–10 lines × 3) crates/cranelift/src/func_environ/stack_switching/instructions.rs:1542— crates/cranelift/src/func_environ/stack_switching/instructions.rs:1542-1549 | crates/cranelift/src/func_environ/stack_switching/instructions.rs:1739-1748 | crates/cranelift/src/func_environ/stack_switching/instructions.rs:2292-2301 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–10 lines × 3) winch/codegen/src/isa/x64/masm.rs:1008— winch/codegen/src/isa/x64/masm.rs:1008-1017 | winch/codegen/src/isa/x64/masm.rs:1036-1045 | winch/codegen/src/isa/x64/masm.rs:1647-1655 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–10 lines × 3) crates/fuzzing/src/oracles/memory.rs:317— crates/fuzzing/src/oracles/memory.rs:317-326 | crates/fuzzing/src/oracles/memory.rs:333-342 | crates/fuzzing/src/oracles/memory.rs:348-356 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 5) cranelift/codegen/meta/src/shared/instructions.rs:836— cranelift/codegen/meta/src/shared/instructions.rs:836-844 | cranelift/codegen/meta/src/shared/instructions.rs:1133-1141 | cranelift/codegen/meta/src/shared/instructions.rs:1179-1187 | cranelift/codegen/meta/src/shared/instructions.rs:1225-1233 | cranelift/codegen/meta/src/shared/instructions.rs:1243-1251 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 5) crates/fuzzing/src/oracles/api.rs:234— crates/fuzzing/src/oracles/api.rs:234-242 | crates/fuzzing/src/oracles/api.rs:366-374 | crates/fuzzing/src/oracles/api.rs:479-487 | crates/fuzzing/src/oracles/api.rs:570-578 | crates/fuzzing/src/oracles/api.rs:738-746 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 12) cranelift/isle/veri/veri/src/encoded/cls.rs:16— cranelift/isle/veri/veri/src/encoded/cls.rs:16-23 | cranelift/isle/veri/veri/src/encoded/cls.rs:360-367 | cranelift/isle/veri/veri/src/encoded/cls.rs:779-786 | cranelift/isle/veri/veri/src/encoded/cls.rs:1075-1082 | cranelift/isle/veri/veri/src/encoded/cls.rs:1438-1445 | cranelift/isle/veri/veri/src/encoded/cls.rs:1686-1693 | cranelift/isle/veri/veri/src/encoded/cls.rs:1957-1964 | cranelift/isle/veri/veri/src/encoded/cls.rs:2157-2164 | cranelift/isle/veri/veri/src/encoded/clz.rs:16-23 | cranelift/isle/veri/veri/src/encoded/clz.rs:348-355 | cranelift/isle/veri/veri/src/encoded/clz.rs:631-638 | cranelift/isle/veri/veri/src/encoded/clz.rs:866-873 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 12) crates/fuzzing/src/oracles/api.rs:233— crates/fuzzing/src/oracles/api.rs:233-240 | crates/fuzzing/src/oracles/api.rs:352-359 | crates/fuzzing/src/oracles/api.rs:365-372 | crates/fuzzing/src/oracles/api.rs:444-451 | crates/fuzzing/src/oracles/api.rs:478-485 | crates/fuzzing/src/oracles/api.rs:517-524 | crates/fuzzing/src/oracles/api.rs:530-537 | crates/fuzzing/src/oracles/api.rs:543-550 | crates/fuzzing/src/oracles/api.rs:556-563 | crates/fuzzing/src/oracles/api.rs:569-576 | crates/fuzzing/src/oracles/api.rs:639-646 | crates/fuzzing/src/oracles/api.rs:737-744 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 7) cranelift/codegen/src/isa/aarch64/lower/isle.rs:88— cranelift/codegen/src/isa/aarch64/lower/isle.rs:88-95 | cranelift/codegen/src/isa/aarch64/lower/isle.rs:108-115 | cranelift/codegen/src/isa/pulley_shared/lower/isle.rs:152-159 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:75-82 | cranelift/codegen/src/isa/riscv64/lower/isle.rs:95-102 | cranelift/codegen/src/isa/x64/lower/isle.rs:301-308 | cranelift/codegen/src/isa/x64/lower/isle.rs:321-328 — before extracting anything, compare `cranelift/codegen/src/isa/pulley_shared/lower/isle.rs` and `cranelift/codegen/src/isa/riscv64/lower/isle.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 7) cranelift/isle/veri/isaspec/src/instructions.rs:498— cranelift/isle/veri/isaspec/src/instructions.rs:498-506 | cranelift/isle/veri/isaspec/src/instructions.rs:1107-1114 | cranelift/isle/veri/isaspec/src/instructions.rs:1134-1141 | cranelift/isle/veri/isaspec/src/instructions.rs:1167-1174 | cranelift/isle/veri/isaspec/src/instructions.rs:1205-1212 | cranelift/isle/veri/isaspec/src/instructions.rs:1406-1414 | cranelift/isle/veri/isaspec/src/instructions.rs:1490-1497 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–7 lines × 2) cranelift/codegen/src/isa/aarch64/inst/mod.rs:442— cranelift/codegen/src/isa/aarch64/inst/mod.rs:442-447 | cranelift/codegen/src/isa/s390x/inst/mod.rs:642-648 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/s390x/inst/mod.rs` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 2) cranelift/codegen/src/isa/riscv64/inst/encode.rs:25— cranelift/codegen/src/isa/riscv64/inst/encode.rs:25-30 | cranelift/codegen/src/isa/riscv64/inst/encode.rs:58-64 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 11) cranelift/isle/veri/veri/src/encoded/cls.rs:771— cranelift/isle/veri/veri/src/encoded/cls.rs:771-779 | cranelift/isle/veri/veri/src/encoded/cls.rs:1430-1438 | cranelift/isle/veri/veri/src/encoded/cls.rs:1949-1957 | cranelift/isle/veri/veri/src/encoded/clz.rs:340-348 | cranelift/isle/veri/veri/src/encoded/clz.rs:623-631 | cranelift/isle/veri/veri/src/encoded/clz.rs:858-866 | cranelift/isle/veri/veri/src/encoded/clz.rs:1045-1052 | cranelift/isle/veri/veri/src/encoded/rev.rs:117-124 | cranelift/isle/veri/veri/src/encoded/rev.rs:209-216 | cranelift/isle/veri/veri/src/encoded/rev.rs:267-274 | cranelift/isle/veri/veri/src/encoded/rev.rs:313-320 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 11) crates/fuzzing/src/oracles/api.rs:233— crates/fuzzing/src/oracles/api.rs:233-240 | crates/fuzzing/src/oracles/api.rs:352-359 | crates/fuzzing/src/oracles/api.rs:365-372 | crates/fuzzing/src/oracles/api.rs:478-485 | crates/fuzzing/src/oracles/api.rs:517-524 | crates/fuzzing/src/oracles/api.rs:530-537 | crates/fuzzing/src/oracles/api.rs:543-550 | crates/fuzzing/src/oracles/api.rs:556-563 | crates/fuzzing/src/oracles/api.rs:569-576 | crates/fuzzing/src/oracles/api.rs:639-646 | crates/fuzzing/src/oracles/api.rs:737-744 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (3–5 lines × 3) cranelift/codegen/src/isa/aarch64/inst/mod.rs:1763— cranelift/codegen/src/isa/aarch64/inst/mod.rs:1763-1767 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:1804-1806 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:1893-1897 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (3–5 lines × 3) crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:148— crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:148-150 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:171-175 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:213-217 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (22 lines × 2) crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:62— crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:62-83 | crates/test-programs/src/bin/p2_file_rename_across_perms.rs:54-75 — before extracting anything, compare `crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p2_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 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 — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 2) crates/test-programs/src/bin/p2_tcp_sockopts.rs:51— crates/test-programs/src/bin/p2_tcp_sockopts.rs:51-72 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:55-76 — before extracting anything, compare `crates/test-programs/src/bin/p2_tcp_sockopts.rs` and `crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 77 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 — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) crates/test-programs/src/bin/p1_fd_flags_set.rs:22— crates/test-programs/src/bin/p1_fd_flags_set.rs:22-37 | crates/test-programs/src/bin/p1_fd_flags_set.rs:63-78 | crates/test-programs/src/bin/p1_fd_flags_set.rs:104-119 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 3) crates/test-programs/src/bin/p1_fd_flags_set.rs:41— crates/test-programs/src/bin/p1_fd_flags_set.rs:41-56 | crates/test-programs/src/bin/p1_fd_flags_set.rs:80-95 | crates/test-programs/src/bin/p1_fd_flags_set.rs:121-136 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–14 lines × 2) crates/test-programs/src/bin/p2_tcp_connect.rs:55— crates/test-programs/src/bin/p2_tcp_connect.rs:55-64 | crates/test-programs/src/bin/p2_tcp_connect.rs:83-96 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–14 lines × 2) crates/test-programs/src/bin/p3_sockets_tcp_connect.rs:59— crates/test-programs/src/bin/p3_sockets_tcp_connect.rs:59-68 | crates/test-programs/src/bin/p3_sockets_tcp_connect.rs:87-100 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
No authorization src/commands/serve.rs:1354— This repository serves requests — a server (.serve_connection) (src/commands/serve.rs:1354) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected.
Inliner::initializer (cyclomatic 103) crates/environ/src/component/translate/inline.rs:456— Inliner::initializer has cyclomatic complexity 103 (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 — the same kind of value, with no behaviour of its own — 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.
cranelift_assembler_x64::gpr::enc::to_string (cyclomatic 65) cranelift/assembler-x64/src/gpr.rs:144— cranelift_assembler_x64::gpr::enc::to_string has cyclomatic complexity 65 (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 — the same kind of value, with no behaviour of its own — 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.
Error::fmt (cyclomatic 64) crates/wasi-http/src/error.rs:100— Error::fmt has cyclomatic complexity 64 (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 — the same kind of value, with no behaviour of its own — 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.
ModuleEnvironment::translate_payload (cyclomatic 57) crates/environ/src/compile/module_environ.rs:462— ModuleEnvironment::translate_payload has cyclomatic complexity 57 (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.
Trap::from_u8 (cyclomatic 56) crates/environ/src/trap_encoding.rs:80— Trap::from_u8 has cyclomatic complexity 56 (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.
WasmOptions::to_options (cyclomatic 55) crates/cli-flags/src/lib.rs:391— WasmOptions::to_options has cyclomatic complexity 55 (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.
Cond::encode (cyclomatic 54) cranelift/codegen/src/isa/pulley_shared/inst/args.rs:292— Cond::encode has cyclomatic complexity 54 (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 — the same kind of value, with no behaviour of its own — 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.
DataValue::convert (cyclomatic 50) cranelift/interpreter/src/value.rs:406— DataValue::convert 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 — the same kind of value, with no behaviour of its own — 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.
FliConstant::maybe_from_u64 (cyclomatic 47) cranelift/codegen/src/isa/riscv64/inst/args.rs:324— FliConstant::maybe_from_u64 has cyclomatic complexity 47 (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 — the same kind of value, with no behaviour of its own — 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.
OptimizeOptions::to_options (cyclomatic 47) crates/cli-flags/src/lib.rs:49— OptimizeOptions::to_options has cyclomatic complexity 47 (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. This is NOT this file's highest cyclomatic complexity: WasmOptions::configure (cyclomatic 54) is higher and carries no row of its own — 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's figures nor in its score.
wasmtime_wizer::component::parse::parse_into (cyclomatic 43) crates/wizer/src/component/parse.rs:29— wasmtime_wizer::component::parse::parse_into has cyclomatic complexity 43 (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.
ObjdumpCommand::disassemble (cyclomatic 43) src/commands/objdump.rs:128— ObjdumpCommand::disassemble has cyclomatic complexity 43 (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.
X64ABIMachineSpec::compute_arg_locs (cyclomatic 40) cranelift/codegen/src/isa/x64/abi.rs:93— X64ABIMachineSpec::compute_arg_locs 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.
Runner::run (cyclomatic 39) cranelift/isle/veri/veri/src/runner.rs:666— Runner::run has cyclomatic complexity 39 (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.
RemoveUnusedEntities::mutate (cyclomatic 37) cranelift/src/bugpoint.rs:435— RemoveUnusedEntities::mutate has cyclomatic complexity 37 (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.
Rust::emit (cyclomatic 36) crates/wiggle/generate/src/funcs.rs:188— Rust::emit 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 — the same kind of value, with no behaviour of its own — 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.
WasiOptions::to_options (cyclomatic 35) crates/cli-flags/src/lib.rs:552— WasiOptions::to_options has cyclomatic complexity 35 (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. This is NOT this file's highest cyclomatic complexity: WasmOptions::configure (cyclomatic 54) is higher and carries no row of its own — 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's figures nor in its score.
OutDieDetailedSummary::fmt (cyclomatic 35) crates/cranelift/src/debug/transform/debug_transform_logging.rs:160— OutDieDetailedSummary::fmt has cyclomatic complexity 35 (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 — the same kind of value, with no behaviour of its own — 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.
wasmtime_wasi::filesystem::primitives::windows::create_file_at_w::CreateFileAtW (cyclomatic 35) crates/wasi/src/filesystem/primitives/windows/create_file_at_w.rs:75— wasmtime_wasi::filesystem::primitives::windows::create_file_at_w::CreateFileAtW has cyclomatic complexity 35 (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.
DieDetailedSummary::fmt (cyclomatic 34) crates/cranelift/src/debug/transform/debug_transform_logging.rs:81— DieDetailedSummary::fmt 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 — the same kind of value, with no behaviour of its own — 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.
SystemBuilder::veri_expr (cyclomatic 32) cranelift/isle/veri/veri/src/type_inference.rs:307— SystemBuilder::veri_expr 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 — the same kind of value, with no behaviour of its own — 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.
WasiP1Ctx::poll_oneoff (cyclomatic 32) crates/wasi/src/p1.rs:2308— WasiP1Ctx::poll_oneoff has cyclomatic complexity 32 (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.
Type::default_value_impl (cyclomatic 30) crates/wasmtime/src/runtime/component/types.rs:1000— Type::default_value_impl 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 — the same kind of value, with no behaviour of its own — 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's highest cyclomatic complexity: TypeChecker::interface_types_equal (cyclomatic 56) is higher and carries no row of its own — 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's figures nor in its score.
wasmtime::runtime::wave::component::ensure_type_val (cyclomatic 30) crates/wasmtime/src/runtime/wave/component.rs:305— wasmtime::runtime::wave::component::ensure_type_val has cyclomatic complexity 30 (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.
ServeCommand::serve_maybe_debug (cyclomatic 30) src/commands/serve.rs:619— ServeCommand::serve_maybe_debug has cyclomatic complexity 30 (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.
RustGenerator::tyid (cyclomatic 29) crates/wit-bindgen/src/rust.rs:82— RustGenerator::tyid has cyclomatic complexity 29 (threshold 15). Of this number, 25 points are the body's 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. Where every arm is uniform — the same kind of value, with no behaviour of its own — 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's highest cyclomatic complexity: wasmtime_internal_wit_bindgen::rust::to_rust_ident (cyclomatic 52) is higher and carries no row of its own — 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's figures nor in its score.
WasmCoreDump::_serialize (cyclomatic 28) crates/wasmtime/src/runtime/coredump.rs:111— WasmCoreDump::_serialize 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 — the same kind of value, with no behaviour of its own — 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.
ObjectModule::define_data (cyclomatic 27) cranelift/object/src/backend.rs:491— ObjectModule::define_data 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. This is NOT this file's highest cyclomatic complexity: ObjectModule::process_reloc (cyclomatic 38) is higher and carries no row of its own — 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's figures nor in its score.
Opt::parse (cyclomatic 26) crates/component-macro/src/bindgen.rs:302— Opt::parse has cyclomatic complexity 26 (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.
CodeMemory::new (cyclomatic 26) crates/wasmtime/src/runtime/code_memory.rs:125— CodeMemory::new 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 — the same kind of value, with no behaviour of its own — 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.
Worker::run_ (cyclomatic 25) crates/wasi-http/src/handler.rs:418— Worker::run_ 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.
S390xMachineDeps::compute_arg_locs (cyclomatic 23) cranelift/codegen/src/isa/s390x/abi.rs:302— S390xMachineDeps::compute_arg_locs 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.
cranelift_isle_veri_isaspec::bin::constraints::define_insts (cyclomatic 23) cranelift/isle/veri/isaspec/src/bin/constraints.rs:70— cranelift_isle_veri_isaspec::bin::constraints::define_insts has cyclomatic complexity 23 (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.
verify_component_adapter::main (cyclomatic 23) crates/wasi-preview1-component-adapter/verify/src/main.rs:5— verify_component_adapter::main 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 — the same kind of value, with no behaviour of its own — 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.
CompiledExpression::build_with_locals (cyclomatic 22) crates/cranelift/src/debug/transform/expression.rs:252— CompiledExpression::build_with_locals 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.
UnsafeIntrinsic::from_u32 (cyclomatic 22) crates/environ/src/component/intrinsic.rs:77— UnsafeIntrinsic::from_u32 has cyclomatic complexity 22 (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.
wasmtime_internal_wit_bindgen::lookup_keys (cyclomatic 22) crates/wit-bindgen/src/lib.rs:1370— wasmtime_internal_wit_bindgen::lookup_keys 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 — the same kind of value, with no behaviour of its own — 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.
SpecExpr::to_sexpr (cyclomatic 21) cranelift/isle/isle/src/printer.rs:545— SpecExpr::to_sexpr 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 — the same kind of value, with no behaviour of its own — 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's highest cyclomatic complexity: SpecOp::to_sexpr (cyclomatic 87) is higher and carries no row of its own — 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's figures nor in its score.
CompiledBlob::perform_relocations (cyclomatic 21) cranelift/jit/src/compiled_blob.rs:133— CompiledBlob::perform_relocations 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_tools::bugpoint::reduce (cyclomatic 21) cranelift/src/bugpoint.rs:805— cranelift_tools::bugpoint::reduce 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 — the same kind of value, with no behaviour of its own — 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.
WasmparserTypeConverter::lookup_heap_type (cyclomatic 21) crates/environ/src/compile/module_types.rs:558— WasmparserTypeConverter::lookup_heap_type 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 — the same kind of value, with no behaviour of its own — 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.
WastContext::run_directive (cyclomatic 21) crates/wast/src/wast.rs:656— WastContext::run_directive 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 — the same kind of value, with no behaviour of its own — 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.
cranelift_native::infer_native_flags (cyclomatic 21) cranelift/native/src/lib.rs:48— cranelift_native::infer_native_flags has cyclomatic complexity 21 (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.
FunctionGenerator::generate_blocks (cyclomatic 20) cranelift/fuzzgen/src/function_generator.rs:1613— FunctionGenerator::generate_blocks 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. This is NOT this file's highest cyclomatic complexity: cranelift_fuzzgen::function_generator::inserter_for_format (cyclomatic 31) is higher and carries no row of its own — 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's figures nor in its score.
Dir::open_at (cyclomatic 20) crates/wasi/src/filesystem.rs:934— Dir::open_at has cyclomatic complexity 20 (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's highest cyclomatic complexity: wasmtime_wasi::filesystem::from_raw_os_error (cyclomatic 28) is higher and carries no row of its own — 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's figures nor in its score.
Instantiator::run (cyclomatic 20) crates/wasmtime/src/runtime/component/instance.rs:722— Instantiator::run 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 — the same kind of value, with no behaviour of its own — 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.
TypeChecker::definition (cyclomatic 20) crates/wasmtime/src/runtime/component/matching.rs:39— TypeChecker::definition 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 — the same kind of value, with no behaviour of its own — 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.
DrcHeap::process_dec_ref_stack (cyclomatic 19) crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs:303— DrcHeap::process_dec_ref_stack 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.
MacroAssembler::wasm_load (cyclomatic 19) winch/codegen/src/isa/aarch64/masm.rs:634— MacroAssembler::wasm_load 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 — the same kind of value, with no behaviour of its own — 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.
AliasAnalysis::process_inst (cyclomatic 18) cranelift/codegen/src/alias_analysis.rs:1180— AliasAnalysis::process_inst 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.
Callee::gen_call_args (cyclomatic 18) cranelift/codegen/src/machinst/abi.rs:1849— Callee::gen_call_args 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.
wasmtime_internal_component_macro::component::expand_flags (cyclomatic 18) crates/component-macro/src/component.rs:1159— wasmtime_internal_component_macro::component::expand_flags 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 — the same kind of value, with no behaviour of its own — 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.
wasmtime_environ::component::thread_transparency::for_each_core_def (cyclomatic 18) crates/environ/src/component/thread_transparency.rs:323— wasmtime_environ::component::thread_transparency::for_each_core_def has cyclomatic complexity 18 (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.
CompiledCode::disassemble (cyclomatic 17) cranelift/codegen/src/machinst/mod.rs:638— CompiledCode::disassemble 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.
wasmtime_wasi_http::default_send_request::default_send_request (cyclomatic 16) crates/wasi-http/src/default_send_request.rs:34— wasmtime_wasi_http::default_send_request::default_send_request 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.
Table::grow (cyclomatic 16) crates/wasmtime/src/runtime/vm/table.rs:623— Table::grow 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.
CodeGen::emit_catch_values (cyclomatic 16) winch/codegen/src/codegen/exceptions.rs:153— CodeGen::emit_catch_values 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.
byte_array_literals::to_string (cyclomatic 16) crates/wasi-preview1-component-adapter/byte-array-literals/src/lib.rs:49— byte_array_literals::to_string 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 — the same kind of value, with no behaviour of its own — 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.
HackComment cranelift/codegen/src/machinst/lower.rs:604— // Hack: generate a virtual instruction that uses vmctx in — 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.
cranelift_interpreter::step::step (cognitive 181) cranelift/interpreter/src/step.rs:63— cranelift_interpreter::step::step has cognitive complexity 181 (threshold 15). Drivers by points: if/else 76 (123 pts), match/switch 26 (44 pts), loops 4 (8 pts), boolean chains 6 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ObjdumpCommand::disassemble (cognitive 122) src/commands/objdump.rs:128— ObjdumpCommand::disassemble has cognitive complexity 122 (threshold 15). Drivers by points: if/else 31 (79 pts), loops 8 (26 pts), boolean chains 9, match/switch 2 (8 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.
RemoveUnusedEntities::mutate (cognitive 106) cranelift/src/bugpoint.rs:435— RemoveUnusedEntities::mutate has cognitive complexity 106 (threshold 15). Drivers by points: loops 18 (48 pts), match/switch 9 (38 pts), if/else 6 (20 pts) (nesting depth added 73). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
X64ABIMachineSpec::compute_arg_locs (cognitive 76) cranelift/codegen/src/isa/x64/abi.rs:93— X64ABIMachineSpec::compute_arg_locs has cognitive complexity 76 (threshold 15). Drivers by points: if/else 24 (46 pts), boolean chains 14, match/switch 4 (11 pts), loops 3 (5 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.
DrcHeap::process_dec_ref_stack (cognitive 57) crates/wasmtime/src/runtime/vm/gc/enabled/drc.rs:303— DrcHeap::process_dec_ref_stack has cognitive complexity 57 (threshold 15). Drivers by points: loops 7 (24 pts), if/else 8 (19 pts), match/switch 4 (13 pts), boolean chains 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Trap::from_u8 (cognitive 55) crates/environ/src/trap_encoding.rs:80— Trap::from_u8 has cognitive complexity 55 (threshold 15). Drivers by points: if/else 55. To reduce it, split the body: this score is breadth rather than depth — 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.
AliasAnalysis::process_inst (cognitive 54) cranelift/codegen/src/alias_analysis.rs:1180— AliasAnalysis::process_inst has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (48 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
WasmOptions::to_options (cognitive 54) crates/cli-flags/src/lib.rs:391— WasmOptions::to_options has cognitive complexity 54 (threshold 15). Drivers by points: loops 54. 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.
WasiP1Ctx::poll_oneoff (cognitive 54) crates/wasi/src/p1.rs:2308— WasiP1Ctx::poll_oneoff has cognitive complexity 54 (threshold 15). Drivers by points: match/switch 8 (23 pts), if/else 10 (22 pts), loops 8, boolean chains 1 (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.
ServeCommand::serve_maybe_debug (cognitive 49) src/commands/serve.rs:619— ServeCommand::serve_maybe_debug has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (30 pts), match/switch 6 (10 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
OptimizeOptions::to_options (cognitive 46) crates/cli-flags/src/lib.rs:49— OptimizeOptions::to_options has cognitive complexity 46 (threshold 15). Drivers by points: loops 46. 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.
Error::fmt (cognitive 39) crates/wasi-http/src/error.rs:100— Error::fmt has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (38 pts), match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
CompiledCode::disassemble (cognitive 38) cranelift/codegen/src/machinst/mod.rs:638— CompiledCode::disassemble has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 6 (14 pts), boolean chains 3 (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.
MachBuffer::optimize_branches (cognitive 35) cranelift/codegen/src/machinst/buffer.rs:1053— MachBuffer::optimize_branches has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (5 pts), boolean chains 2 (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.
cranelift_tools::bugpoint::reduce (cognitive 35) cranelift/src/bugpoint.rs:805— cranelift_tools::bugpoint::reduce has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 4 (12 pts), loops 3 (6 pts) (nesting depth added 23). 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.
WasiOptions::to_options (cognitive 34) crates/cli-flags/src/lib.rs:552— WasiOptions::to_options has cognitive complexity 34 (threshold 15). Drivers by points: loops 34. 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.
Instantiator::run (cognitive 34) crates/wasmtime/src/runtime/component/instance.rs:722— Instantiator::run has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 6 (16 pts), if/else 5 (14 pts), loops 4 (nesting depth added 19). 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.
HotBlocksCommand::format_hot_blocks (cognitive 33) src/commands/hot_blocks.rs:294— HotBlocksCommand::format_hot_blocks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 3 (4 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.
OnnxExecutionContext::compute (cognitive 32) crates/wasi-nn/src/backend/onnx.rs:182— OnnxExecutionContext::compute has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 6 (12 pts), match/switch 2 (4 pts) (nesting depth added 17). Of this number, 30 points are the body's 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.
cranelift_isle_veri_isaspec::bin::constraints::define_insts (cognitive 31) cranelift/isle/veri/isaspec/src/bin/constraints.rs:70— cranelift_isle_veri_isaspec::bin::constraints::define_insts has cognitive complexity 31 (threshold 15). Drivers by points: loops 22 (31 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.
DataFlowGraph::resolve_all_aliases (cognitive 30) cranelift/codegen/src/ir/dfg.rs:438— DataFlowGraph::resolve_all_aliases has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 5 (8 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.
LivenessAnalysis::process_block (cognitive 30) cranelift/frontend/src/frontend/safepoints.rs:408— LivenessAnalysis::process_block has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 7 (14 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.
Opt::parse (cognitive 30) crates/component-macro/src/bindgen.rs:302— Opt::parse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24 (25 pts), match/switch 2 (5 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — 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.
HostBodyStreamProducer::poll_produce (cognitive 30) crates/wasi-http/src/p3/body.rs:525— HostBodyStreamProducer::poll_produce has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (23 pts), match/switch 3 (6 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.
CompiledExpression::build_with_locals (cognitive 29) crates/cranelift/src/debug/transform/expression.rs:252— CompiledExpression::build_with_locals has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 4 (8 pts), loops 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.
CommaSeparatedParser::parse_ref (cognitive 28) crates/cli-flags/src/opt.rs:198— CommaSeparatedParser::parse_ref has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (17 pts), if/else 5 (11 pts) (nesting depth added 17). 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.
BlockLoweringOrder::new (cognitive 27) cranelift/codegen/src/machinst/blockorder.rs:148— BlockLoweringOrder::new has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (5 pts), match/switch 2 (4 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.
CodeGen::emit_catch_values (cognitive 27) winch/codegen/src/codegen/exceptions.rs:153— CodeGen::emit_catch_values has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 2 (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.
Path::split_and_insert (cognitive 26) cranelift/bforest/src/path.rs:291— Path::split_and_insert has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, match/switch 1 (2 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.
Riscv64MachineDeps::compute_arg_locs (cognitive 26) cranelift/codegen/src/isa/riscv64/abi.rs:86— Riscv64MachineDeps::compute_arg_locs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, loops 2 (3 pts), 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.
ValueLabelRangesBuilder::process_label (cognitive 26) crates/cranelift/src/debug/transform/expression.rs:758— ValueLabelRangesBuilder::process_label has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (5 pts), loops 2 (3 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.
Rust::emit (cognitive 26) crates/wiggle/generate/src/funcs.rs:188— Rust::emit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 3 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
PulleyMachineDeps::compute_arg_locs (cognitive 25) cranelift/codegen/src/isa/pulley_shared/abi.rs:52— PulleyMachineDeps::compute_arg_locs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, 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.
Conditions::pretty_print (cognitive 24) cranelift/isle/veri/veri/src/veri.rs:842— Conditions::pretty_print has cognitive complexity 24 (threshold 15). Drivers by points: loops 8 (16 pts), if/else 3 (8 pts) (nesting depth added 13). 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.
Dir::open_at (cognitive 24) crates/wasi/src/filesystem.rs:934— Dir::open_at has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 3, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
WasmCoreDump::_serialize (cognitive 24) crates/wasmtime/src/runtime/coredump.rs:111— WasmCoreDump::_serialize has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 3 (8 pts), loops 6 (7 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.
CallThreadState::unwind (cognitive 24) crates/wasmtime/src/runtime/vm/traphandlers.rs:830— CallThreadState::unwind has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (5 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.
Cond::encode (cognitive 23) cranelift/codegen/src/isa/pulley_shared/inst/args.rs:292— Cond::encode has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 21 (23 pts) (nesting depth added 2). 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.
ASIMDMovModImm::maybe_from_u64 (cognitive 23) cranelift/codegen/src/isa/aarch64/inst/imms.rs:655— ASIMDMovModImm::maybe_from_u64 has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
MemArg::pretty_print (cognitive 23) cranelift/codegen/src/isa/s390x/inst/args.rs:193— MemArg::pretty_print has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
Debugger::run (cognitive 23) crates/gdbstub-component/src/lib.rs:86— Debugger::run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 2 (5 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.
RustGenerator::tyid (cognitive 23) crates/wit-bindgen/src/rust.rs:82— RustGenerator::tyid has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). Of this number, 21 points are the body's 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.
verify_component_adapter::main (cognitive 23) crates/wasi-preview1-component-adapter/verify/src/main.rs:5— verify_component_adapter::main has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (13 pts), match/switch 2 (6 pts), loops 2 (4 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.
FunctionGenerator::generate_blocks (cognitive 22) cranelift/fuzzgen/src/function_generator.rs:1613— FunctionGenerator::generate_blocks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (5 pts), boolean chains 2, match/switch 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
Decomposition::best_control_flow (cognitive 22) cranelift/isle/isle/src/serialize.rs:691— Decomposition::best_control_flow has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (3 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.
cranelift_object::backend::parse_section (cognitive 22) cranelift/object/src/backend.rs:1176— cranelift_object::backend::parse_section has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
SourceMap::lookup_str (cognitive 22) cranelift/reader/src/sourcemap.rs:73— SourceMap::lookup_str has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
wasmtime_wasi_http::default_send_request::default_send_request (cognitive 22) crates/wasi-http/src/default_send_request.rs:34— wasmtime_wasi_http::default_send_request::default_send_request has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 3 (4 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
TestRunner::scan_dirs (cognitive 21) cranelift/filetests/src/runner.rs:125— TestRunner::scan_dirs has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 3 (11 pts), if/else 3 (6 pts), loops 2 (4 pts) (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.
UnsafeIntrinsic::from_u32 (cognitive 21) crates/environ/src/component/intrinsic.rs:77— UnsafeIntrinsic::from_u32 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. To reduce it, split the body: this score is breadth rather than depth — 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.
SafepointSpiller::rewrite (cognitive 20) cranelift/frontend/src/frontend/safepoints.rs:902— SafepointSpiller::rewrite has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (13 pts), if/else 3 (7 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.
ComponentInstance::initialize_vmctx (cognitive 20) crates/wasmtime/src/runtime/vm/component.rs:679— ComponentInstance::initialize_vmctx has cognitive complexity 20 (threshold 15). Drivers by points: loops 10 (19 pts), if/else 1 (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.
cranelift_native::infer_native_flags (cognitive 20) cranelift/native/src/lib.rs:48— cranelift_native::infer_native_flags has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. To reduce it, split the body: this score is breadth rather than depth — 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.
TransformRangeIter::next (cognitive 19) crates/cranelift/src/debug/transform/address_transform.rs:394— TransformRangeIter::next has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 4 (9 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.
CopyingHeap::scan (cognitive 19) crates/wasmtime/src/runtime/vm/gc/enabled/copying.rs:584— CopyingHeap::scan has cognitive complexity 19 (threshold 15). Drivers by points: loops 3 (8 pts), match/switch 3 (7 pts), if/else 2 (4 pts) (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — 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.
cranelift_assembler_x64::gpr::enc::to_string (cognitive 18) cranelift/assembler-x64/src/gpr.rs:144— cranelift_assembler_x64::gpr::enc::to_string has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 17 (18 pts) (nesting depth added 1). 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.
DataValue::convert (cognitive 18) cranelift/interpreter/src/value.rs:406— DataValue::convert has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 2 (4 pts), boolean chains 3 (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.
OptimizeCtx::simplify_skeleton_inst (cognitive 18) cranelift/codegen/src/egraph/mod.rs:589— OptimizeCtx::simplify_skeleton_inst has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 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.
SSABuilder::finish_predecessors_lookup (cognitive 18) cranelift/frontend/src/ssa.rs:538— SSABuilder::finish_predecessors_lookup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (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.
Expander::extend (cognitive 18) cranelift/isle/veri/veri/src/expand.rs:593— Expander::extend has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 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.
wasmtime_internal_wit_bindgen::lookup_keys (cognitive 18) crates/wit-bindgen/src/lib.rs:1370— wasmtime_internal_wit_bindgen::lookup_keys has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 3 (5 pts), 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.
Ieee16::from_parts (cognitive 17) cranelift/codegen/src/ir/immediates.rs:921— Ieee16::from_parts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (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.
CallInfo::emit_retval_loads (cognitive 17) cranelift/codegen/src/machinst/abi.rs:2584— CallInfo::emit_retval_loads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 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.
Switch::build_search_branches (cognitive 17) cranelift/frontend/src/switch.rs:154— Switch::build_search_branches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 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.
WasmparserTypeConverter::lookup_heap_type (cognitive 17) crates/environ/src/compile/module_types.rs:558— WasmparserTypeConverter::lookup_heap_type has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 6 (8 pts) (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.
StronglyConnectedComponents::new (cognitive 17) crates/environ/src/graphs/scc.rs:73— StronglyConnectedComponents::new has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (14 pts), match/switch 1 (2 pts), loops 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.
CompileInputs::collect_inputs_in_translations (cognitive 17) crates/wasmtime/src/compile.rs:471— CompileInputs::collect_inputs_in_translations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 4 (7 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.
Engine::_check_compatible_with_native_host (cognitive 17) crates/wasmtime/src/engine.rs:360— Engine::_check_compatible_with_native_host has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 5, loops 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — 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.
ProfilingAgent::register_module (cognitive 17) crates/wasmtime/src/profiling_agent.rs:78— ProfilingAgent::register_module has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (7 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.
TypeChecker::definition (cognitive 17) crates/wasmtime/src/runtime/component/matching.rs:39— TypeChecker::definition has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 8 (14 pts), if/else 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.
ModuleRegistry::register (cognitive 17) crates/wasmtime/src/runtime/module/registry.rs:265— ModuleRegistry::register has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 6 (7 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.
LocalMemory::grow (cognitive 17) crates/wasmtime/src/runtime/vm/memory.rs:517— LocalMemory::grow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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.
Table::grow (cognitive 17) crates/wasmtime/src/runtime/vm/table.rs:623— Table::grow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), 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.
RunCommon::configure_wasip2 (cognitive 17) src/common.rs:317— RunCommon::configure_wasip2 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, loops 4 (5 pts), match/switch 2 (5 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.
ControlStackFrame::adjust_stack_results (cognitive 17) winch/codegen/src/codegen/control.rs:876— ControlStackFrame::adjust_stack_results has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (6 pts), loops 3 (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.
DominatorTree::compute_domtree_preorder (cognitive 16) cranelift/codegen/src/dominator_tree.rs:598— DominatorTree::compute_domtree_preorder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 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.
ImmLogic::maybe_from_u64 (cognitive 16) cranelift/codegen/src/isa/aarch64/inst/imms.rs:332— ImmLogic::maybe_from_u64 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth — 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.
RuleSetBuilder::normalize_equivalence_classes (cognitive 16) cranelift/isle/isle/src/trie_again.rs:546— RuleSetBuilder::normalize_equivalence_classes has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 3 (7 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.
Program::build_overlaps (cognitive 16) cranelift/isle/veri/veri/src/program.rs:153— Program::build_overlaps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (6 pts), match/switch 2 (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.
JITModule::get_address (cognitive 16) cranelift/jit/src/backend.rs:233— JITModule::get_address has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 5 (7 pts) (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.
CodeMemory::new (cognitive 16) crates/wasmtime/src/runtime/code_memory.rs:125— CodeMemory::new has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (5 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.
Change coupling clique: memory.rs, table.rs, tag.rs crates/wasmtime/src/runtime/trampoline/memory.rs— 3 files — `crates/wasmtime/src/runtime/trampoline/memory.rs`, `crates/wasmtime/src/runtime/trampoline/table.rs`, `crates/wasmtime/src/runtime/trampoline/tag.rs` — all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
Change-coupling hub: trampoline.rs → instance.rs, instance.rs, allocator.rs, pooling.rs crates/wasmtime/src/runtime/trampoline.rs— `crates/wasmtime/src/runtime/trampoline.rs` changes together with 4 other files — `crates/wasmtime/src/runtime/instance.rs`, `crates/wasmtime/src/runtime/vm/instance.rs`, `crates/wasmtime/src/runtime/vm/instance/allocator.rs`, `crates/wasmtime/src/runtime/vm/instance/allocator/pooling.rs` — none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 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 4.
D4 · Code Duplication· Near-duplicate member family (8 members, 114 shared lines) · ×1
Near-duplicate member family (8 members, 114 shared lines) cranelift/isle/veri/veri/src/encoded/cls.rs:9— cranelift/isle/veri/veri/src/encoded/cls.rs:9-768 | cranelift/isle/veri/veri/src/encoded/cls.rs:770-1427 | cranelift/isle/veri/veri/src/encoded/cls.rs:1429-1946 | cranelift/isle/veri/veri/src/encoded/cls.rs:1948-2369 | cranelift/isle/veri/veri/src/encoded/clz.rs:9-337 | cranelift/isle/veri/veri/src/encoded/clz.rs:339-620 | cranelift/isle/veri/veri/src/encoded/clz.rs:622-855 | cranelift/isle/veri/veri/src/encoded/clz.rs:857-1042 — These 8 members are variants of one another: a block of 114 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 times. The repair is at the members' 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. 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 8 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 23 shared lines) · ×1
Near-duplicate member family (4 members, 23 shared lines) cranelift/isle/veri/veri/src/encoded/rev.rs:8— cranelift/isle/veri/veri/src/encoded/rev.rs:8-114 | cranelift/isle/veri/veri/src/encoded/rev.rs:116-206 | cranelift/isle/veri/veri/src/encoded/rev.rs:208-264 | cranelift/isle/veri/veri/src/encoded/rev.rs:266-310 — These 4 members are variants of one another: a block of 23 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' 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. 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.
D4 · Code Duplication· Near-duplicate member family (3 members, 15 shared lines) · ×1
Near-duplicate member family (3 members, 15 shared lines) cranelift/codegen/src/isa/aarch64/abi.rs:1464— cranelift/codegen/src/isa/aarch64/abi.rs:1464-1532 | cranelift/codegen/src/isa/aarch64/abi.rs:1534-1602 | cranelift/codegen/src/isa/aarch64/abi.rs:1604-1670 — These 3 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' 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. 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 3 times.
D4 · Code Duplication· Near-duplicate member family (3 members, 8 shared lines) · ×1
Near-duplicate member family (3 members, 8 shared lines) cranelift/codegen/src/isa/s390x/abi.rs:1328— cranelift/codegen/src/isa/s390x/abi.rs:1328-1383 | cranelift/codegen/src/isa/s390x/abi.rs:1386-1429 | cranelift/codegen/src/isa/s390x/abi.rs:1432-1482 — These 3 members are variants of one another: a block of 8 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' 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. 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 3 times.
Near-duplicate member pair (59 shared lines) cranelift/codegen/src/isa/pulley_shared/abi.rs:993— cranelift/codegen/src/isa/pulley_shared/abi.rs:993-1112 | cranelift/codegen/src/isa/riscv64/abi.rs:979-1105 — These two members are variants of one another: 59 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' grain — 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.
Near-duplicate member pair (40 shared lines) crates/wit-bindgen/src/lib.rs:1998— crates/wit-bindgen/src/lib.rs:1998-2094 | crates/wit-bindgen/src/lib.rs:2213-2306 — These two members are variants of one another: 40 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' grain — 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.
Near-duplicate member pair (35 shared lines) crates/wasmtime/src/runtime/gc/enabled/exnref.rs:503— crates/wasmtime/src/runtime/gc/enabled/exnref.rs:503-562 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:459-518 — These two members are variants of one another: 35 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' grain — 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.
D4 · Code Duplication· Edited copy of a member (66 corresponding lines) · ×1
Edited copy of a member (66 corresponding lines) cranelift/codegen/src/isa/s390x/abi.rs:1488— cranelift/codegen/src/isa/s390x/abi.rs:1488-1553 | cranelift/codegen/src/isa/s390x/abi.rs:1555-1621 — These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, 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' grain — 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.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×1
Edited copy of a member (20 corresponding lines) cranelift/codegen/src/isa/s390x/inst/emit.rs:1290— cranelift/codegen/src/isa/s390x/inst/emit.rs:1290-1309 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1344-1363 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — 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.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×1
Edited copy of a member (19 corresponding lines) cranelift/codegen/src/isa/s390x/inst/emit.rs:1133— cranelift/codegen/src/isa/s390x/inst/emit.rs:1133-1151 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1159-1178 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — 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.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×1
Edited copy of a member (10 corresponding lines) crates/environ/src/address_map.rs:229— crates/environ/src/address_map.rs:229-244 | crates/environ/src/trap_encoding.rs:415-429 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — 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.
D4 · Code Duplication· Edited copy of a member (11 corresponding lines) · ×1
Edited copy of a member (11 corresponding lines) crates/environ/src/compile/address_map.rs:206— crates/environ/src/compile/address_map.rs:206-216 | crates/environ/src/compile/trap_encoding.rs:185-195 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — 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.
D4 · Code Duplication· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (9 members, 50+ identical tokens) cranelift/isle/veri/veri/src/bin/count.rs:47— cranelift/isle/veri/veri/src/bin/count.rs:47-60 | cranelift/isle/veri/veri/src/bin/expand.rs:54-67 | cranelift/isle/veri/veri/src/bin/explorer.rs:35-48 | cranelift/isle/veri/veri/src/bin/graph.rs:32-45 | cranelift/isle/veri/veri/src/bin/reachable.rs:28-41 | cranelift/isle/veri/veri/src/bin/rule_stats.rs:24-37 | cranelift/isle/veri/veri/src/bin/spec_lines.rs:24-37 | cranelift/isle/veri/veri/src/bin/status.rs:34-47 | cranelift/isle/veri/veri/src/bin/trie_dump.rs:26-39 — These 9 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 — 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 9 times. The repair is at the members' 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. 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 9 times.
Duplicated block (64–73 lines × 2) src/commands/run.rs:129— src/commands/run.rs:129-201 | src/commands/serve.rs:282-345 — before extracting anything, compare `src/commands/run.rs` and `src/commands/serve.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 113 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 — extracting one helper per block leaves the fork in place.
Duplicated block (48 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1070— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1070-1117 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1203-1250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–39 lines × 2) crates/cranelift/src/func_environ/gc/copying.rs:372— crates/cranelift/src/func_environ/gc/copying.rs:372-392 | crates/cranelift/src/func_environ/gc/drc.rs:470-508 — before extracting anything, compare `crates/cranelift/src/func_environ/gc/copying.rs` and `crates/cranelift/src/func_environ/gc/drc.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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 — extracting one helper per block leaves the fork in place.
Duplicated block (33 lines × 2) cranelift/codegen/src/isa/s390x/inst/mod.rs:3153— cranelift/codegen/src/isa/s390x/inst/mod.rs:3153-3185 | cranelift/codegen/src/isa/s390x/inst/mod.rs:3213-3245 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (28–32 lines × 2) crates/wasi-tls/src/p3/host.rs:82— crates/wasi-tls/src/p3/host.rs:82-109 | crates/wasi-tls/src/p3/host.rs:144-175 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (28–31 lines × 2) cranelift/codegen/src/isa/pulley_shared/abi.rs:108— cranelift/codegen/src/isa/pulley_shared/abi.rs:108-138 | cranelift/codegen/src/isa/riscv64/abi.rs:144-171 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (30–31 lines × 2) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2652— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2652-2681 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2698-2728 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (27–29 lines × 2) crates/cranelift/src/func_environ/gc.rs:662— crates/cranelift/src/func_environ/gc.rs:662-690 | crates/cranelift/src/func_environ/gc.rs:717-743 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (28 lines × 2) crates/wasi/src/p2/filesystem.rs:18— crates/wasi/src/p2/filesystem.rs:18-45 | crates/wasi/src/p3/filesystem/mod.rs:202-229 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (25–27 lines × 2) src/commands/run.rs:100— src/commands/run.rs:100-126 | src/commands/serve.rs:255-279 — before extracting anything, compare `src/commands/run.rs` and `src/commands/serve.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 113 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 — extracting one helper per block leaves the fork in place.
Duplicated block (24–26 lines × 2) crates/environ/src/fact/trampoline.rs:1888— crates/environ/src/fact/trampoline.rs:1888-1913 | crates/environ/src/fact/trampoline.rs:2263-2286 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (26 lines × 2) crates/environ/src/module.rs:677— crates/environ/src/module.rs:677-702 | crates/environ/src/module.rs:729-754 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (24–25 lines × 2) cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:554— cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:554-578 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:823-846 — before extracting anything, compare `cranelift/codegen/src/isa/pulley_shared/inst/mod.rs` and `cranelift/codegen/src/isa/riscv64/inst/mod.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (23–24 lines × 3) cranelift/codegen/src/isa/s390x/inst/mod.rs:1752— cranelift/codegen/src/isa/s390x/inst/mod.rs:1752-1775 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2023-2045 | cranelift/codegen/src/isa/s390x/inst/mod.rs:2065-2088 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (22–23 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1280— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1280-1301 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1310-1332 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–23 lines × 2) crates/cranelift/src/func_environ/gc/drc.rs:623— crates/cranelift/src/func_environ/gc/drc.rs:623-645 | crates/cranelift/src/func_environ/gc/drc.rs:829-847 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (22 lines × 3) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2236— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2236-2257 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2322-2343 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2415-2436 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20–22 lines × 2) cranelift/codegen/src/isa/s390x/abi.rs:1517— cranelift/codegen/src/isa/s390x/abi.rs:1517-1538 | cranelift/codegen/src/isa/s390x/abi.rs:1587-1606 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (19–21 lines × 3) crates/cranelift/src/translate/code_translator.rs:3215— crates/cranelift/src/translate/code_translator.rs:3215-3235 | crates/cranelift/src/translate/code_translator.rs:3254-3272 | crates/cranelift/src/translate/code_translator.rs:3291-3309 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (19–21 lines × 2) cranelift/codegen/src/isa/pulley_shared/abi.rs:144— cranelift/codegen/src/isa/pulley_shared/abi.rs:144-164 | cranelift/codegen/src/isa/riscv64/abi.rs:176-194 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (16–21 lines × 2) crates/cranelift/src/compiler/component.rs:2120— crates/cranelift/src/compiler/component.rs:2120-2140 | crates/cranelift/src/compiler/component.rs:2217-2232 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:317— cranelift/codegen/src/isa/s390x/inst/emit.rs:317-336 | cranelift/codegen/src/isa/s390x/inst/emit.rs:368-387 | cranelift/codegen/src/isa/s390x/inst/emit.rs:415-434 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16–19 lines × 2) cranelift/codegen/src/isa/pulley_shared/abi.rs:1075— cranelift/codegen/src/isa/pulley_shared/abi.rs:1075-1090 | cranelift/codegen/src/isa/riscv64/abi.rs:1007-1025 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (17–19 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:245— cranelift/codegen/src/isa/s390x/inst/emit.rs:245-263 | cranelift/codegen/src/isa/s390x/inst/emit.rs:459-475 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (1–18 lines × 4) cranelift/assembler-x64/src/custom.rs:258— cranelift/assembler-x64/src/custom.rs:258-275 | cranelift/assembler-x64/src/custom.rs:276-276 | cranelift/assembler-x64/src/custom.rs:324-342 | cranelift/assembler-x64/src/custom.rs:343-343 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16–18 lines × 2) cranelift/codegen/src/isa/aarch64/inst/emit.rs:1557— cranelift/codegen/src/isa/aarch64/inst/emit.rs:1557-1572 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:1734-1751 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17–18 lines × 2) crates/cranelift/src/func_environ.rs:1720— crates/cranelift/src/func_environ.rs:1720-1736 | crates/cranelift/src/func_environ.rs:1770-1787 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (17 lines × 3) crates/wasmtime/src/runtime/vm/mmap.rs:307— crates/wasmtime/src/runtime/vm/mmap.rs:307-323 | crates/wasmtime/src/runtime/vm/mmap.rs:331-347 | crates/wasmtime/src/runtime/vm/mmap.rs:355-371 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (16 lines × 5) cranelift/codegen/src/isa/s390x/inst/emit.rs:246— cranelift/codegen/src/isa/s390x/inst/emit.rs:246-261 | cranelift/codegen/src/isa/s390x/inst/emit.rs:320-335 | cranelift/codegen/src/isa/s390x/inst/emit.rs:371-386 | cranelift/codegen/src/isa/s390x/inst/emit.rs:418-433 | cranelift/codegen/src/isa/s390x/inst/emit.rs:460-475 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–16 lines × 2) cranelift/codegen/src/isa/aarch64/abi.rs:1696— cranelift/codegen/src/isa/aarch64/abi.rs:1696-1711 | cranelift/codegen/src/isa/aarch64/abi.rs:1743-1752 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13–16 lines × 2) cranelift/codegen/src/isa/s390x/inst/emit.rs:3590— cranelift/codegen/src/isa/s390x/inst/emit.rs:3590-3605 | cranelift/codegen/src/isa/s390x/inst/emit.rs:3617-3629 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–16 lines × 2) cranelift/isle/veri/veri/src/bin/explorer.rs:58— cranelift/isle/veri/veri/src/bin/explorer.rs:58-73 | cranelift/isle/veri/veri/src/bin/status.rs:56-69 — before extracting anything, compare `cranelift/isle/veri/veri/src/bin/explorer.rs` and `cranelift/isle/veri/veri/src/bin/status.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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 — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 4) cranelift/codegen/src/isa/aarch64/mod.rs:88— cranelift/codegen/src/isa/aarch64/mod.rs:88-102 | cranelift/codegen/src/isa/pulley_shared/mod.rs:194-208 | cranelift/codegen/src/isa/riscv64/mod.rs:103-117 | cranelift/codegen/src/isa/s390x/mod.rs:88-102 — `cranelift/codegen/src/isa/aarch64/mod.rs` and `cranelift/codegen/src/isa/riscv64/mod.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (14–15 lines × 3) winch/codegen/src/isa/x64/masm.rs:3619— winch/codegen/src/isa/x64/masm.rs:3619-3632 | winch/codegen/src/isa/x64/masm.rs:3634-3648 | winch/codegen/src/isa/x64/masm.rs:3650-3663 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (12–14 lines × 3) cranelift/codegen/src/isa/pulley_shared/abi.rs:1010— cranelift/codegen/src/isa/pulley_shared/abi.rs:1010-1022 | cranelift/codegen/src/isa/riscv64/abi.rs:992-1003 | cranelift/codegen/src/isa/riscv64/abi.rs:1036-1049 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (10–14 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:1654— cranelift/codegen/src/isa/s390x/inst/emit.rs:1654-1667 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1671-1684 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1687-1696 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–14 lines × 2) crates/environ/src/fact/trampoline.rs:1809— crates/environ/src/fact/trampoline.rs:1809-1822 | crates/environ/src/fact/trampoline.rs:2176-2183 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12–13 lines × 3) cranelift/isle/veri/veri/src/bin/explorer.rs:53— cranelift/isle/veri/veri/src/bin/explorer.rs:53-65 | cranelift/isle/veri/veri/src/bin/graph.rs:50-61 | cranelift/isle/veri/veri/src/bin/status.rs:51-62 — before extracting anything, compare `cranelift/isle/veri/veri/src/bin/explorer.rs` and `cranelift/isle/veri/veri/src/bin/status.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 9) cranelift/isle/veri/veri/src/bin/count.rs:49— cranelift/isle/veri/veri/src/bin/count.rs:49-60 | cranelift/isle/veri/veri/src/bin/expand.rs:56-67 | cranelift/isle/veri/veri/src/bin/explorer.rs:37-48 | cranelift/isle/veri/veri/src/bin/graph.rs:34-45 | cranelift/isle/veri/veri/src/bin/reachable.rs:30-41 | cranelift/isle/veri/veri/src/bin/rule_stats.rs:26-37 | cranelift/isle/veri/veri/src/bin/spec_lines.rs:26-37 | cranelift/isle/veri/veri/src/bin/status.rs:36-47 | cranelift/isle/veri/veri/src/bin/trie_dump.rs:28-39 — before extracting anything, compare `cranelift/isle/veri/veri/src/bin/explorer.rs` and `cranelift/isle/veri/veri/src/bin/status.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 7) cranelift/codegen/src/isa/aarch64/inst/emit.rs:3415— cranelift/codegen/src/isa/aarch64/inst/emit.rs:3415-3426 | cranelift/codegen/src/isa/aarch64/inst/emit.rs:3466-3477 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:192-203 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:239-250 | cranelift/codegen/src/isa/pulley_shared/inst/emit.rs:308-319 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1205-1216 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:1256-1267 — there are 7 copies across 3 file(s) — 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 7 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (11–12 lines × 4) cranelift/codegen/src/isa/s390x/abi.rs:1494— cranelift/codegen/src/isa/s390x/abi.rs:1494-1504 | cranelift/codegen/src/isa/s390x/abi.rs:1533-1544 | cranelift/codegen/src/isa/s390x/abi.rs:1564-1574 | cranelift/codegen/src/isa/s390x/abi.rs:1601-1612 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–12 lines × 2) crates/cranelift/src/func_environ.rs:4007— crates/cranelift/src/func_environ.rs:4007-4013 | crates/cranelift/src/func_environ/gc/null.rs:54-65 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7–11 lines × 4) cranelift/codegen/src/isa/pulley_shared/abi.rs:998— cranelift/codegen/src/isa/pulley_shared/abi.rs:998-1005 | cranelift/codegen/src/isa/pulley_shared/abi.rs:1084-1091 | cranelift/codegen/src/isa/riscv64/abi.rs:990-996 | cranelift/codegen/src/isa/riscv64/abi.rs:1016-1026 — `cranelift/codegen/src/isa/pulley_shared/abi.rs` and `cranelift/codegen/src/isa/riscv64/abi.rs` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 11 separate duplicated blocks between them, totalling at least 169 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (10–11 lines × 4) cranelift/isle/veri/veri/src/encoded/rev.rs:20— cranelift/isle/veri/veri/src/encoded/rev.rs:20-30 | cranelift/isle/veri/veri/src/encoded/rev.rs:130-140 | cranelift/isle/veri/veri/src/encoded/rev.rs:222-231 | cranelift/isle/veri/veri/src/encoded/rev.rs:280-289 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9–11 lines × 3) cranelift/codegen/src/isa/riscv64/inst/emit.rs:2216— cranelift/codegen/src/isa/riscv64/inst/emit.rs:2216-2226 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2300-2310 | cranelift/codegen/src/isa/riscv64/inst/emit.rs:2388-2396 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (10–11 lines × 3) cranelift/isle/veri/veri/src/encoded/rev.rs:38— cranelift/isle/veri/veri/src/encoded/rev.rs:38-48 | cranelift/isle/veri/veri/src/encoded/rev.rs:148-158 | cranelift/isle/veri/veri/src/encoded/rev.rs:234-243 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (3–11 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:1084— cranelift/codegen/src/isa/s390x/inst/emit.rs:1084-1086 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1190-1200 | cranelift/codegen/src/isa/s390x/inst/emit.rs:1217-1227 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–11 lines × 2) crates/environ/src/fact/trampoline.rs:2000— crates/environ/src/fact/trampoline.rs:2000-2010 | crates/environ/src/fact/trampoline.rs:2084-2091 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 6) cranelift/isle/veri/veri/src/encoded/cls.rs:411— cranelift/isle/veri/veri/src/encoded/cls.rs:411-420 | cranelift/isle/veri/veri/src/encoded/cls.rs:467-476 | cranelift/isle/veri/veri/src/encoded/cls.rs:523-532 | cranelift/isle/veri/veri/src/encoded/cls.rs:579-588 | cranelift/isle/veri/veri/src/encoded/cls.rs:635-644 | cranelift/isle/veri/veri/src/encoded/cls.rs:691-700 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–10 lines × 4) cranelift/codegen/src/isa/aarch64/inst/mod.rs:945— cranelift/codegen/src/isa/aarch64/inst/mod.rs:945-950 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:192-201 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:215-224 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:335-340 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/pulley_shared/inst/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9–10 lines × 4) cranelift/isle/veri/veri/src/encoded/clz.rs:258— cranelift/isle/veri/veri/src/encoded/clz.rs:258-266 | cranelift/isle/veri/veri/src/encoded/clz.rs:590-599 | cranelift/isle/veri/veri/src/encoded/clz.rs:825-834 | cranelift/isle/veri/veri/src/encoded/clz.rs:1012-1020 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–10 lines × 3) winch/codegen/src/codegen/drc.rs:267— winch/codegen/src/codegen/drc.rs:267-276 | winch/codegen/src/codegen/gc.rs:221-226 | winch/codegen/src/codegen/mod.rs:2350-2359 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (3–10 lines × 3) cranelift/codegen/src/isa/x64/inst/mod.rs:468— cranelift/codegen/src/isa/x64/inst/mod.rs:468-470 | cranelift/codegen/src/isa/x64/inst/mod.rs:483-492 | cranelift/codegen/src/isa/x64/inst/mod.rs:506-515 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–10 lines × 2) crates/cranelift/src/func_environ.rs:5042— crates/cranelift/src/func_environ.rs:5042-5048 | crates/cranelift/src/func_environ.rs:5076-5085 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7–9 lines × 54) cranelift/isle/veri/veri/src/encoded/cls.rs:56— cranelift/isle/veri/veri/src/encoded/cls.rs:56-62 | cranelift/isle/veri/veri/src/encoded/cls.rs:104-110 | cranelift/isle/veri/veri/src/encoded/cls.rs:152-158 | cranelift/isle/veri/veri/src/encoded/cls.rs:200-206 | cranelift/isle/veri/veri/src/encoded/cls.rs:248-254 | cranelift/isle/veri/veri/src/encoded/cls.rs:296-302 | cranelift/isle/veri/veri/src/encoded/cls.rs:404-412 | cranelift/isle/veri/veri/src/encoded/cls.rs:460-468 | cranelift/isle/veri/veri/src/encoded/cls.rs:516-524 | cranelift/isle/veri/veri/src/encoded/cls.rs:572-580 | cranelift/isle/veri/veri/src/encoded/cls.rs:628-636 | cranelift/isle/veri/veri/src/encoded/cls.rs:684-692 | cranelift/isle/veri/veri/src/encoded/cls.rs:819-825 | cranelift/isle/veri/veri/src/encoded/cls.rs:867-873 | cranelift/isle/veri/veri/src/encoded/cls.rs:915-921 | cranelift/isle/veri/veri/src/encoded/cls.rs:963-969 | cranelift/isle/veri/veri/src/encoded/cls.rs:1011-1017 | cranelift/isle/veri/veri/src/encoded/cls.rs:1119-1127 | cranelift/isle/veri/veri/src/encoded/cls.rs:1175-1183 | cranelift/isle/veri/veri/src/encoded/cls.rs:1231-1239 | cranelift/isle/veri/veri/src/encoded/cls.rs:1287-1295 | cranelift/isle/veri/veri/src/encoded/cls.rs:1343-1351 | cranelift/isle/veri/veri/src/encoded/cls.rs:1478-1484 | cranelift/isle/veri/veri/src/encoded/cls.rs:1526-1532 | cranelift/isle/veri/veri/src/encoded/cls.rs:1574-1580 | cranelift/isle/veri/veri/src/encoded/cls.rs:1622-1628 | cranelift/isle/veri/veri/src/encoded/cls.rs:1726-1732 | cranelift/isle/veri/veri/src/encoded/cls.rs:1774-1780 | cranelift/isle/veri/veri/src/encoded/cls.rs:1822-1828 | cranelift/isle/veri/veri/src/encoded/cls.rs:1870-1876 | cranelift/isle/veri/veri/src/encoded/cls.rs:1997-2003 | cranelift/isle/veri/veri/src/encoded/cls.rs:2045-2051 | cranelift/isle/veri/veri/src/encoded/cls.rs:2093-2099 | cranelift/isle/veri/veri/src/encoded/cls.rs:2197-2203 | cranelift/isle/veri/veri/src/encoded/cls.rs:2245-2251 | cranelift/isle/veri/veri/src/encoded/cls.rs:2293-2299 | cranelift/isle/veri/veri/src/encoded/clz.rs:56-62 | cranelift/isle/veri/veri/src/encoded/clz.rs:104-110 | cranelift/isle/veri/veri/src/encoded/clz.rs:152-158 | cranelift/isle/veri/veri/src/encoded/clz.rs:200-206 | cranelift/isle/veri/veri/src/encoded/clz.rs:248-254 | cranelift/isle/veri/veri/src/encoded/clz.rs:296-302 | cranelift/isle/veri/veri/src/encoded/clz.rs:388-394 | cranelift/isle/veri/veri/src/encoded/clz.rs:436-442 | cranelift/isle/veri/veri/src/encoded/clz.rs:484-490 | cranelift/isle/veri/veri/src/encoded/clz.rs:532-538 | cranelift/isle/veri/veri/src/encoded/clz.rs:580-586 | cranelift/isle/veri/veri/src/encoded/clz.rs:671-677 | cranelift/isle/veri/veri/src/encoded/clz.rs:719-725 | cranelift/isle/veri/veri/src/encoded/clz.rs:767-773 | cranelift/isle/veri/veri/src/encoded/clz.rs:815-821 | cranelift/isle/veri/veri/src/encoded/clz.rs:906-912 | cranelift/isle/veri/veri/src/encoded/clz.rs:954-960 | cranelift/isle/veri/veri/src/encoded/clz.rs:1002-1008 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7–9 lines × 12) cranelift/isle/veri/veri/src/encoded/cls.rs:314— cranelift/isle/veri/veri/src/encoded/cls.rs:314-320 | cranelift/isle/veri/veri/src/encoded/cls.rs:706-714 | cranelift/isle/veri/veri/src/encoded/cls.rs:1029-1035 | cranelift/isle/veri/veri/src/encoded/cls.rs:1365-1373 | cranelift/isle/veri/veri/src/encoded/cls.rs:1640-1646 | cranelift/isle/veri/veri/src/encoded/cls.rs:1888-1894 | cranelift/isle/veri/veri/src/encoded/cls.rs:2111-2117 | cranelift/isle/veri/veri/src/encoded/cls.rs:2311-2317 | cranelift/isle/veri/veri/src/encoded/clz.rs:315-321 | cranelift/isle/veri/veri/src/encoded/clz.rs:599-605 | cranelift/isle/veri/veri/src/encoded/clz.rs:834-840 | cranelift/isle/veri/veri/src/encoded/clz.rs:1020-1026 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 10) cranelift/codegen/src/isa/aarch64/inst/mod.rs:945— cranelift/codegen/src/isa/aarch64/inst/mod.rs:945-953 | cranelift/codegen/src/isa/aarch64/inst/mod.rs:964-972 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:174-182 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:196-204 | cranelift/codegen/src/isa/pulley_shared/inst/mod.rs:219-227 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:335-343 | cranelift/codegen/src/isa/riscv64/inst/mod.rs:354-362 | cranelift/codegen/src/isa/s390x/inst/mod.rs:988-996 | cranelift/codegen/src/isa/x64/inst/mod.rs:1001-1009 | cranelift/codegen/src/isa/x64/inst/mod.rs:1035-1043 — before extracting anything, compare `cranelift/codegen/src/isa/aarch64/inst/mod.rs` and `cranelift/codegen/src/isa/pulley_shared/inst/mod.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 24) cranelift/isle/veri/veri/src/encoded/cls.rs:289— cranelift/isle/veri/veri/src/encoded/cls.rs:289-296 | cranelift/isle/veri/veri/src/encoded/cls.rs:326-333 | cranelift/isle/veri/veri/src/encoded/cls.rs:677-684 | cranelift/isle/veri/veri/src/encoded/cls.rs:722-729 | cranelift/isle/veri/veri/src/encoded/cls.rs:1004-1011 | cranelift/isle/veri/veri/src/encoded/cls.rs:1041-1048 | cranelift/isle/veri/veri/src/encoded/cls.rs:1336-1343 | cranelift/isle/veri/veri/src/encoded/cls.rs:1381-1388 | cranelift/isle/veri/veri/src/encoded/cls.rs:1615-1622 | cranelift/isle/veri/veri/src/encoded/cls.rs:1652-1659 | cranelift/isle/veri/veri/src/encoded/cls.rs:1863-1870 | cranelift/isle/veri/veri/src/encoded/cls.rs:1900-1907 | cranelift/isle/veri/veri/src/encoded/cls.rs:2086-2093 | cranelift/isle/veri/veri/src/encoded/cls.rs:2123-2130 | cranelift/isle/veri/veri/src/encoded/cls.rs:2286-2293 | cranelift/isle/veri/veri/src/encoded/cls.rs:2323-2330 | cranelift/isle/veri/veri/src/encoded/clz.rs:289-296 | cranelift/isle/veri/veri/src/encoded/clz.rs:327-334 | cranelift/isle/veri/veri/src/encoded/clz.rs:573-580 | cranelift/isle/veri/veri/src/encoded/clz.rs:611-618 | cranelift/isle/veri/veri/src/encoded/clz.rs:808-815 | cranelift/isle/veri/veri/src/encoded/clz.rs:846-853 | cranelift/isle/veri/veri/src/encoded/clz.rs:995-1002 | cranelift/isle/veri/veri/src/encoded/clz.rs:1032-1039 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7–8 lines × 4) cranelift/codegen/src/isa/s390x/inst/emit.rs:858— cranelift/codegen/src/isa/s390x/inst/emit.rs:858-865 | cranelift/codegen/src/isa/s390x/inst/emit.rs:882-888 | cranelift/codegen/src/isa/s390x/inst/emit.rs:906-913 | cranelift/codegen/src/isa/s390x/inst/emit.rs:930-936 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–8 lines × 3) cranelift/codegen/src/isa/s390x/inst/emit.rs:952— cranelift/codegen/src/isa/s390x/inst/emit.rs:952-959 | cranelift/codegen/src/isa/s390x/inst/emit.rs:973-979 | cranelift/codegen/src/isa/s390x/inst/emit.rs:996-1002 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 13) cranelift/isle/veri/veri/src/encoded/cls.rs:383— cranelift/isle/veri/veri/src/encoded/cls.rs:383-389 | cranelift/isle/veri/veri/src/encoded/cls.rs:406-412 | cranelift/isle/veri/veri/src/encoded/cls.rs:439-445 | cranelift/isle/veri/veri/src/encoded/cls.rs:462-468 | cranelift/isle/veri/veri/src/encoded/cls.rs:495-501 | cranelift/isle/veri/veri/src/encoded/cls.rs:518-524 | cranelift/isle/veri/veri/src/encoded/cls.rs:551-557 | cranelift/isle/veri/veri/src/encoded/cls.rs:574-580 | cranelift/isle/veri/veri/src/encoded/cls.rs:607-613 | cranelift/isle/veri/veri/src/encoded/cls.rs:630-636 | cranelift/isle/veri/veri/src/encoded/cls.rs:663-669 | cranelift/isle/veri/veri/src/encoded/cls.rs:686-692 | cranelift/isle/veri/veri/src/encoded/cls.rs:708-714 — all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 11) cranelift/isle/veri/veri/src/encoded/cls.rs:1098— cranelift/isle/veri/veri/src/encoded/cls.rs:1098-1104 | cranelift/isle/veri/veri/src/encoded/cls.rs:1121-1127 | cranelift/isle/veri/veri/src/encoded/cls.rs:1154-1160 | cranelift/isle/veri/veri/src/encoded/cls.rs:1177-1183 | cranelift/isle/veri/veri/src/encoded/cls.rs:1210-1216 | cranelift/isle/veri/veri/src/encoded/cls.rs:1233-1239 | cranelift/isle/veri/veri/src/encoded/cls.rs:1266-1272 | cranelift/isle/veri/veri/src/encoded/cls.rs:1289-1295 | cranelift/isle/veri/veri/src/encoded/cls.rs:1322-1328 | cranelift/isle/veri/veri/src/encoded/cls.rs:1345-1351 | cranelift/isle/veri/veri/src/encoded/cls.rs:1367-1373 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6–7 lines × 8) cranelift/isle/veri/veri/src/encoded/clz.rs:223— cranelift/isle/veri/veri/src/encoded/clz.rs:223-228 | cranelift/isle/veri/veri/src/encoded/clz.rs:507-512 | cranelift/isle/veri/veri/src/encoded/clz.rs:742-747 | cranelift/isle/veri/veri/src/encoded/clz.rs:929-934 | cranelift/isle/veri/veri/src/encoded/rev.rs:22-28 | cranelift/isle/veri/veri/src/encoded/rev.rs:132-138 | cranelift/isle/veri/veri/src/encoded/rev.rs:224-230 | cranelift/isle/veri/veri/src/encoded/rev.rs:282-288 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/clz.rs` and `cranelift/isle/veri/veri/src/encoded/rev.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 7) cranelift/isle/veri/veri/src/encoded/clz.rs:271— cranelift/isle/veri/veri/src/encoded/clz.rs:271-276 | cranelift/isle/veri/veri/src/encoded/clz.rs:555-560 | cranelift/isle/veri/veri/src/encoded/clz.rs:790-795 | cranelift/isle/veri/veri/src/encoded/clz.rs:977-982 | cranelift/isle/veri/veri/src/encoded/rev.rs:120-126 | cranelift/isle/veri/veri/src/encoded/rev.rs:212-218 | cranelift/isle/veri/veri/src/encoded/rev.rs:270-276 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/clz.rs` and `cranelift/isle/veri/veri/src/encoded/rev.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 6) cranelift/isle/veri/veri/src/encoded/clz.rs:175— cranelift/isle/veri/veri/src/encoded/clz.rs:175-180 | cranelift/isle/veri/veri/src/encoded/clz.rs:459-464 | cranelift/isle/veri/veri/src/encoded/clz.rs:694-699 | cranelift/isle/veri/veri/src/encoded/clz.rs:881-886 | cranelift/isle/veri/veri/src/encoded/rev.rs:58-64 | cranelift/isle/veri/veri/src/encoded/rev.rs:168-174 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/clz.rs` and `cranelift/isle/veri/veri/src/encoded/rev.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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 — extracting one helper per block leaves the fork in place.
Duplicated block (4–7 lines × 3) winch/codegen/src/codegen/mod.rs:847— winch/codegen/src/codegen/mod.rs:847-853 | winch/codegen/src/codegen/mod.rs:1143-1147 | winch/codegen/src/codegen/mod.rs:1789-1792 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 9) crates/environ/src/component/translate/inline.rs:725— crates/environ/src/component/translate/inline.rs:725-730 | crates/environ/src/component/translate/inline.rs:758-763 | crates/environ/src/component/translate/inline.rs:772-777 | crates/environ/src/component/translate/inline.rs:843-848 | crates/environ/src/component/translate/inline.rs:863-868 | crates/environ/src/component/translate/inline.rs:960-965 | crates/environ/src/component/translate/inline.rs:980-985 | crates/environ/src/component/translate/inline.rs:1058-1063 | crates/environ/src/component/translate/inline.rs:1074-1079 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 7) cranelift/codegen/meta/src/shared/instructions.rs:836— cranelift/codegen/meta/src/shared/instructions.rs:836-841 | cranelift/codegen/meta/src/shared/instructions.rs:1133-1138 | cranelift/codegen/meta/src/shared/instructions.rs:1151-1156 | cranelift/codegen/meta/src/shared/instructions.rs:1179-1184 | cranelift/codegen/meta/src/shared/instructions.rs:1197-1202 | cranelift/codegen/meta/src/shared/instructions.rs:1225-1230 | cranelift/codegen/meta/src/shared/instructions.rs:1243-1248 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (6 lines × 6) cranelift/codegen/meta/src/shared/instructions.rs:881— cranelift/codegen/meta/src/shared/instructions.rs:881-886 | cranelift/codegen/meta/src/shared/instructions.rs:900-905 | cranelift/codegen/meta/src/shared/instructions.rs:944-949 | cranelift/codegen/meta/src/shared/instructions.rs:963-968 | cranelift/codegen/meta/src/shared/instructions.rs:1007-1012 | cranelift/codegen/meta/src/shared/instructions.rs:1026-1031 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (3–6 lines × 3) crates/cranelift/src/func_environ.rs:5942— crates/cranelift/src/func_environ.rs:5942-5944 | crates/cranelift/src/func_environ.rs:5962-5967 | crates/cranelift/src/func_environ.rs:5983-5988 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5–6 lines × 2) winch/codegen/src/isa/x64/masm.rs:382— winch/codegen/src/isa/x64/masm.rs:382-387 | winch/codegen/src/isa/x64/masm.rs:424-428 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 14) cranelift/isle/veri/veri/src/encoded/rev.rs:25— cranelift/isle/veri/veri/src/encoded/rev.rs:25-30 | cranelift/isle/veri/veri/src/encoded/rev.rs:43-48 | cranelift/isle/veri/veri/src/encoded/rev.rs:61-66 | cranelift/isle/veri/veri/src/encoded/rev.rs:79-84 | cranelift/isle/veri/veri/src/encoded/rev.rs:97-102 | cranelift/isle/veri/veri/src/encoded/rev.rs:135-140 | cranelift/isle/veri/veri/src/encoded/rev.rs:153-158 | cranelift/isle/veri/veri/src/encoded/rev.rs:171-176 | cranelift/isle/veri/veri/src/encoded/rev.rs:189-194 | cranelift/isle/veri/veri/src/encoded/rev.rs:227-231 | cranelift/isle/veri/veri/src/encoded/rev.rs:239-243 | cranelift/isle/veri/veri/src/encoded/rev.rs:251-255 | cranelift/isle/veri/veri/src/encoded/rev.rs:285-289 | cranelift/isle/veri/veri/src/encoded/rev.rs:297-301 — all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 13) cranelift/isle/veri/veri/src/encoded/cls.rs:16— cranelift/isle/veri/veri/src/encoded/cls.rs:16-20 | cranelift/isle/veri/veri/src/encoded/cls.rs:360-364 | cranelift/isle/veri/veri/src/encoded/cls.rs:779-783 | cranelift/isle/veri/veri/src/encoded/cls.rs:1075-1079 | cranelift/isle/veri/veri/src/encoded/cls.rs:1438-1442 | cranelift/isle/veri/veri/src/encoded/cls.rs:1686-1690 | cranelift/isle/veri/veri/src/encoded/cls.rs:1957-1961 | cranelift/isle/veri/veri/src/encoded/cls.rs:2157-2161 | cranelift/isle/veri/veri/src/encoded/cls.rs:2377-2381 | cranelift/isle/veri/veri/src/encoded/clz.rs:16-20 | cranelift/isle/veri/veri/src/encoded/clz.rs:348-352 | cranelift/isle/veri/veri/src/encoded/clz.rs:631-635 | cranelift/isle/veri/veri/src/encoded/clz.rs:866-870 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 8) cranelift/isle/veri/veri/src/encoded/clz.rs:272— cranelift/isle/veri/veri/src/encoded/clz.rs:272-276 | cranelift/isle/veri/veri/src/encoded/clz.rs:556-560 | cranelift/isle/veri/veri/src/encoded/clz.rs:791-795 | cranelift/isle/veri/veri/src/encoded/clz.rs:978-982 | cranelift/isle/veri/veri/src/encoded/rev.rs:10-16 | cranelift/isle/veri/veri/src/encoded/rev.rs:120-126 | cranelift/isle/veri/veri/src/encoded/rev.rs:212-218 | cranelift/isle/veri/veri/src/encoded/rev.rs:270-276 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/clz.rs` and `cranelift/isle/veri/veri/src/encoded/rev.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 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 — extracting one helper per block leaves the fork in place.
Duplicated block (2–5 lines × 3) cranelift/codegen/src/isa/x64/inst/mod.rs:232— cranelift/codegen/src/isa/x64/inst/mod.rs:232-233 | winch/codegen/src/isa/x64/asm.rs:495-499 | winch/codegen/src/isa/x64/asm.rs:529-533 — there are 3 copies across 2 file(s) — 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.
Duplicated block (32 lines × 2) cranelift/codegen/src/isa/aarch64/inst/imms.rs:589— cranelift/codegen/src/isa/aarch64/inst/imms.rs:589-620 | cranelift/codegen/src/isa/s390x/inst/imms.rs:86-117 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (35 lines × 2) crates/wasmtime/src/runtime/gc/disabled/anyref.rs:14— crates/wasmtime/src/runtime/gc/disabled/anyref.rs:14-164 | crates/wasmtime/src/runtime/gc/disabled/externref.rs:17-51 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (27 lines × 3) crates/wasmtime/src/runtime/gc/disabled/arrayref.rs:17— crates/wasmtime/src/runtime/gc/disabled/arrayref.rs:17-47 | crates/wasmtime/src/runtime/gc/disabled/exnref.rs:23-77 | crates/wasmtime/src/runtime/gc/disabled/structref.rs:17-43 — 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 — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (14 lines × 6) crates/wasmtime/src/runtime/gc/enabled/anyref.rs:142— crates/wasmtime/src/runtime/gc/enabled/anyref.rs:142-155 | crates/wasmtime/src/runtime/gc/enabled/arrayref.rs:193-206 | crates/wasmtime/src/runtime/gc/enabled/eqref.rs:124-137 | crates/wasmtime/src/runtime/gc/enabled/exnref.rs:121-134 | crates/wasmtime/src/runtime/gc/enabled/externref.rs:125-138 | crates/wasmtime/src/runtime/gc/enabled/structref.rs:166-179 — before extracting anything, compare `crates/wasmtime/src/runtime/gc/enabled/anyref.rs` and `crates/wasmtime/src/runtime/gc/enabled/eqref.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 93 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 — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 5) crates/c-api/src/func.rs:40— crates/c-api/src/func.rs:40-45 | crates/c-api/src/global.rs:19-24 | crates/c-api/src/memory.rs:19-24 | crates/c-api/src/table.rs:23-28 | crates/c-api/src/types/func.rs:105-110 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times.
Duplicated block (7 lines × 5) crates/wasi/src/filesystem/primitives/file_type.rs:31— crates/wasi/src/filesystem/primitives/file_type.rs:31-37 | crates/wasi/src/filesystem/primitives/file_type.rs:43-49 | crates/wasi/src/filesystem/primitives/file_type.rs:55-61 | crates/wasi/src/filesystem/primitives/unix/mod.rs:259-265 | crates/wasi/src/filesystem/primitives/unix/mod.rs:267-273 — there are 5 copies across 2 file(s) — 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 5 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (15 lines × 3) crates/cranelift/src/translate/code_translator.rs:3903— crates/cranelift/src/translate/code_translator.rs:3903-3917 | crates/cranelift/src/translate/code_translator.rs:3954-3968 | crates/cranelift/src/translate/code_translator.rs:4047-4061 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8 lines × 54) cranelift/isle/veri/veri/src/encoded/cls.rs:26— cranelift/isle/veri/veri/src/encoded/cls.rs:26-33 | cranelift/isle/veri/veri/src/encoded/cls.rs:74-81 | cranelift/isle/veri/veri/src/encoded/cls.rs:122-129 | cranelift/isle/veri/veri/src/encoded/cls.rs:170-177 | cranelift/isle/veri/veri/src/encoded/cls.rs:218-225 | cranelift/isle/veri/veri/src/encoded/cls.rs:266-273 | cranelift/isle/veri/veri/src/encoded/cls.rs:370-377 | cranelift/isle/veri/veri/src/encoded/cls.rs:426-433 | cranelift/isle/veri/veri/src/encoded/cls.rs:482-489 | cranelift/isle/veri/veri/src/encoded/cls.rs:538-545 | cranelift/isle/veri/veri/src/encoded/cls.rs:594-601 | cranelift/isle/veri/veri/src/encoded/cls.rs:650-657 | cranelift/isle/veri/veri/src/encoded/cls.rs:789-796 | cranelift/isle/veri/veri/src/encoded/cls.rs:837-844 | cranelift/isle/veri/veri/src/encoded/cls.rs:885-892 | cranelift/isle/veri/veri/src/encoded/cls.rs:933-940 | cranelift/isle/veri/veri/src/encoded/cls.rs:981-988 | cranelift/isle/veri/veri/src/encoded/cls.rs:1085-1092 | cranelift/isle/veri/veri/src/encoded/cls.rs:1141-1148 | cranelift/isle/veri/veri/src/encoded/cls.rs:1197-1204 | cranelift/isle/veri/veri/src/encoded/cls.rs:1253-1260 | cranelift/isle/veri/veri/src/encoded/cls.rs:1309-1316 | cranelift/isle/veri/veri/src/encoded/cls.rs:1448-1455 | cranelift/isle/veri/veri/src/encoded/cls.rs:1496-1503 | cranelift/isle/veri/veri/src/encoded/cls.rs:1544-1551 | cranelift/isle/veri/veri/src/encoded/cls.rs:1592-1599 | cranelift/isle/veri/veri/src/encoded/cls.rs:1696-1703 | cranelift/isle/veri/veri/src/encoded/cls.rs:1744-1751 | cranelift/isle/veri/veri/src/encoded/cls.rs:1792-1799 | cranelift/isle/veri/veri/src/encoded/cls.rs:1840-1847 | cranelift/isle/veri/veri/src/encoded/cls.rs:1967-1974 | cranelift/isle/veri/veri/src/encoded/cls.rs:2015-2022 | cranelift/isle/veri/veri/src/encoded/cls.rs:2063-2070 | cranelift/isle/veri/veri/src/encoded/cls.rs:2167-2174 | cranelift/isle/veri/veri/src/encoded/cls.rs:2215-2222 | cranelift/isle/veri/veri/src/encoded/cls.rs:2263-2270 | cranelift/isle/veri/veri/src/encoded/clz.rs:26-33 | cranelift/isle/veri/veri/src/encoded/clz.rs:74-81 | cranelift/isle/veri/veri/src/encoded/clz.rs:122-129 | cranelift/isle/veri/veri/src/encoded/clz.rs:170-177 | cranelift/isle/veri/veri/src/encoded/clz.rs:218-225 | cranelift/isle/veri/veri/src/encoded/clz.rs:266-273 | cranelift/isle/veri/veri/src/encoded/clz.rs:358-365 | cranelift/isle/veri/veri/src/encoded/clz.rs:406-413 | cranelift/isle/veri/veri/src/encoded/clz.rs:454-461 | cranelift/isle/veri/veri/src/encoded/clz.rs:502-509 | cranelift/isle/veri/veri/src/encoded/clz.rs:550-557 | cranelift/isle/veri/veri/src/encoded/clz.rs:641-648 | cranelift/isle/veri/veri/src/encoded/clz.rs:689-696 | cranelift/isle/veri/veri/src/encoded/clz.rs:737-744 | cranelift/isle/veri/veri/src/encoded/clz.rs:785-792 | cranelift/isle/veri/veri/src/encoded/clz.rs:876-883 | cranelift/isle/veri/veri/src/encoded/clz.rs:924-931 | cranelift/isle/veri/veri/src/encoded/clz.rs:972-979 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 54) cranelift/isle/veri/veri/src/encoded/cls.rs:66— cranelift/isle/veri/veri/src/encoded/cls.rs:66-72 | cranelift/isle/veri/veri/src/encoded/cls.rs:114-120 | cranelift/isle/veri/veri/src/encoded/cls.rs:162-168 | cranelift/isle/veri/veri/src/encoded/cls.rs:210-216 | cranelift/isle/veri/veri/src/encoded/cls.rs:258-264 | cranelift/isle/veri/veri/src/encoded/cls.rs:306-312 | cranelift/isle/veri/veri/src/encoded/cls.rs:418-424 | cranelift/isle/veri/veri/src/encoded/cls.rs:474-480 | cranelift/isle/veri/veri/src/encoded/cls.rs:530-536 | cranelift/isle/veri/veri/src/encoded/cls.rs:586-592 | cranelift/isle/veri/veri/src/encoded/cls.rs:642-648 | cranelift/isle/veri/veri/src/encoded/cls.rs:698-704 | cranelift/isle/veri/veri/src/encoded/cls.rs:829-835 | cranelift/isle/veri/veri/src/encoded/cls.rs:877-883 | cranelift/isle/veri/veri/src/encoded/cls.rs:925-931 | cranelift/isle/veri/veri/src/encoded/cls.rs:973-979 | cranelift/isle/veri/veri/src/encoded/cls.rs:1021-1027 | cranelift/isle/veri/veri/src/encoded/cls.rs:1133-1139 | cranelift/isle/veri/veri/src/encoded/cls.rs:1189-1195 | cranelift/isle/veri/veri/src/encoded/cls.rs:1245-1251 | cranelift/isle/veri/veri/src/encoded/cls.rs:1301-1307 | cranelift/isle/veri/veri/src/encoded/cls.rs:1357-1363 | cranelift/isle/veri/veri/src/encoded/cls.rs:1488-1494 | cranelift/isle/veri/veri/src/encoded/cls.rs:1536-1542 | cranelift/isle/veri/veri/src/encoded/cls.rs:1584-1590 | cranelift/isle/veri/veri/src/encoded/cls.rs:1632-1638 | cranelift/isle/veri/veri/src/encoded/cls.rs:1736-1742 | cranelift/isle/veri/veri/src/encoded/cls.rs:1784-1790 | cranelift/isle/veri/veri/src/encoded/cls.rs:1832-1838 | cranelift/isle/veri/veri/src/encoded/cls.rs:1880-1886 | cranelift/isle/veri/veri/src/encoded/cls.rs:2007-2013 | cranelift/isle/veri/veri/src/encoded/cls.rs:2055-2061 | cranelift/isle/veri/veri/src/encoded/cls.rs:2103-2109 | cranelift/isle/veri/veri/src/encoded/cls.rs:2207-2213 | cranelift/isle/veri/veri/src/encoded/cls.rs:2255-2261 | cranelift/isle/veri/veri/src/encoded/cls.rs:2303-2309 | cranelift/isle/veri/veri/src/encoded/clz.rs:66-72 | cranelift/isle/veri/veri/src/encoded/clz.rs:114-120 | cranelift/isle/veri/veri/src/encoded/clz.rs:162-168 | cranelift/isle/veri/veri/src/encoded/clz.rs:210-216 | cranelift/isle/veri/veri/src/encoded/clz.rs:258-264 | cranelift/isle/veri/veri/src/encoded/clz.rs:306-313 | cranelift/isle/veri/veri/src/encoded/clz.rs:398-404 | cranelift/isle/veri/veri/src/encoded/clz.rs:446-452 | cranelift/isle/veri/veri/src/encoded/clz.rs:494-500 | cranelift/isle/veri/veri/src/encoded/clz.rs:542-548 | cranelift/isle/veri/veri/src/encoded/clz.rs:590-597 | cranelift/isle/veri/veri/src/encoded/clz.rs:681-687 | cranelift/isle/veri/veri/src/encoded/clz.rs:729-735 | cranelift/isle/veri/veri/src/encoded/clz.rs:777-783 | cranelift/isle/veri/veri/src/encoded/clz.rs:825-832 | cranelift/isle/veri/veri/src/encoded/clz.rs:916-922 | cranelift/isle/veri/veri/src/encoded/clz.rs:964-970 | cranelift/isle/veri/veri/src/encoded/clz.rs:1012-1018 — before extracting anything, compare `cranelift/isle/veri/veri/src/encoded/cls.rs` and `cranelift/isle/veri/veri/src/encoded/clz.rs` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 294 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 — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 7) cranelift/isle/veri/isaspec/src/instructions.rs:343— cranelift/isle/veri/isaspec/src/instructions.rs:343-349 | cranelift/isle/veri/isaspec/src/instructions.rs:778-784 | cranelift/isle/veri/isaspec/src/instructions.rs:1319-1325 | cranelift/isle/veri/isaspec/src/instructions.rs:1350-1356 | cranelift/isle/veri/isaspec/src/instructions.rs:1687-1693 | cranelift/isle/veri/isaspec/src/instructions.rs:1855-1861 | cranelift/isle/veri/isaspec/src/instructions.rs:2275-2281 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication· Near-duplicate member family (3 members, 67 shared lines) · ×1
Near-duplicate member family (3 members, 67 shared lines) crates/fuzzing/src/generators/gc_access.rs:1373— crates/fuzzing/src/generators/gc_access.rs:1373-1464 | crates/fuzzing/src/generators/gc_access.rs:1467-1538 | crates/fuzzing/src/generators/gc_access.rs:1541-1613 — These 3 members are variants of one another: a block of 67 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' 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. 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 3 times.
Near-duplicate member pair (54 shared lines) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:6— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:6-129 | crates/test-programs/src/bin/p1_file_read_write.rs:6-148 — These two members are variants of one another: 54 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' grain — 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.
Near-duplicate member pair (52 shared lines) crates/test-programs/src/bin/p2_tcp_sockopts.rs:23— crates/test-programs/src/bin/p2_tcp_sockopts.rs:23-80 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:27-84 — These two members are variants of one another: 52 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' grain — 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.
Near-duplicate member pair (45 shared lines) crates/test-programs/src/bin/p1_file_pread_pwrite.rs:131— crates/test-programs/src/bin/p1_file_pread_pwrite.rs:131-178 | crates/test-programs/src/bin/p1_file_read_write.rs:150-203 — These two members are variants of one another: 45 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' grain — 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.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×1
Edited copy of a member (22 corresponding lines) crates/test-programs/src/bin/p2_udp_sockopts.rs:14— crates/test-programs/src/bin/p2_udp_sockopts.rs:14-36 | crates/test-programs/src/bin/p3_sockets_udp_sockopts.rs:17-39 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — 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.
D4 · Code Duplication· Members sharing a duplicated core (15 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (15 members, 50+ identical tokens) crates/test-programs/src/bin/p1_fd_flags_set.rs:147— crates/test-programs/src/bin/p1_fd_flags_set.rs:147-169 | crates/test-programs/src/bin/p1_fd_readdir.rs:272-296 | crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs:60-95 | crates/test-programs/src/bin/p1_file_pread_pwrite.rs:216-241 | crates/test-programs/src/bin/p1_file_read_write.rs:205-231 | crates/test-programs/src/bin/p1_file_rename_across_perms.rs:57-92 | crates/test-programs/src/bin/p1_file_seek_tell.rs:128-154 | crates/test-programs/src/bin/p1_file_truncation.rs:66-90 | crates/test-programs/src/bin/p1_file_unbuffered_write.rs:67-91 | crates/test-programs/src/bin/p1_file_write.rs:135-159 | crates/test-programs/src/bin/p1_path_open_lots.rs:106-130 | crates/test-programs/src/bin/p1_poll_oneoff_files.rs:283-307 | crates/test-programs/src/bin/p1_readlink.rs:61-83 | crates/test-programs/src/bin/p1_renumber.rs:144-166 | crates/test-programs/src/bin/p1_stat_extreme_host_mtime.rs:30-49 — These 15 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 — 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 15 times. The repair is at the members' 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. 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 15 times.
Duplicated block (90 lines × 2) crates/test-programs/src/bin/p2_http_outbound_request_invalid_header.rs:4— crates/test-programs/src/bin/p2_http_outbound_request_invalid_header.rs:4-93 | crates/test-programs/src/bin/p3_http_outbound_request_invalid_header.rs:10-99 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (29–34 lines × 3) crates/fuzzing/src/generators/gc_access.rs:1431— crates/fuzzing/src/generators/gc_access.rs:1431-1464 | crates/fuzzing/src/generators/gc_access.rs:1510-1538 | crates/fuzzing/src/generators/gc_access.rs:1585-1613 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (29 lines × 2) crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs:64— crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs:64-92 | crates/test-programs/src/bin/p1_file_rename_across_perms.rs:61-89 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p1_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 — extracting one helper per block leaves the fork in place.
Duplicated block (27–28 lines × 2) crates/test-util/src/component_fuzz.rs:390— crates/test-util/src/component_fuzz.rs:390-416 | crates/test-util/src/component_fuzz.rs:567-594 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (27 lines × 2) crates/test-programs/src/bin/p1_fd_flags_set.rs:69— crates/test-programs/src/bin/p1_fd_flags_set.rs:69-95 | crates/test-programs/src/bin/p1_fd_flags_set.rs:110-136 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (25 lines × 2) crates/test-programs/src/bin/p2_nofollow_errors.rs:9— crates/test-programs/src/bin/p2_nofollow_errors.rs:9-33 | crates/test-programs/src/bin/p2_nofollow_errors.rs:65-89 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (18–24 lines × 3) crates/fuzzing/src/generators/gc_access.rs:1407— crates/fuzzing/src/generators/gc_access.rs:1407-1430 | crates/fuzzing/src/generators/gc_access.rs:1492-1509 | crates/fuzzing/src/generators/gc_access.rs:1567-1584 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (23 lines × 4) crates/test-programs/src/bin/p3_sockets_tcp_states.rs:32— crates/test-programs/src/bin/p3_sockets_tcp_states.rs:32-54 | crates/test-programs/src/bin/p3_sockets_tcp_states.rs:81-103 | crates/test-programs/src/bin/p3_sockets_tcp_states.rs:141-163 | crates/test-programs/src/bin/p3_sockets_tcp_states.rs:197-219 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (20–23 lines × 2) crates/fuzzing/src/generators/gc_access.rs:1375— crates/fuzzing/src/generators/gc_access.rs:1375-1397 | crates/fuzzing/src/generators/gc_access.rs:1543-1562 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (21–23 lines × 2) crates/test-programs/src/bin/p2_api_proxy_streaming.rs:175— crates/test-programs/src/bin/p2_api_proxy_streaming.rs:175-197 | crates/test-programs/src/bin/p2_api_proxy_streaming.rs:259-279 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–21 lines × 2) crates/test-programs/src/bin/async_cancel_caller.rs:252— crates/test-programs/src/bin/async_cancel_caller.rs:252-265 | crates/test-programs/src/bin/async_cancel_caller.rs:304-324 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10–19 lines × 2) crates/test-programs/src/bin/async_cancel_transmit.rs:237— crates/test-programs/src/bin/async_cancel_transmit.rs:237-255 | crates/test-programs/src/bin/async_synchronous_transmit.rs:188-197 — before extracting anything, compare `crates/test-programs/src/bin/async_cancel_transmit.rs` and `crates/test-programs/src/bin/async_synchronous_transmit.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 12) crates/test-programs/src/bin/p1_fd_flags_set.rs:151— crates/test-programs/src/bin/p1_fd_flags_set.rs:151-165 | crates/test-programs/src/bin/p1_fd_readdir.rs:276-289 | crates/test-programs/src/bin/p1_file_pread_pwrite.rs:220-236 | crates/test-programs/src/bin/p1_file_read_write.rs:209-225 | crates/test-programs/src/bin/p1_file_seek_tell.rs:132-148 | crates/test-programs/src/bin/p1_file_truncation.rs:70-86 | crates/test-programs/src/bin/p1_file_unbuffered_write.rs:71-87 | crates/test-programs/src/bin/p1_file_write.rs:139-155 | crates/test-programs/src/bin/p1_path_open_lots.rs:110-126 | crates/test-programs/src/bin/p1_poll_oneoff_files.rs:287-303 | crates/test-programs/src/bin/p1_readlink.rs:65-78 | crates/test-programs/src/bin/p1_renumber.rs:148-161 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_pread_pwrite.rs` and `crates/test-programs/src/bin/p1_file_read_write.rs` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 133 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 — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 4) crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:67— crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs:67-80 | crates/test-programs/src/bin/p2_file_rename_across_perms.rs:59-72 | crates/test-programs/src/bin/p3_file_hardlink_across_perms.rs:73-86 | crates/test-programs/src/bin/p3_file_rename_across_perms.rs:68-81 — before extracting anything, compare `crates/test-programs/src/bin/p2_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p2_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 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 — extracting one helper per block leaves the fork in place.
Duplicated block (12–13 lines × 15) crates/test-programs/src/bin/p1_fd_flags_set.rs:148— crates/test-programs/src/bin/p1_fd_flags_set.rs:148-159 | crates/test-programs/src/bin/p1_fd_readdir.rs:273-285 | crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs:61-73 | crates/test-programs/src/bin/p1_file_pread_pwrite.rs:217-229 | crates/test-programs/src/bin/p1_file_read_write.rs:206-218 | crates/test-programs/src/bin/p1_file_rename_across_perms.rs:58-70 | crates/test-programs/src/bin/p1_file_seek_tell.rs:129-141 | crates/test-programs/src/bin/p1_file_truncation.rs:67-79 | crates/test-programs/src/bin/p1_file_unbuffered_write.rs:68-80 | crates/test-programs/src/bin/p1_file_write.rs:136-148 | crates/test-programs/src/bin/p1_path_open_lots.rs:107-119 | crates/test-programs/src/bin/p1_poll_oneoff_files.rs:284-296 | crates/test-programs/src/bin/p1_readlink.rs:62-74 | crates/test-programs/src/bin/p1_renumber.rs:145-157 | crates/test-programs/src/bin/p1_stat_extreme_host_mtime.rs:31-42 — before extracting anything, compare `crates/test-programs/src/bin/p1_file_hardlink_across_perms.rs` and `crates/test-programs/src/bin/p1_file_rename_across_perms.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 66 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 — extracting one helper per block leaves the fork in place.
Duplicated block (3–13 lines × 3) crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:135— crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:135-147 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:167-169 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:199-211 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11–12 lines × 3) crates/fuzzing/src/generators/gc_access.rs:660— crates/fuzzing/src/generators/gc_access.rs:660-670 | crates/fuzzing/src/generators/gc_access.rs:685-695 | crates/fuzzing/src/generators/gc_access.rs:699-710 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–9 lines × 10) crates/fuzzing/src/oracles/api.rs:213— crates/fuzzing/src/oracles/api.rs:213-220 | crates/fuzzing/src/oracles/api.rs:251-259 | crates/fuzzing/src/oracles/api.rs:318-325 | crates/fuzzing/src/oracles/api.rs:335-342 | crates/fuzzing/src/oracles/api.rs:383-391 | crates/fuzzing/src/oracles/api.rs:587-595 | crates/fuzzing/src/oracles/api.rs:652-659 | crates/fuzzing/src/oracles/api.rs:673-681 | crates/fuzzing/src/oracles/api.rs:770-778 | crates/fuzzing/src/oracles/api.rs:882-889 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (8–9 lines × 3) crates/fuzzing/src/generators/gc_access.rs:1392— crates/fuzzing/src/generators/gc_access.rs:1392-1400 | crates/fuzzing/src/generators/gc_access.rs:1483-1490 | crates/fuzzing/src/generators/gc_access.rs:1558-1565 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (4–9 lines × 3) crates/test-programs/src/bin/p3_sockets_udp_states.rs:23— crates/test-programs/src/bin/p3_sockets_udp_states.rs:23-31 | crates/test-programs/src/bin/p3_sockets_udp_states.rs:50-57 | crates/test-programs/src/bin/p3_sockets_udp_states.rs:78-81 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7–9 lines × 2) crates/test-programs/src/bin/p3_sockets_udp_states.rs:43— crates/test-programs/src/bin/p3_sockets_udp_states.rs:43-51 | crates/test-programs/src/bin/p3_sockets_udp_states.rs:70-76 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 5) crates/fuzzing/src/oracles/api.rs:200— crates/fuzzing/src/oracles/api.rs:200-207 | crates/fuzzing/src/oracles/api.rs:305-312 | crates/fuzzing/src/oracles/api.rs:464-472 | crates/fuzzing/src/oracles/api.rs:491-498 | crates/fuzzing/src/oracles/api.rs:504-511 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (4–8 lines × 3) crates/test-programs/src/bin/p2_udp_states.rs:16— crates/test-programs/src/bin/p2_udp_states.rs:16-23 | crates/test-programs/src/bin/p2_udp_states.rs:43-50 | crates/test-programs/src/bin/p2_udp_states.rs:73-76 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (7 lines × 6) crates/test-programs/src/bin/p2_tcp_sockopts.rs:120— crates/test-programs/src/bin/p2_tcp_sockopts.rs:120-126 | crates/test-programs/src/bin/p2_tcp_sockopts.rs:160-166 | crates/test-programs/src/bin/p2_tcp_sockopts.rs:204-210 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:124-130 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:157-163 | crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs:191-197 — before extracting anything, compare `crates/test-programs/src/bin/p2_tcp_sockopts.rs` and `crates/test-programs/src/bin/p3_sockets_tcp_sockopts.rs` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 77 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 — extracting one helper per block leaves the fork in place.
Duplicated block (5–7 lines × 3) crates/test-programs/src/bin/p2_tcp_states.rs:61— crates/test-programs/src/bin/p2_tcp_states.rs:61-67 | crates/test-programs/src/bin/p2_tcp_states.rs:174-179 | crates/test-programs/src/bin/p2_udp_states.rs:35-39 — there are 3 copies across 2 file(s) — 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.
Duplicated block (4–6 lines × 3) crates/test-programs/src/bin/p2_udp_connect.rs:11— crates/test-programs/src/bin/p2_udp_connect.rs:11-14 | crates/test-programs/src/bin/p2_udp_connect.rs:140-145 | crates/test-programs/src/bin/p2_udp_send_too_much.rs:13-18 — there are 3 copies across 2 file(s) — 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.
Duplicated block (5 lines × 5) crates/fuzzing/src/generators/api.rs:772— crates/fuzzing/src/generators/api.rs:772-776 | crates/fuzzing/src/generators/api.rs:860-864 | crates/fuzzing/src/generators/api.rs:1003-1007 | crates/fuzzing/src/generators/api.rs:1063-1067 | crates/fuzzing/src/generators/api.rs:1124-1128 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (11 lines × 9) crates/test-programs/src/bin/p2_interesting_paths.rs:4— crates/test-programs/src/bin/p2_interesting_paths.rs:4-14 | crates/test-programs/src/bin/p2_path_exists.rs:6-16 | crates/test-programs/src/bin/p2_path_link.rs:9-19 | crates/test-programs/src/bin/p2_path_open_create_existing.rs:4-14 | crates/test-programs/src/bin/p2_path_open_read_write.rs:5-15 | crates/test-programs/src/bin/p2_path_rename.rs:4-14 | crates/test-programs/src/bin/p2_path_symlink_trailing_slashes.rs:4-14 | crates/test-programs/src/bin/p2_remove_directory.rs:4-14 | crates/test-programs/src/bin/p2_unlink_file_trailing_slashes.rs:4-14 — 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 — a file they already depend on, or a new one alongside them — and call it from all 9 call sites, so a change lands once.
Sync-over-async blocking crates/wasi/src/p1.rs:2308— `poll_oneoff` is async and calls thread::sleep — a blocking call inside async code stalls the executor thread, and every task scheduled on it for as long as it runs.
Blocking `thread::sleep` inside an `async` body crates/wasi/src/p1.rs:2333— This `async` body is polled on an executor's worker thread, and `std::thread::sleep` blocks that thread: for the whole delay no other task scheduled on it makes progress — the Rust form of blocking on a task. Use `tokio::time::sleep(…).await` (or the runtime's own timer), which suspends only this task. Where the blocking work is not a sleep but a synchronous call that cannot be made async, move it off the executor with `tokio::task::spawn_blocking(…).await`.
Orphaned file cranelift/codegen/src/loop_analysis.rs:1— 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.
Orphaned file cranelift/codegen/src/ir/builder.rs:1— 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.
Orphaned file crates/wasi-nn/src/backend/winml.rs:1— 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.
Orphaned file cranelift/codegen/src/data_value.rs:1— 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.
Orphaned file cranelift/codegen/src/remove_constant_phis.rs:1— 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.
Orphaned file cranelift/codegen/src/ir/constant.rs:1— 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.
Orphaned file cranelift/codegen/src/ir/extfunc.rs:1— 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.
Orphaned file crates/wasi-nn/src/wit.rs:1— 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.
Orphaned file crates/fuzzing/src/generators/value.rs:1— 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.
Orphaned file cranelift/codegen/src/isa/unwind/winarm64.rs:1— 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.
Orphaned file cranelift/entity/src/sparse.rs:1— 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.
Orphaned file cranelift/codegen/meta/src/cdsl/types.rs:1— 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.
Orphaned file crates/wasmtime/src/runtime/vm/byte_count.rs:1— 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.
Orphaned file cranelift/filetests/src/runner.rs:1— 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.
Orphaned file cranelift/codegen/src/ir/condcodes.rs:1— 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.
Orphaned file crates/fuzzing/wasm-spec-interpreter/src/with_library.rs:1— 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.
Orphaned file crates/wmemcheck/src/lib.rs:1— 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.
Orphaned file cranelift/interpreter/src/frame.rs:1— 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.
Orphaned file cranelift/jit/src/memory/arena.rs:1— 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.
Orphaned file cranelift/object/src/unwind.rs:1— 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.
Orphaned file cranelift/codegen/src/isa/s390x/inst/args.rs:1— 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.
Orphaned file cranelift/codegen/meta/src/cdsl/settings.rs:1— 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.
Orphaned file cranelift/codegen/src/incremental_cache.rs:1— 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.
Orphaned file crates/wasi-tls/src/p3/util/deferred.rs:1— 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.
Orphaned file crates/cranelift/src/debug/transform/synthetic.rs:1— 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.
Interpolated log message defeats structured logging crates/wasi-nn/src/wit.rs:78— `error!` at line 78 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `error!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-nn/src/wit.rs:176— `debug!` at line 176 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-nn/src/wit.rs:202— `debug!` at line 202 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-nn/src/wit.rs:249— `debug!` at line 249 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-nn/src/witx.rs:115— `debug!` at line 115 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:342— `warn!` at line 342 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:352— `warn!` at line 352 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:375— `warn!` at line 375 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:404— `warn!` at line 404 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:429— `warn!` at line 429 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:439— `warn!` at line 439 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:462— `warn!` at line 462 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/ctx.rs:491— `warn!` at line 491 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/p2/error.rs:151— `warn!` at line 151 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/p2/error.rs:165— `warn!` at line 165 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/p2/error.rs:183— `warn!` at line 183 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi-http/src/p2/http_impl.rs:114— `warn!` at line 114 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/filesystem.rs:465— `debug!` at line 465 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/p1.rs:910— `debug!` at line 910 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/sockets/ip_name_lookup.rs:45— `debug!` at line 45 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/sockets/mod.rs:353— `debug!` at line 353 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/sockets/mod.rs:404— `debug!` at line 404 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/p3/sockets/conv.rs:152— `debug!` at line 152 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/p3/sockets/conv.rs:201— `debug!` at line 201 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `debug!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Interpolated log message defeats structured logging crates/wasi/src/p3/cli/host.rs:32— `warn!` at line 32 is handed a format string with `{…}` values in it, so tracing records one finished `message` field — 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: `warn!(order_id = %order_id, status = ?status, "order status updated")` (`%` records a value by its `Display`, `?` by its `Debug`, 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: `error = %err`.
Duplicated predicate crates/wasmtime/src/runtime/gc/enabled/anyref.rs:567— `!gc_ref.is_i31() && store .require_gc_store()` appears character-identically in 2 files — crates/wasmtime/src/runtime/gc/enabled/anyref.rs, crates/wasmtime/src/runtime/gc/enabled/eqref.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate cranelift/codegen/src/isle_prelude.rs:439— `!ty.is_vector() && !ty.is_dynamic_vector()` appears character-identically in 2 files — cranelift/codegen/src/isle_prelude.rs, cranelift/reader/src/parser.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate winch/codegen/src/isa/aarch64/masm.rs:1457— `(kind == Eq || kind == Ne) && (rlhs == rrhs)` appears character-identically in 2 files — winch/codegen/src/isa/aarch64/masm.rs, winch/codegen/src/isa/x64/masm.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate cranelift/codegen/src/isa/aarch64/abi.rs:394— `args_or_rets == ArgsOrRets::Rets && !flags.enable_multi_ret_implicit_sret()` appears character-identically in 5 files — cranelift/codegen/src/isa/aarch64/abi.rs, cranelift/codegen/src/isa/pulley_shared/abi.rs, cranelift/codegen/src/isa/riscv64/abi.rs, cranelift/codegen/src/isa/s390x/abi.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate cranelift/codegen/src/dominator_tree.rs:342— `block_a != block_b && self.block_dominates(block_a, block_b)` appears character-identically in 2 files — cranelift/codegen/src/dominator_tree.rs, cranelift/codegen/src/dominator_tree/simple.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate cranelift/codegen/src/isa/pulley_shared/abi.rs:419— `call_conv == isa::CallConv::Tail && frame_layout.tail_args_size > 0` appears character-identically in 2 files — cranelift/codegen/src/isa/pulley_shared/abi.rs, cranelift/codegen/src/isa/riscv64/abi.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate crates/wasi/src/p2/host/filesystem.rs:195— `err.raw_os_error() == Some(ERROR_SHARING_VIOLATION as i32) || err.raw_os_error() == Some(ERROR_ACCESS_DENIED as i32)` appears character-identically in 2 files — crates/wasi/src/p2/host/filesystem.rs, crates/wasi/src/p3/filesystem/host.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate cranelift/codegen/src/isa/pulley_shared/abi.rs:526— `flags.preserve_frame_pointers() || function_calls != FunctionCalls::None || incoming_args_size > 0 || clobber_size > 0 || fixed_frame_storag…` appears character-identically in 2 files — cranelift/codegen/src/isa/pulley_shared/abi.rs, cranelift/codegen/src/isa/riscv64/abi.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate crates/wasi/src/filesystem/primitives/unix/oflags.rs:81— `options.truncate || options.create || options.create_new` appears character-identically in 2 files — crates/wasi/src/filesystem/primitives/unix/oflags.rs, crates/wasi/src/filesystem/primitives/windows/open_options_ext.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate crates/wasmtime/src/runtime/vm/sys/unix/machports.rs:149— `range.start.addr() <= faulting_addr && faulting_addr < range.end.addr()` appears character-identically in 2 files — crates/wasmtime/src/runtime/vm/sys/unix/machports.rs, crates/wasmtime/src/runtime/vm/sys/unix/signals.rs. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Silent fallback default on Err cranelift/src/bugpoint.rs:924— `get_panic_string` turns every `Err` into `"Box<Any>".to_string()` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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.
Silent fallback default on Err crates/gdbstub-component/src/target.rs:383— `read_wasm_local` turns every `Err` into `Ok(0)` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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.
Silent fallback default on Err crates/gdbstub-component/src/target.rs:405— `read_wasm_global` turns every `Err` into `Ok(0)` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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.
Silent fallback default on Err crates/gdbstub-component/src/target.rs:429— `read_wasm_stack` turns every `Err` into `Ok(0)` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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.
Silent fallback default on Err crates/wasi-http/src/p2/types_impl.rs:74— `get` turns every `Err` into `Ok(vec![])` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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.
Silent fallback default on Err crates/wasi-http/src/p3/body.rs:57— `guest_body_result` turns every `Err` into `Ok(Ok(()))` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with `?`. 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.
Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 38 significant file(s) lose their only recent owner: crates/wiggle/generate/src/config.rs, crates/wasmtime/src/runtime/limits.rs, crates/fuzzing/src/single_module_fuzzer.rs, crates/wasi/src/cli/locked_async.rs, crates/wasmtime/src/runtime/component/concurrent/future_stream_any.rs, crates/wasmtime/src/runtime/store/async_.rs, crates/wasmtime/src/runtime/component/resources/host_static.rs, crates/wasmtime/src/runtime/component/concurrent/abort.rs (+30 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #2 — If anonymized user #2 becomes unavailable, 20 significant file(s) lose their only recent owner: cranelift/codegen/src/alias_analysis.rs, crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs, src/commands/hot_blocks.rs, cranelift/codegen/src/post_dominator_tree.rs, crates/environ/src/collections/btree_map.rs, crates/wasmtime/src/runtime/vm/gc/gc_ref.rs, cranelift/codegen/src/cursor.rs, crates/fuzzing/src/oom.rs (+12 more). Pair on, review, or document these before any departure.
Off-boarding risk: anonymized user #3 — If anonymized user #3 becomes unavailable, 5 significant file(s) lose their only recent owner: cranelift/isle/veri/veri/src/type_inference.rs, cranelift/isle/veri/veri/src/expand.rs, cranelift/isle/veri/veri/src/types.rs, cranelift/isle/veri/veri/src/debug.rs, cranelift/isle/veri/isaspec/src/spec.rs. Pair on, review, or document these before any departure.
README/code drift cranelift/isle/veri/README.md:54— cranelift/isle/veri/README.md links to `../../REDACTED`, but `cranelift/REDACTED` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift cranelift/isle/veri/README.md:56— cranelift/isle/veri/README.md links to `../../REDACTED`, but `cranelift/REDACTED` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
D16 · Bus Factor· Further sole-owners (lower concentration) · ×1
Further sole-owners (lower concentration) — 7 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (70 single-owned of 941 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; 941 of the 1304 production source files in this repository met that bar). They are anonymized user #4 (1 file(s)), 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)) (+1 more) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: crates/fuzzing/src/generators/gc_ops/ops.rs, cranelift/codegen/src/opts/div_const.rs, crates/cache/src/worker/tests.rs, cranelift/srcgen/src/lib.rs, crates/gdbstub-component/src/lib.rs, winch/codegen/src/isa/x64/regs.rs, crates/wasi-tls/src/providers/openssl.rs.
No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` 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 (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — 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 `docs/adr/`.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 6 of 72 project(s) overshoot their size bounds, lowering Project Cohesion to 8.4/10. The most over is `crates/wasmtime` (111653 LoC, 628 module-visible types across 40 directories). Review these for cohesion — 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.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
REDACTED
D34 · Knowledge Freshness· Further orphaned files (smaller) · ×1
Further orphaned files (smaller) — 81 smaller file(s) also have no living knowledge — folded into the freshness score and metrics rather than raised one row each — most significant first: cranelift/codegen/src/loop_analysis.rs, cranelift/codegen/src/ir/builder.rs, crates/wasi-nn/src/backend/winml.rs, cranelift/codegen/src/data_value.rs, cranelift/codegen/src/remove_constant_phis.rs, cranelift/codegen/src/ir/constant.rs, cranelift/codegen/src/ir/extfunc.rs, crates/wasi-nn/src/wit.rs (and 73 more) (89 orphaned of 942 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; 942 of the 1304 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.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` 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.
Logging is not universal — Only 40/47 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `cranelift/assembler-x64`, `cranelift/assembler-x64/meta`, `cranelift/fuzzgen`, `cranelift/serde`, `crates/misc/publish` and 2 more.
Changelog looks stale/thin — The changelog this check read carries 1 versioned entry, against a bar of 3. Counted as either the distinct `x.y.z` versions it names (a link's target is not counted) or its version-shaped section headings (`## [1.2.0]`, `## V14.x.x`, `## Updates in 8.0.x`), whichever is the larger — so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read — release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository — are not counted here, and this row is about what is re-findable in the tree rather than about how often you release.
No app-layer HTTPS enforcement detected — This repository starts an HTTP server and nothing in its Rust source or committed `Rocket.toml` secures the transport: no TLS served (actix-web `bind_rustls`/`bind_openssl`, axum-server `bind_rustls` with a `RustlsConfig`, tonic `ServerTlsConfig`, a `TlsAcceptor`, Rocket's `[default.tls]`), no `Strict-Transport-Security` header, no `X-Forwarded-Proto` read from a TLS-terminating proxy — so its traffic may cross the network in clear text. (−2.0 on this card.) The server: `.serve_connection(` (src/commands/serve.rs:1354).
No security response headers detected — None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is set on a response this repository's Rust server sends — defense in depth, even when a proxy could set them. (−2.0 on this card.) The server: `.serve_connection(` (src/commands/serve.rs:1354).
X5 · Nullable reference types· Strict null checking is not enabled everywhere the repository type-checks · ×1
Strict null checking is not enabled everywhere the repository type-checks — 0/2 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
Outdated: anyhow — `anyhow` is locked at 1.0.103 but 1.0.104 is the current stable release on crates.io, and it already satisfies the `"1.0.103"` requirement declared in cranelift/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p anyhow` and commit the updated REDACTED.
Outdated: arbitrary — `arbitrary` is locked at 1.4.2 but 1.5.0 is the current stable release on crates.io, and it already satisfies the `"1.4.2"` requirement declared in fuzz/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p arbitrary` and commit the updated REDACTED.
Outdated: async-trait — `async-trait` is locked at 0.1.89 but 0.1.92 is the current stable release on crates.io, and it already satisfies the `"0.1.89"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p async-trait` and commit the updated REDACTED.
Outdated: bitflags — `bitflags` is locked at 2.11.1 but 2.13.2 is the current stable release on crates.io, and it already satisfies the `"2.9.4"` requirement declared in crates/wasi-preview1-component-adapter/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p bitflags` and commit the updated REDACTED.
Outdated: bumpalo — `bumpalo` is locked at 3.20.2 but 3.20.3 is the current stable release on crates.io, and it already satisfies the `"3.20.2"` requirement declared in cranelift/codegen/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p bumpalo` and commit the updated REDACTED.
Outdated: bytes — `bytes` is locked at 1.11.1 but 1.12.1 is the current stable release on crates.io, and it already satisfies the `"1.11.1"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p bytes` and commit the updated REDACTED.
Outdated: cc — `cc` is locked at 1.2.41 but 1.10.0 is the current stable release on crates.io, and it already satisfies the `"1.0"` requirement declared in crates/fiber/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p cc` and commit the updated REDACTED.
Outdated: clap — `clap` is locked at 4.5.48 but 4.6.7 is the current stable release on crates.io, and it already satisfies the `"4.5.48"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p clap` and commit the updated REDACTED.
Outdated: clap_complete — `clap_complete` is locked at 4.5.58 but 4.6.11 is the current stable release on crates.io, and it already satisfies the `"4.5.58"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p clap_complete` and commit the updated REDACTED.
Outdated: dlmalloc — `dlmalloc` is locked at 0.2.4 but 0.2.14 is the current stable release on crates.io, and it already satisfies the `"0.2.4"` requirement declared in examples/min-platform/embedding/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p dlmalloc` and commit the updated REDACTED.
Outdated: encoding_rs — `encoding_rs` is locked at 0.8.31 but 0.8.42 is the current stable release on crates.io, and it already satisfies the `"0.8.31"` requirement declared in crates/wasmtime/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p encoding_rs` and commit the updated REDACTED.
Outdated: env_logger — `env_logger` is locked at 0.11.5 but 0.11.11 is the current stable release on crates.io, and it already satisfies the `"0.11.5"` requirement declared in cranelift/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p env_logger` and commit the updated REDACTED.
Outdated: flate2 — `flate2` is locked at 1.1.4 but 1.1.10 is the current stable release on crates.io, and it already satisfies the `"1.0.28"` requirement declared in crates/test-programs/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p flate2` and commit the updated REDACTED.
Outdated: futures — `futures` is locked at 0.3.31 but 0.3.34 is the current stable release on crates.io, and it already satisfies the `"0.3.31"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p futures` and commit the updated REDACTED.
Outdated: hashbrown — `hashbrown` is locked at 0.17.0 but 0.17.1 is the current stable release on crates.io, and it already satisfies the `"0.17"` requirement declared in cranelift/codegen/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p hashbrown` and commit the updated REDACTED.
Outdated: http-body — `http-body` is locked at 1.0.1 but 1.1.0 is the current stable release on crates.io, and it already satisfies the `"1.0.1"` requirement declared in crates/wasi-http/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p http-body` and commit the updated REDACTED.
Outdated: http-body-util — `http-body-util` is locked at 0.1.3 but 0.1.5 is the current stable release on crates.io, and it already satisfies the `"0.1.3"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p http-body-util` and commit the updated REDACTED.
Outdated: hyper — `hyper` is locked at 1.9.0 but 1.12.0 is the current stable release on crates.io, and it already satisfies the `"1.9.0"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p hyper` and commit the updated REDACTED.
Outdated: indexmap — `indexmap` is locked at 2.14.0 but 2.14.2 is the current stable release on crates.io, and it already satisfies the `"2.14.0"` requirement declared in crates/environ/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p indexmap` and commit the updated REDACTED.
Outdated: libc — `libc` is locked at 0.2.190 but 0.2.191 is the current stable release on crates.io, and it already satisfies the `"0.2.190"` requirement declared in cranelift/jit/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p libc` and commit the updated REDACTED.
Outdated: libfuzzer-sys — `libfuzzer-sys` is locked at 0.4.10 but 0.4.13 is the current stable release on crates.io, and it already satisfies the `"0.4.10"` requirement declared in fuzz/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p libfuzzer-sys` and commit the updated REDACTED.
Outdated: log — `log` is locked at 0.4.28 but 0.4.34 is the current stable release on crates.io, and it already satisfies the `"0.4.28"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p log` and commit the updated REDACTED.
Outdated: memfd — `memfd` is locked at 0.6.5 but 0.6.6 is the current stable release on crates.io, and it already satisfies the `"0.6.5"` requirement declared in crates/wasmtime/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p memfd` and commit the updated REDACTED.
Outdated: memmap2 — `memmap2` is locked at 0.9.11 but 0.9.12 is the current stable release on crates.io, and it already satisfies the `"0.9.11"` requirement declared in cranelift/jit/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p memmap2` and commit the updated REDACTED.
Outdated: mutatis — `mutatis` is locked at 0.5.2 but 0.5.4 is the current stable release on crates.io, and it already satisfies the `"0.5.2"` requirement declared in fuzz/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p mutatis` and commit the updated REDACTED.
+ 33 more in this group — see findings.md.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a176a6-bab4-7ea1-8e96-70d06c940e41 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 125 · Warnings: 2517 · Recommendations: 148 · Info: 58 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 26-10-2026 @ 05:20 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.