mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
83407b828b
The WTF-8 version of `OsString` tracks whether it is known to be valid UTF-8 with its `is_known_utf8` field. Specialize `From<AsRef<OsStr>>` so this can be set for UTF-8 string types.