Files
rust/src/libstd
Mazdak Farrokhzad c960c3e057 Rollup merge of #68102 - lzutao:inline, r=alexcrichton
Inline some conversion methods around OsStr

Diff on the assembly of this snippet before and after this PR: https://www.diffchecker.com/NeGMjaJ2
```rust
use std::env;
use std::io;
use std::path::{Path, PathBuf};

pub fn cargo_home_with_cwd(cwd: &Path) -> io::Result<PathBuf> {
    match env::var_os("CARGO_HOME").filter(|h| !h.is_empty()) {
        Some(home) => {
            let home = PathBuf::from(home);
            if home.is_absolute() {
                Ok(home)
            } else {
                Ok(cwd.join(&home))
            }
        }
        _ => env::home_dir()
            .map(|p| p.join(".cargo"))
            .ok_or_else(|| io::Error::new(io::ErrorKind::Other, "could not find cargo home dir")),
    }
}
```
2020-01-11 04:02:30 +01:00
..
2019-11-29 18:43:27 -08:00
2020-01-10 19:06:18 +00:00
2019-11-29 18:43:27 -08:00
2020-01-10 12:52:00 +00:00
2019-12-22 17:42:47 -05:00
2019-12-22 17:42:47 -05:00
2019-11-29 18:43:27 -08:00
2019-11-29 18:43:27 -08:00
2019-11-25 08:59:23 +01:00
2020-01-09 07:54:02 +01:00
2020-01-01 09:52:18 +07:00
2019-12-29 08:19:33 +00:00
2019-02-28 04:06:15 +09:00
2019-11-29 18:43:27 -08:00
2020-01-10 19:18:17 +00:00
2019-12-22 17:42:47 -05:00
2019-11-29 18:43:27 -08:00
2019-12-31 17:14:49 +00:00