diff options
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; |
