about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-10-29 10:56:54 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-11-02 12:58:54 -0800
commitd2dd700891f25e71884276d47288f66e4745c5f9 (patch)
treeed2e0e2e5fe724a1ae24e59b15af944015250daf /src/libstd/sys/unix/stack_overflow.rs
parent01fd4d622746f03334a6543c1476e5e65712b1cc (diff)
downloadrust-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