diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index 3706e584c07..3bd7b9263a2 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -128,6 +128,9 @@ impl Channel { core::ptr::read(ptr) }; + // NOTE: do not `return_free_slot`, as we have mutable + // access to this `Channel` and no `Receiver` or `Sender` + // exist. assert!(!self.inner.freeq.as_mut().is_full()); unsafe { // SAFETY: `freeq` is not ful.