diff options
| author | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
| commit | 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (patch) | |
| tree | 969777fa32845f49723c52b1889c4870c98134cf /src/watch/upstream.rs | |
| parent | 1e1e12e7220a3fd288782ae40f0823db32acf6cb (diff) | |
| download | aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.tar.gz aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.zip | |
src,tests: retire the census commentary from the source
A gated item used to carry its own defence: why it is `pub` only under
`test-support`, which census once mistook a filename for a caller, why a
wrapper is compiled out rather than deleted. The budget file already
holds those claims and the ratchet already checks them, so the source
keeps the one line that says what the item is.
The module headers stop narrating the refactor that produced them. What
survives is the wire protocol, the git pipe, the poisoned lock that must
be recovered rather than unwedged.
Diffstat (limited to 'src/watch/upstream.rs')
| -rw-r--r-- | src/watch/upstream.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/watch/upstream.rs b/src/watch/upstream.rs index 3faeacc..0a61d4c 100644 --- a/src/watch/upstream.rs +++ b/src/watch/upstream.rs @@ -14,7 +14,6 @@ use crate::error::{Error, Result, TransientCause}; use crate::git; #[derive(Debug, Clone)] -// StageA stays `pub`: what `upstream::probe` returns; tests/ops.rs and tests/vcs.rs call `probe` directly. pub struct StageA { pub pins: Vec<UpstreamPin>, pub unprobed: Vec<String>, @@ -131,10 +130,7 @@ static RUNNING: AtomicUsize = AtomicUsize::new(0); static SLOT_FREE: Condvar = Condvar::new(); static SLOT_LOCK: Mutex<()> = Mutex::new(()); -/// The real definition. The module is private, so this `pub` -/// is not a nameable path from outside; the alias below is the -/// only way to reach it, and the alias is what carries the -/// feature-conditional visibility. +/// The real definition; the alias below carries the visibility. mod stage_b_slot { use super::{Ordering, RUNNING, SLOT_FREE, SLOT_LOCK}; @@ -158,11 +154,7 @@ mod stage_b_slot { } } -/// The stage-B concurrency slot. The VCS test that asserts it needs a real mirror, so it cannot move into the module. -/// -/// `pub` only under `test-support`. Production reaches the type -/// through its own module and never names it from outside; the -/// outside reader that needs the name is a test. +/// The stage-B concurrency slot. #[cfg(feature = "test-support")] pub use stage_b_slot::StageBSlot; |
