diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-02-28 13:31:15 -0800 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-02-28 13:50:31 -0800 |
| commit | 83407b828bcf5c883b2ab50b958edbcba0738f6a (patch) | |
| tree | cc88198d063fc6fe2d8f549f10f560281c9099e1 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | a8d78fec52aec04254ec602851c4fd7c8469c592 (diff) | |
| download | rust-83407b828bcf5c883b2ab50b958edbcba0738f6a.tar.gz rust-83407b828bcf5c883b2ab50b958edbcba0738f6a.zip | |
Specialize constructing OsString from strings
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
