Announcing Rust 1.15.1 Posted by steveklabnik on Thursday February 09, 2017 @03:17PM from the blog.rust-lang.org dept. https://blog.rust-lang.org/2017/02/09/Rust-1.15.1.html ( 7 comments | 41 points | on HN )
Now that I think about it, maybe it has to do with `unsafe` block so the compiler doesn't check it.
My next question would be why does it need `unsafe`?
> why does it need `unsafe`?
slice::from_raw_parts_mut is an unsafe function because it lets you conjure a slice from thin air; there's no checking of it at all.
This function is used because it's the most straightforward way of accomplishing the task.