diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-10-29 10:56:54 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-11-02 12:58:54 -0800 |
| commit | d2dd700891f25e71884276d47288f66e4745c5f9 (patch) | |
| tree | ed2e0e2e5fe724a1ae24e59b15af944015250daf /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 01fd4d622746f03334a6543c1476e5e65712b1cc (diff) | |
| download | rust-d2dd700891f25e71884276d47288f66e4745c5f9.tar.gz rust-d2dd700891f25e71884276d47288f66e4745c5f9.zip | |
std: Base Hash for Path on its iterator
Almost all operations on Path are based on the components iterator in one form or another to handle equivalent paths. The `Hash` implementations, however, mistakenly just went straight to the underlying `OsStr`, causing these equivalent paths to not get merged together. This commit updates the `Hash` implementation to also be based on the iterator which should ensure that if two paths are equal they hash to the same thing. cc #29008, but doesn't close it
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
