diff options
| author | Tim Hutt <tdhutt@gmail.com> | 2022-09-10 12:43:30 +0100 |
|---|---|---|
| committer | Tim Hutt <tdhutt@gmail.com> | 2022-09-10 12:43:30 +0100 |
| commit | 8d08983c2b14e5277580015006e334104cbbd7d1 (patch) | |
| tree | 84d1553a4fcde670b8131008790a11b48f83c712 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | db9d86b58dff2a19d84d5e557641dfbb4cbb3a8d (diff) | |
| download | rust-8d08983c2b14e5277580015006e334104cbbd7d1.tar.gz rust-8d08983c2b14e5277580015006e334104cbbd7d1.zip | |
Better documentation for env::home_dir()'s broken behaviour
This improves the documentation to say *why* it was deprecated. The reason was because it reads `HOME` on Windows which is meaningless there. Note that the PR that deprecated it stated that returning an empty string if `HOME` is set to an empty string was a problem, however I can find no evidence that this is the case. `cd` handles it fine whereas if `HOME` is unset it gives an explicit `HOME not set` error. * Original deprecation reason: https://internals.rust-lang.org/t/deprecate-or-break-fix-std-env-home-dir/7315 * Original deprecation PR: https://github.com/rust-lang/rust/pull/51656 See #71684
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
