mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-29 03:53:55 +00:00
All the same reasons as for `[T]`: more general, less pointer chasing, and `&mut IndexSlice` emphasizes that it doesn't change *length*.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.