Rust unsafe Boundaries

The borrow checker still runs inside an unsafe block, so two mutable borrows there still give E0499. What unsafe opens is operations the compiler cannot check, such as dereferencing a raw pointer (the Rust Book lists five), and the author has to supply the reason each one is safe. I wrapped split_at_mut in a safe function and implemented Send by hand for a type holding a raw pointer, to see where that responsibility splits. The ninth post in a Rust study series.

November 17, 2026 · 17 min read