]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #93976 - SUPERCILEX:separator_str, r=yaahc
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 17 Feb 2022 22:00:58 +0000 (23:00 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 22:00:58 +0000 (23:00 +0100)
commit09350d2cf0bc3d931b47dfc4fdee69e76a0a50ad
tree103b9e843b3b61c952e6af3d93c1dbbc1702a5ae
parent6a2b612590284f2e8fc08117c976e017ddd79d81
parent80fde23a75513b498f95051719b2c8e0e3afecc4
Rollup merge of #93976 - SUPERCILEX:separator_str, r=yaahc

Add MAIN_SEPARATOR_STR

Currently, if someone needs access to the path separator as a str, they need to go through this mess:

```rust
unsafe {
    std::str::from_utf8_unchecked(slice::from_ref(&(MAIN_SEPARATOR as u8)))
}
```

This PR just re-exports an existing path separator str API.
library/std/src/path.rs