summaryrefslogtreecommitdiffstats
path: root/tests/notices.rs
diff options
context:
space:
mode:
authordev <dev@example.com>2026-11-21 19:33:47 +0000
committerdev <dev@example.com>2026-11-21 19:33:47 +0000
commit9dc9087d89891c6e5ef7e5dc084dd13c8611843e (patch)
tree3bf6ebbccbf29f965df2fc6a1c0f5751185f19ce /tests/notices.rs
parentbb1d533515c8f63faacb00b3ef59232cf2d4a1c5 (diff)
downloadaur-build-9dc9087d89891c6e5ef7e5dc084dd13c8611843e.tar.gz
aur-build-9dc9087d89891c6e5ef7e5dc084dd13c8611843e.zip
readme: say that pub(crate) is not automatically the narrow state
The constraints section already told the truth about `pub` — an item with no outside reader is a hole, allowed only by name and only with a reason — and said nothing about the step below it, which is the one this pass just walked. Added beside it: what over-wide means, that it is budgeted the same way, the three compiler facts that actually force a `pub(crate)` to stay (a field cannot out-reach its type, privacy does not reach up to a parent or across to a sibling, and `pub(super)` is not a form this crate admits), and the warning that the count is a grep while the verdict is the compiler's, asked under both profiles. The ratchet was checked rather than assumed. Re-widening `ops::sweep_staging` from private back to `pub(crate)` — a change that compiles clean under both profiles and breaks nothing at all — makes `arch-census --budget` exit 1 with `ops.overwide: 1 > 0 accepted` and `ops.sweep_staging is over-wide and unargued`, and makes `cargo test --test architecture` fail 3 tests including `interfaces_stay_within_budget` and `the_over_visibility_budget_matches_the_code`. Reverting it returns the suite to green. A ratchet that only fails on paper is not a ratchet.
Diffstat (limited to 'tests/notices.rs')
0 files changed, 0 insertions, 0 deletions