Closed Topics with outdated answers
⚓ Rust 📅 2026-05-06 👤 surdeus 👁️ 1Hey,
I've recently looked for ways to to get mutable references to multiple slice elements. When searching for this Google gives various topics on this forum as the top result:
For Example:
- Multiple mutable references to elements within one vector - #31 by gengteng
- Get mutable references to two elements of a slice by transmuting them
All easy to find answers point towards using split_at_mut (AIs also always answer with this).
However since 1.86.0 get_disjoint_mut is available, which solves the exact problem.
Since all the top result topics are already about this are already older than 90 days it is not possible to add and updated answers to these. Would it be worth disabling the out close for help/tutorial categories? Otherwise outdated answer cannot be updated.
2 posts - 2 participants
🏷️ Rust_feed