From 418c17ebc3b2321e1212ea3c7e1d1631d594d3c3 Mon Sep 17 00:00:00 2001 From: Paul Masurel Date: Tue, 2 Dec 2025 21:32:15 +0100 Subject: [PATCH] Change assert message --- stacker/src/expull.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stacker/src/expull.rs b/stacker/src/expull.rs index 275ffa41d..5bd53c680 100644 --- a/stacker/src/expull.rs +++ b/stacker/src/expull.rs @@ -150,13 +150,10 @@ impl ExpUnrolledLinkedList { let last_block_len = block_size.saturating_sub(self.remaining_cap as usize); // Safety check: if remaining_cap > block_size, the metadata is corrupted - // This should never happen with correct usage, so panic to catch bugs early assert!( self.remaining_cap as usize <= block_size, "ExpUnrolledLinkedList metadata corruption detected: remaining_cap ({}) > block_size \ - ({}). This indicates a serious bug, possibly from: 1. Copying ExpUnrolledLinkedList \ - and using stale metadata 2. Race condition in parallel processing 3. Memory \ - corruption. block_num={}, head={:?}, tail={:?}", + ({}). This should never happen, please report. block_num={}, head={:?}, tail={:?}", self.remaining_cap, block_size, self.block_num,