diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/arch-census.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/arch-census.py b/tools/arch-census.py index e6a8300..24f2c5f 100755 --- a/tools/arch-census.py +++ b/tools/arch-census.py @@ -10,6 +10,14 @@ the crate. `tests/` counts as an outside reader on purpose — the integration tests are separate crates, so a name only they use is genuinely `pub`, and the honest way to say that is to count it rather than pretend it is private. +What `dead` means precisely is *the name is never written outside the module*. +That is a lead, not a verdict. A row type returned by a public query is part of +the interface even though no caller ever writes its name — they bind it with +`let` and call methods on it — so the way to find out which flagged items are +real is to privatize them and let the compiler answer: it rejects the ones that +are load-bearing and says nothing about the rest. Whatever survives that is +budgeted rather than zeroed, and the budget is where the reason lives. + Reported per module: pub items declared `pub` (fn, struct, enum, trait, const, static, type) dead of those, ones no file outside the module names — including tests/ |
