mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
4da2869bc7
Safely enforce thread name requirements The requirements for the thread name to be both UTF-8 and null terminated are easily enforced by a wrapper type so lets do that. The fact this used to be just a bare `CString` has tripped me up before because it was entirely safe to use a non UTF-8 `CString`.