diff options
| author | bors <bors@rust-lang.org> | 2021-06-20 16:42:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-20 16:42:13 +0000 |
| commit | dd941450fbf705129dff8ce021d4b5602563555a (patch) | |
| tree | b24fdba8bc6b53324061313fa676aa40de35279c /compiler/rustc_codegen_llvm/src | |
| parent | 2e940ac5e97ba4424be5a8e02ff4c7846ca1e25a (diff) | |
| parent | ad7b8975e08cc9ded5352c6771af3c8bf5c1b818 (diff) | |
| download | rust-dd941450fbf705129dff8ce021d4b5602563555a.tar.gz rust-dd941450fbf705129dff8ce021d4b5602563555a.zip | |
Auto merge of #84967 - CDirkx:os_str_ext, r=m-ou-se
Move `OsStringExt` and `OsStrExt` to `std::os` Moves the `OsStringExt` and `OsStrExt` traits and implementations from `sys_common` to `os`. `sys_common` is for abstractions over `sys` and shouldn't really contain publicly exported items. This does introduce some duplication: the traits and implementations are now duplicated in `unix`, `wasi`, `hermit`, and `sgx`. However, I would argue that this duplication is no different to how something like `MetadataExt` is duplicated in `linux`, `vxworkx`, `redox`, `solaris` etc. The duplication also matches the fact that the traits on different platforms are technically distinct types: any platform is free to add it's own extra methods to the extension trait.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
