{ "dead_code": { "allowlist": { "db.Migration": "the element type of `MIGRATIONS`, which is `pub` under `test-support`; narrowing it is `private_interfaces` - type `Migration` is more private than the item `MIGRATIONS`. Production walks the table through `db::migrate` without naming it", "db.PackageRow": "what `index_packages` answers with, and `index_packages` is `pub`; narrowing the row is `private_interfaces` - type `PackageRow` is more private than the item `index_packages`. http, the publish step and the `aur-build` binary bind it without naming it", "db.Subscription": "what `get_subscription` and `list_subscriptions` answer with, both `pub`; narrowing it is `private_interfaces` on `list_subscriptions`. `watch`, `usecase`, the binary and tests/detect.rs bind the value without naming the type", "db.Unbuilt": "the attention row `approved_but_unbuilt` returns, and that fn is `pub`; narrowing it is `private_interfaces` on `approved_but_unbuilt`. The web UI and tests/crash.rs bind it without naming it", "db.Writer": "what `Db::writer` is typed as, and the parameter of the `pub` write functions in `db`; narrowing it makes those signatures name a private type - the compiler says `type db::Writer is private` at every call site, tests included", "pkginfo.Installed": "what `parse_installed` answers with, and `parse_installed` is `pub`; narrowing it is `private_interfaces` on `parse_installed`. `pipeline`, `shims` and tests/world.rs read it line by line", "pkginfo.PkgInfo": "what `parse_pkginfo` answers with, and `parse_pkginfo` is `pub`; narrowing it is `private_interfaces` on `parse_pkginfo`. `pipeline`, `shims` and tests/world.rs read its fields, never its name", "review.BulkItem": "one outcome of `approve::bulk`, which is `pub` and which tests/approve.rs drives directly; narrowing the row is `private_interfaces` on `approve::bulk`", "sandbox.ProvisionRequest": "the parameter of `Provisioner::provision`, a `pub` trait method - a `pub` trait method cannot take a `pub(crate)` parameter, so the compiler answers `type kata::ProvisionRequest is more private than the item kata::Provisioner::provision`", "sandbox.Provisioner": "implemented by the test-gated `pub` `LocalAgentProvisioner` and returned by `KataBackend::bind`; a private trait on a public impl is E0445, and the compiler says `trait kata::Provisioner is more private than the item KataBackend::bind`", "shims.FakeInstalled": "the element type of the `pub` field `Manifest::installed`, so narrowing it is `private_interfaces` on that field; the whole `shims` module is `test-support`-gated, so a release build never compiles it", "shims.FakePackage": "the element type of the `pub` field `Manifest::packages`, so narrowing it is `private_interfaces` on that field; the whole `shims` module is `test-support`-gated, so a release build never compiles it", "shims.Manifest": "returned by `manifest()`, which is `pub` and which seven test files read to assert what a build did; narrowing the type is `private_interfaces` on `manifest`. The module is `test-support`-gated", "time.VirtualClock": "re-exported by the gated `pub use` that is the only public path to it; narrowing it is E0365 - `VirtualClock` is only public within the crate, and cannot be re-exported outside", "usecase.Checked": "re-exported by `usecase`'s `pub use`, which is how the `aur-build` binary - a separate crate - names it; narrowing it is E0365, cannot be re-exported outside the crate", "usecase.GcPlan": "re-exported by `usecase`'s `pub use` for the `aur-build` binary, a separate crate; narrowing it is E0365, cannot be re-exported outside the crate", "usecase.Prepared": "re-exported by `usecase`'s `pub use` for the `aur-build` binary, a separate crate; narrowing it is E0365, cannot be re-exported outside the crate", "watch.CheckReport": "what `detect::check_pkgbase` answers with, and that fn is `pub`; narrowing it is `private_interfaces` on `check_pkgbase`. The test tier drives it and binds the value without naming it", "watch.StageA": "what `upstream::probe` answers with, and `probe` is `pub`; narrowing it is `private_interfaces` on `probe`. tests/ops.rs and tests/vcs.rs call `probe` directly" }, "deadonly": { "bin/gpg": 0, "bin/makechrootpkg": 0, "bin/makepkg": 0, "bin/mkarchroot": 0, "bin/pacman": 0, "bin/repo-add": 0, "bin/sandbox-agent": 0, "config": 0, "db": 0, "error": 0, "fetch": 0, "git": 0, "hash": 0, "http": 0, "lib": 0, "main": 0, "ops": 0, "pipeline": 0, "pkginfo": 0, "pkgver": 0, "recipe": 0, "review": 0, "sandbox": 0, "shims": 0, "time": 0, "urlutil": 0, "usecase": 0, "watch": 0 } }, "modules": { "bin/gpg": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 4, "largest_file": "src/bin/gpg.rs", "lines": 4, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "bin/makechrootpkg": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 4, "largest_file": "src/bin/makechrootpkg.rs", "lines": 4, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "bin/makepkg": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 4, "largest_file": "src/bin/makepkg.rs", "lines": 4, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "bin/mkarchroot": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 4, "largest_file": "src/bin/mkarchroot.rs", "lines": 4, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "bin/pacman": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 4, "largest_file": "src/bin/pacman.rs", "lines": 4, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "bin/repo-add": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 4, "largest_file": "src/bin/repo-add.rs", "lines": 4, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "bin/sandbox-agent": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 47, "largest_file": "src/bin/sandbox-agent.rs", "lines": 47, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "config": { "dead": 2, "deadonly": 0, "glob": 0, "largest": 650, "largest_file": "src/config.rs", "lines": 650, "overwide": 0, "priv": 0, "pub": 29, "test": 2 }, "db": { "dead": 10, "deadonly": 0, "glob": 0, "largest": 358, "largest_file": "src/db/mod.rs", "lines": 3574, "overwide": 0, "priv": 15, "pub": 189, "test": 10 }, "error": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 399, "largest_file": "src/error.rs", "lines": 399, "overwide": 0, "priv": 0, "pub": 21, "test": 0 }, "fetch": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 55, "largest_file": "src/fetch.rs", "lines": 55, "overwide": 0, "priv": 0, "pub": 1, "test": 0 }, "git": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 219, "largest_file": "src/git.rs", "lines": 219, "overwide": 0, "priv": 0, "pub": 14, "test": 0 }, "hash": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 108, "largest_file": "src/hash.rs", "lines": 108, "overwide": 0, "priv": 0, "pub": 7, "test": 0 }, "http": { "dead": 5, "deadonly": 0, "glob": 0, "largest": 524, "largest_file": "src/http/routes/pages.rs", "lines": 1916, "overwide": 0, "priv": 71, "pub": 17, "test": 5 }, "lib": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 23, "largest_file": "src/lib.rs", "lines": 23, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "main": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 321, "largest_file": "src/main.rs", "lines": 321, "overwide": 0, "priv": 0, "pub": 0, "test": 0 }, "ops": { "dead": 3, "deadonly": 0, "glob": 0, "largest": 442, "largest_file": "src/ops.rs", "lines": 442, "overwide": 0, "priv": 2, "pub": 11, "test": 3 }, "pipeline": { "dead": 6, "deadonly": 0, "glob": 0, "largest": 445, "largest_file": "src/pipeline/steps.rs", "lines": 1319, "overwide": 0, "priv": 4, "pub": 21, "test": 6 }, "pkginfo": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 115, "largest_file": "src/pkginfo.rs", "lines": 115, "overwide": 0, "priv": 0, "pub": 6, "test": 0 }, "pkgver": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 543, "largest_file": "src/pkgver/mod.rs", "lines": 543, "overwide": 0, "priv": 0, "pub": 7, "test": 0 }, "recipe": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 436, "largest_file": "src/recipe.rs", "lines": 436, "overwide": 0, "priv": 0, "pub": 7, "test": 0 }, "review": { "dead": 4, "deadonly": 0, "glob": 0, "largest": 317, "largest_file": "src/review/diff.rs", "lines": 924, "overwide": 0, "priv": 4, "pub": 24, "test": 4 }, "sandbox": { "dead": 7, "deadonly": 0, "glob": 0, "largest": 446, "largest_file": "src/sandbox/kata.rs", "lines": 1282, "overwide": 0, "priv": 9, "pub": 21, "test": 7 }, "shims": { "dead": 4, "deadonly": 0, "glob": 0, "largest": 596, "largest_file": "src/shims/mod.rs", "lines": 596, "overwide": 0, "priv": 0, "pub": 8, "test": 4 }, "time": { "dead": 3, "deadonly": 0, "glob": 0, "largest": 231, "largest_file": "src/time.rs", "lines": 231, "overwide": 0, "priv": 0, "pub": 13, "test": 3 }, "urlutil": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 53, "largest_file": "src/urlutil.rs", "lines": 53, "overwide": 0, "priv": 0, "pub": 1, "test": 0 }, "usecase": { "dead": 0, "deadonly": 0, "glob": 0, "largest": 112, "largest_file": "src/usecase/reviews.rs", "lines": 346, "overwide": 0, "priv": 0, "pub": 30, "test": 0 }, "watch": { "dead": 4, "deadonly": 0, "glob": 0, "largest": 272, "largest_file": "src/watch/upstream.rs", "lines": 1021, "overwide": 0, "priv": 12, "pub": 21, "test": 4 } }, "over_visibility": { "allowlist": { "db.OpenReview": "returned by `open_in` and taken by `collapse_in`, both `pub(crate)` in this file; a private type behind a `pub(crate)` signature is the `private_interfaces` warning, so the type has to be as visible as the functions that carry it", "db.Readers": "`Db` is `pub` and its `readers` field is `pub(crate)`, and a field cannot out-reach its own type; making `Readers` private is the `private_interfaces` warning on `db::Db::readers`", "db.ReviewSubject": "`review_subject_in` is `pub(crate)` and answers with it, and another file binds the value: with the type private that call site is `error: type ReviewSubject is private`", "ops.EvictPlan": "`plan_retention` is `pub(crate)` and returns `Vec`; with the type private, the caller that binds that Vec in another file is `error: type EvictPlan is private`", "pipeline.SourceIdentity": "the `pub(crate)` field `Ctx::src` has this type, and a field may not be more reachable than its type; private `SourceIdentity` is the `private_interfaces` warning on `Ctx::src`", "review.Assessment": "`assess` is `pub(crate)` and answers with it, so a private `Assessment` is `error: type Assessment is private` at every site in another file that binds the result", "review.LOW": "declared inside the `pub mod level` nested in risk.rs and read as `level::LOW` by the scorer in the parent module; privacy does not reach upward to a parent, and `pub(super)` is not a form this crate admits, so `pub(crate)` is the narrowest that works", "sandbox.provision_request": "declared inside the private `kata_backend` module (kata.rs:184) and called from the sibling `#[cfg(test)] mod tests` (kata.rs:421); privacy does not cross to a sibling - E0624 - and `pub(super)` is not a form this crate admits" }, "overwide": { "bin/gpg": 0, "bin/makechrootpkg": 0, "bin/makepkg": 0, "bin/mkarchroot": 0, "bin/pacman": 0, "bin/repo-add": 0, "bin/sandbox-agent": 0, "config": 0, "db": 0, "error": 0, "fetch": 0, "git": 0, "hash": 0, "http": 0, "lib": 0, "main": 0, "ops": 0, "pipeline": 0, "pkginfo": 0, "pkgver": 0, "recipe": 0, "review": 0, "sandbox": 0, "shims": 0, "time": 0, "urlutil": 0, "usecase": 0, "watch": 0 } }, "test_surface": { "already-gated": 28, "narrowed": 7, "total": 35 }, "totals": { "dead": 48, "deadonly": 0, "edges": 87, "glob": 0, "largest": 650, "largest_file": "src/config.rs", "lines": 14644, "overwide": 0, "priv": 117, "pub": 448, "test": 48 } }