Re:What Is Rust's Unsafe? (2019)
by xavxav on Monday April 11, 2022 @03:16AM
(#30985646)
I would argue it’s language-ub to convert an invalid slice into into a String, it’s bubbling up a requirement of str which relies on the contained utf-8 to be well-formed for memory safety.
[ Parent
| on HN ]
There are no comments on this comment yet.